Template:Unicode blocks/row

< Template:Unicode blocks
 0 BMP U+ ..U+ n 999 99
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

<templatedata> { "params": { "state": { "label": "Collapse state", "description": "Specify if the list should be collapsed by default.", "type": "string", "suggestedvalues": [ "mw-collapsed" ] } }, "description": "A list of all the Unicode blocks, formatted as a table." } </templatedata>

"Blocks" are well-defined in Unicode. They are described from the numbering-way down: Unicode -> Plane -> Block -> code point.
Think "scripts" if you work from the character-way upwards: character -> code-point -> Unicode.

Block input

For each block, use <syntaxhighlight lang="wikitext">

|- | style="background: #b3e2cd" |  0 BMP | data-sort-value=128 | Unicode range (pattern like U+0080..U+00FF) | Block name, wikilinked | style="text-align:right"| Number of code points | style="text-align:right"| Number of characters assigned | Content of the block (scripts) </syntaxhighlight> The template starts a new row in the table (adds <syntaxhighlight lang="text" enclose="none">|-</syntaxhighlight>).

|planelink=yes can be set to wikilink the first occurrence of a plane. Will wikilink the plane ID (like 1 SMP)

Example

<syntaxhighlight lang="wikitext">

|- | style="background: #b3e2cd" |  0 BMP | data-sort-value=128 | U+0080..U+00FF | Latin-1 Supplement[a] | style="text-align:right"| 128 | style="text-align:right"| 128 | Latin (64 characters), Common (64 characters) </syntaxhighlight>

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Unicode blocks

<templatedata> { "params": { "1": {} } } </templatedata>

See also


Cite error: There are <ref> tags on this page, but the references will not show without a {{Reflist|group=lower-alpha}} template or a <references group="lower-alpha"/> tag.