Template:Ucname/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This template returns the Unicode canonical name of a character, given its number. For example,

  • {{ucname|00ae}}

returns

  • <reserved-00ae>

The name can be turned into a wikilink by using the |nlink= parameter. Using a blank nlink will create a link that points to the name of the character, otherwise the link will be pointing to the contents of the nlink parameter. For example,

  • {{ucname|005e|nlink=}}

returns

  • [[<reserved-005e> ]]

while

  • {{ucname|005e|nlink=Caret}} Not currently working as planned.

The number is hexadecimal. (The decimal code for a character will not be recognised as such and be treated as the hexadecimal code for some other character). Leading zeros or lowercase form are not required (e.g., 00ae and AE are treated identically) but are used here for clarity.

See also

[edit source]

for more a comprehensive response.