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

From blackwiki
Jump to navigation Jump to search
blackwiki>DePiep
(→‎See also: reflect move and transclude not link the navbox, replaced: {{String templates see also text}} → {{navbox string handling templates}} using AWB)
blackwiki>Jdaloner
m (Updated transclusion of navbox.)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
 +
 
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>
Line 12: Line 14:
  
 
== See also ==
 
== See also ==
{{navbox string handling templates}}
+
{{string-handling templates}}
 +
 
 +
 
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:String manipulation templates]]
 
[[Category:String manipulation templates]]
 
</includeonly>
 
</includeonly>

Revision as of 20:45, 16 December 2014

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