Template:Unichar/doc
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
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
TemplateData for Unichar/doc
Formats a Unicode character description inline.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Hex value | 1 hval | Hexadecimal unicode codepoint
| String | required |
| Character name | 2 na | If provided, shows Unicode character name
| String | suggested |
| Should U+ be sans-serif? | sans | no description
| String | optional |
| ulink | ulink | no description
| Line | optional |
| image | image | no description | Unknown | optional |
| cwith | cwith | no description | String | optional |
| size | size | Relative size of rendered character
| String | optional |
| use | use | no description | String | optional |
| use2 | use2 | no description | String | optional |
| nlink | nlink | no description | String | optional |
| dec | dec | no description | Number | optional |
| Show HTML code? | HTML html | If provided, shows HTML code
| String | suggested |
| note | note | no description | Line | optional |
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]