Template:ASCII

From FreeCAD Documentation
Jump to navigation Jump to search

Ascii 000.svg


Use this template where you want to show a key code ascii (type Alt + num Pad number) in a shape presentation.

Example: One alphabetic character or number 0 to 127 representing the number of the character ascii:

{{ASCII|65}} {{ASCII|F}} {{ASCII|0}} {{ASCII|15}}

Result:

Ascii 065.svg Ascii 070.svg Ascii 000.svg Ascii 015.svg

With modification dimension, second parameter:

{{ASCII|65|32}} {{ASCII|F|64}} {{ASCII|0|128}} {{ASCII|15|16}}

Result:

Ascii 065.svg Ascii 070.svg Ascii 000.svg Ascii 015.svg


PS: Certain character can not display example: { } | (and other) in this case enter the ascii number for displayed it.

Example:

Pipe "|" expected:

{{ASCII||}} bad result: px
{{ASCII|124}} good result: Ascii 124.svg

Curly brackets "}" expected:

{{ASCII|}}} bad result: Ascii 000.svg}
{{ASCII|125}} good result: Ascii 125.svg


Same for the characters 0 to 9 the priority is given to the numeric character (ascii code 48 to 57) and not the alphanumeric character

Example for diplay the number 1:

{{ASCII|1 }} bad result: Ascii 001.svg expected the numeric character 1 but the ascii code number 1 is displayed
{{ASCII|49}} good result: Ascii 049.svg for the numeric character 1 give his number ascii code 49


Type {{ASCII|help}} for create a link "Link to the Key_ASCII page" to the ASCII page for display the list of the character.