Template:Unicode blocks/row
0 BMP | U+ ..U+ | n | 999 | 99 |
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
TemplateData for Unicode blocks
<templatedata> { "params": { "1": {} } } </templatedata>
See also
- Block (Unicode)
- Template:ISO 15924 script codes and related Unicode data: scripts in Unicode
- {{Unicode blocks/row}} — the formatting template for this table
The above documentation is transcluded from Template:Unicode blocks/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |
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.