Difference between revisions of "Template:ASCII code/doc"
Jump to navigation
Jump to search
blackwiki>Voice of Clam (Create doc) |
m (7 revisions imported) |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | + | ||
Returns the [[ASCII]] value of a single character. | Returns the [[ASCII]] value of a single character. | ||
| + | |||
== Usage == | == Usage == | ||
| − | <nowiki>{{ASCII code|</nowiki>''char'' | + | <nowiki>{{ASCII code|</nowiki>''char''<nowiki>}}</nowiki> |
Examples: | Examples: | ||
| Line 9: | Line 10: | ||
*<nowiki>{{ASCII code|</nowiki>Q<nowiki>}}</nowiki> returns {{ASCII code|Q}} | *<nowiki>{{ASCII code|</nowiki>Q<nowiki>}}</nowiki> returns {{ASCII code|Q}} | ||
| − | Note that only characters in the range 32-126 are supported. | + | Note that only characters in the range 32-126 are supported. Non-standard characters will return 32 (space). |
== See also == | == See also == | ||
| − | {{String templates | + | {{String-handling templates |anlys/tech}} |
| − | <includeonly> | + | <includeonly>{{sandbox other|| |
| − | + | ||
[[Category:String manipulation templates]] | [[Category:String manipulation templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 13:29, 16 October 2020
| This is a documentation subpage for Template:ASCII code. It contains usage information, categories and other content that is not part of the original template page. |
Returns the ASCII value of a single character.
Usage
{{ASCII code|char}}
Examples:
- {{ASCII code|q}} returns 113
- {{ASCII code|Q}} returns 81
Note that only characters in the range 32-126 are supported. Non-standard characters will return 32 (space).