Content deleted Content added
→Usage: +block and character general difference |
m →Block input: typo, Content op the block (scripts) -> Content of ... |
||
(20 intermediate revisions by 5 users not shown) | |||
Line 1:
{{Documentation subpage}}
=== 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.<br>
Think "scripts" if you work from the ''character''-way upwards: character -> code-point
===Block input===
For each block, use
<syntaxhighlight lang="wikitext">
{{Unicode blocks/row
|plane = One from set BMP, SMP, SIP, TTP, ..., PUA-AB (BMP=default)
|range = Unicode range (pattern like U+0080..U+00FF)
|name = Block name, wikilinked
|cp = Number of code points
|char = Number of characters assigned
|contains= Content of the block (scripts)
}}
</syntaxhighlight>
The template starts a new row in the table (adds {{code|1={{!}}-}}).
{{para|planelink|yes}} can be set to wikilink the ''first'' occurrence of a plane. Will wikilink the plane ID (like [[Plane_(Unicode)#SMP|1 SMP]])
;Example:
<syntaxhighlight lang="wikitext">
{{Unicode blocks/row
|range=U+0080..U+00FF
|name=[[Latin-1 Supplement (Unicode block)|Latin-1 Supplement]]{{efn |name=Latin1_Supplement|1=Called "C1 Controls and Latin-1 Supplement" in [[ISO/IEC 10646]]}}
|cp=128
|char=128
|contains=Latin (64 characters), Common (64 characters)
}}
</syntaxhighlight>
==Template data==
{{template data header}}
<templatedata>
{
"params": {
"1": {}
}
}
</templatedata>
=== See also ===
* [[Block (Unicode)]]
* [[Template:ISO 15924 script codes and related Unicode data]]: scripts in Unicode
* {{tl|Unicode blocks/row}} — the formatting template for this table
{{Unicode templates}}
}}</includeonly>
▲[[Category:Computing templates]]
▲</includeonly>
|