Template:Infobox Unicode block

{{{blockname}}}
PlaneBMP
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This infobox is used for articles on Unicode character blocks.

Syntax

{{Infobox Unicode block

<!--General parameters:-->
 |style      = Sets overall style of the infobox (infobox bodystyle)
 |blockname  = When page name is not the name of the Unicode block
 |rangestart = Start codepoint of block (without U+)
 |rangeend   = End codepoint of block 
 |script1    = Primary Unicode script
 |script2-5  = Secondary Unicode scripts
 |alphabets  = Major alphabets covered by block
 |symbols    = Symbol sets in block (usually not used if "alphabets" is defined)

<!--Characters:-->
 |assigned   = Overrides number of assigned characters
               Not necessary if rangestart and rangeend are specified
 |controls   = Number of control or format characters
 |nonchar    = Number of non-characters
 |deprecated = Number of deprecated characters
 |occupiedby = Block(s) currently occupying this block's range.
               Only applicable for Unicode 1.x blocks which did not make it
               into Unicode version 2.0 and later (i.e. the original blocks
               for Hangul syllables and Tibetan).

<!--Per version:-->
 |1_0_0      = Number of characters in v. 1.0.0
 |1_0_1      = Number of characters added in v. 1.0.1
 |1_1        = Number of characters added in v. 1.1
 |2_0        = Number of characters added in v. 2.0
 |2_1        = Number of characters added in v. 2.1
 |3_0        = Number of characters added in v. 3.0
 |3_1        = Number of characters added in v. 3.1
 |3_2        = Number of characters added in v. 3.2
 |4_0        = Number of characters added in v. 4.0
 |4_1        = Number of characters added in v. 4.1
 |5_0        = Number of characters added in v. 5.0
 |5_1        = Number of characters added in v. 5.1
 |5_2        = Number of characters added in v. 5.2
 |6_0        = Number of characters added in v. 6.0
 |6_1        = Number of characters added in v. 6.1
 |6_2        = Number of characters added in v. 6.2
 |6_3        = Number of characters added in v. 6.3
 |7_0        = Number of characters added in v. 7.0
 |8_0        = Number of characters added in v. 8.0
 |9_0        = Number of characters added in v. 9.0
 |10_0       = Number of characters added in v. 10.0
 |11_0       = Number of characters added in v. 11.0
 |12_0       = Number of characters added in v. 12.0
 |12_1       = Number of characters added in v. 12.1
 |13_0       = Number of characters added in v. 13.0
 |14_0       = Number of characters added in v. 14.0
 |sources    = Source standards for block
 |note       = Notes and refs
}}

Parameters:

Rangestart Acceptable values are of the form xxx0 or xxxx0, where "x" is a hex digit.
Rangeend Acceptable values are of the form xxxF, xxxf, xxxxF, or xxxxf, where "x" is a hex digit.
ScriptN Acceptable values are ISO 15924 code or Unicode script alias. These can be linked by appending (script) and a pipe | to the link, e.g. [[Greek (script)|]] or [[Grek (script)|]], which will display as Greek and Grek. Any other script link will not correctly format the block name.
Versions:
1_0_0 .. 14_0
Versions in which characters were added to the block, and only those versions, should be specified by the number of characters added to that version, not the running total. Setting version = 0 will erroneously display that version in the version history section of the template.
Versions:
1_0_1 & 1_1
The parameters 1_0_1, 1_1 and 2_0 can be set to negative numbers to account for character removal. For version 1.1, Unicode merged with ISO 10646, and some characters were either moved or removed in this process. For version 2.0, the contents of the original Korean syllable character blocks were moved to the current block, and the original blocks were deleted. Deleting or moving characters has been prohibited by stability policy for all versions following 2.0, so the number of characters added in subsequent versions will always be non-negative.

Example

Test
RangeU+0300..U+037F
(1 code points)
PlaneBMP
ScriptsCuneiform
Major alphabetsSumerian
Akkadian
Hittite
Symbol setsCalculus symbols
Assigned37 code points
5 Control or Format
Unused-42 reserved code points
6 non-characters
3 deprecated
Source standardsISCII
Unicode version history
1.0.0 (1991)43 (+43)
1.1 (1993)30 (-13)
6.2 (2012)33 (+3)
7.0 (2014)37 (+4)
Note: This is a demo description of the code point range (documentation purposes only)

<syntaxhighlight lang="text">

Test
RangeU+0300..U+037F
(1 code points)
PlaneBMP
ScriptsCuneiform
Major alphabetsSumerian
Akkadian
Hittite
Symbol setsCalculus symbols
Assigned37 code points
5 Control or Format
Unused-42 reserved code points
6 non-characters
3 deprecated
Source standardsISCII
Unicode version history
1.0.0 (1991)43 (+43)
1.1 (1993)30 (-13)
6.2 (2012)33 (+3)
7.0 (2014)37 (+4)
Note: This is a demo description of the code point range (documentation purposes only)

</syntaxhighlight>

Notes

Version year, like "5.2 (2009)", is added through {{Unicode version/version-to-date}}.

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 Infobox Unicode block

<templatedata> { "params": { "style": {}, "blockname": {}, "rangestart": {}, "rangeend": {}, "script1": {}, "script2": {}, "script3": {}, "script4": {}, "script5": {}, "alphabets": {}, "symbols": {}, "occupiedby": {}, "assigned": {}, "1_0_0": {}, "1_0_1": {}, "1_1": {}, "2_0": {}, "2_1": {}, "3_0": {}, "3_1": {}, "3_2": {}, "4_0": {}, "4_1": {}, "5_0": {}, "5_1": {}, "5_2": {}, "6_0": {}, "6_1": {}, "6_2": {}, "6_3": {}, "7_0": {}, "8_0": {}, "9_0": {}, "10_0": {}, "11_0": {}, "12_0": {}, "12_1": {}, "13_0": {}, "14_0": {}, "controls": {}, "nonchar": {}, "deprecated": {}, "sources": {}, "note": {} } } </templatedata>

|}