Template:Charmap/doc

Template creates a standard computer encoding table for writing system character articles. It is based on the tables of Computing Codes placed on most Cyrillic letter pages by User:Coroboy.

Usage
All character codes should be entered as bare hexadecimal numbers, ie Unicode code points should not be preceded by "U+" and decimal convention encodings should still specify code points by hex value. Hex characters are case insensitive, and will always appear in the template as capitalized code points, no matter the casing of the input. HTML named character references are automatically generated, but any other named character references must be explicitly listed, with any special characters specified using the standard HTML &xxx; format.

All defined characters must be given a character name in order for the table to display that column. Characters not represented in a particular alternate encoding should have a blank or undefined parameter for that encoding.

For double byte, or other two code-unit encodings, each of the bytes can be separately converted to decimal if the code units are separated with a space. Greater than two code-unit input will erroneously convert only the first and last to decimal.

Currently, each field (including the Unicode code point) can contain up to four hexadecimal numbers to be converted to decimal, separated by spaces. This is because a variable width encoding might use up to four bytes (e.g. EUC-TW), and because some characters in other encodings correspond to a sequence of characters in Unicode (some of which are Unicode Standard Annex UAX #34 named sequences with their own normative Unicode names; see for the entire list). For an example of both multiple encoding bytes and multiple Unicode code points being used, see Se (kana).

Examples
Example with automatic XML named character references, explicit named reference, single and double byte character mappings, alternate image, and mixed casing of inputs.

Example with automatic UTF-16 mappings, but no XML named character reference.

Dependencies
This template is dependent on the following transcluded templates:


 * Module:Numcr2namecr
 * Template:Smallcaps/styles.css
 * Module:Numcr2namecr
 * Template:Smallcaps/styles.css

TemplateData
{	"description": "Display data about a Unicode character in a table", "format": "\n", "params": { "1": {			"label": "Unicode codepoint 1", "description": "The first Unicode codepoint for the character(s)", "type": "string", "required": false },		"name1": { "label": "Name 1", "description": "The first name for the character(s)", "type": "string", "required": false },		"2": {			"label": "Unicode codepoint 2", "description": "The second Unicode codepoint for the character(s)", "type": "string", "required": false },		"name2": { "label": "Name 2", "description": "The second name for the character(s)", "type": "string", "required": false }	} }