Difference between revisions of "Template:ASCII code/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Voice of Clam
(default)
blackwiki>Voice of Clam
m (→‎Usage: rm <)
Line 3: Line 3:
 
Returns the [[ASCII]] value of a single character.
 
Returns the [[ASCII]] value of a single character.
 
== Usage ==
 
== Usage ==
<nowiki>{{ASCII code|</nowiki>''char''<<nowiki>}}</nowiki>
+
<nowiki>{{ASCII code|</nowiki>''char''<nowiki>}}</nowiki>
  
 
Examples:
 
Examples:

Revision as of 07:58, 26 November 2011

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).

See also

Template:String templates see also text