This template produces a formatted description of a Unicode character, to be used inline or otherwise with regular text.

  • The character {{unichar|a9|COPYRIGHT SIGN}} is about intellectual property.
    The character U+00A9 © COPYRIGHT SIGN is about intellectual property.

Usage

The {{unichar}} template takes the Unicode hexadecimal code point value and optionally the character name as input, like {{unichar|00A9|COPYRIGHT SIGN}}U+00A9 © COPYRIGHT SIGN.

This template produces a formatted description of a Unicode character, to be used in-line with regular text. It follows the standard Unicode presentation of a character, using the "U+" prefix for displaying the hex code point, followed by its glyph, then optionally by the character name, using Unicode's inline formatting recommendation. In running text such as the Unicode Standard, Wikipedia, or other rich-text environments, the character name is preferredly displayed in SMALL-CAPS STYLE. (The all-caps presentation is mainly designed for plain-text environments.)

The hexadecimal value is required (e.g. A9), other input is optional. The actual glyph is rendered using a font that contains the character. This can be set to something more specific, e.g. to language- or IPA-specific fonts. To show the glyph, the font character can be overridden with an image. A wikilink to an article on the character or set of characters, and another to the article Unicode can be created. It is also possible to add (bracketed like this), the calculated decimal value, HTML character codes, and a custom note.

Some special code points are given extra care, like control and space characters. These are automatically detected by the unichar/gc sub-template.


For documentation see wikipedia page wikipedia:Template:Refbegin

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Unichar/doc

Formats a Unicode character description inline.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hex value1 hval

Hexadecimal unicode codepoint

Example
031A
Stringrequired
Character name2 na

If provided, shows Unicode character name

Example
COMBINING LEFT ANGLE ABOVE
Stringsuggested
Should U+ be sans-serif?sans

no description

Example
How to show the U+. Any value except a single lowercase letter y means use mono, the default
Stringoptional
ulinkulink

no description

Example
Phonetic symbols in Unicode
Lineoptional
imageimage

no description

Unknownoptional
cwithcwith

no description

Stringoptional
sizesize

Relative size of rendered character

Example
200%
Stringoptional
useuse

no description

Stringoptional
use2use2

no description

Stringoptional
nlinknlink

no description

Stringoptional
decdec

no description

Numberoptional
Show HTML code?HTML html

If provided, shows HTML code

Example
yes
Stringsuggested
notenote

no description

Lineoptional

See also, external links

Useful links for researching Unicode characters:

  • Unicode.org charts in PDF format, showing the U+ hex values.
  • Fileformat.info search, to search by name (whole or partial), by U+ hex value or decimal value, or by the font symbol (copy-paste it). Extra information provided per character. One character only.
  • branah.com's a multi-character Unicode converter.
  • Unicode properties overview, e.g comma U+002C: [1]
This content is in the Template Namespace. Used for page-templates that can be re-used across the wiki.