Template:ASCII: Difference between revisions
BathAfrica (talk | contribs) BathAfrica compatibility adaptation; original revisions retained; source https://wiki.sybma.com |
BathAfrica (talk | contribs) m 2 revisions imported: Full 75-template migration with source revision history from wiki.sybma.com |
||
| Line 320: | Line 320: | ||
[[Category:Template:Text Format]] | [[Category:Template:Text Format]] | ||
</noinclude> | </noinclude> | ||
Revision as of 07:05, 29 October 2026
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:
File:Ascii 065.svg File:Ascii 070.svg File:Ascii 000.svg File:Ascii 015.svg
With modification dimension, second parameter:
{{ASCII|65|32}} {{ASCII|F|64}} {{ASCII|0|128}} {{ASCII|15|16}}
Result:
File:Ascii 065.svg File:Ascii 070.svg File:Ascii 000.svg File: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: File:Ascii 124.svg
Curly brackets "}" expected:
{{ASCII|}}}
bad result: File:Ascii 000.svg}
{{ASCII|125}}
good result: File: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: File:Ascii 001.svg expected the numeric character 1 but the ascii code number 1 is displayed
{{ASCII|49}}
good result: File: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.