Bản mẫu:Hộp thông tin khối Unicode

Bách khoa toàn thư mở Wikipedia
{{{blockname}}}
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Usage[sửa mã nguồn]

This infobox is used for articles on Unicode character blocks.

Functions and formatting[sửa mã nguồn]

The block name title text style and color are set by the script1 = parameter, and whether the block is in the BMP or a supplementary plane.

Title formatting
Hieroglyphic and cuneiform (ISO 15924 numeric 000-099)
RTL alphabets / abjads (most ISO 15924 numeric 100-199)
Indic / alphasyllabic (most ISO 15924 numeric 300-399)
Syllabic / abugida (ISO 15924 numeric 400-499)
Vertical scripts
Han and Han-derived (as vertical or LTR)
LTR alphabets / other
Supplemental plane

Maintenance[sửa mã nguồn]

This template will place articles on blocks not present in version 1.0 in one of the hidden maintenace categories Category:Maintenance cat unicode 1.1, or Category:Maintenance cat not unicode 1.1, to signal whether blocks should be checked against Unicode version 1.0, or whether refs to Unicode 1.0 are appropriate, as the Unicode Character Database file DerivedAge.txt does not distinguish between characters added in version 1.0.0, 1.0.1, and 1.1.

Syntax[sửa mã nguồn]

{{Infobox Unicode block

<!--General parameters:-->
 |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   = Number of assigned characters, including deprecated and non-characters
               Not necessary if characters are specified per version, below.
 |nonchar    = Number of non-characters
 |deprecated = Number of deprecated characters

<!--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
 |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, eg [[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 .. 7_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.
Version 1_1 For version 1.1, Unicode merged with ISO 10646, and some characters were removed in this process. The parameter 1_1 can be set to a negative number to account for character removal in version 1.1.

Example[sửa mã nguồn]

Test
Khoảng mãU+0300..U+037F
(128 điểm mã)
Mặt phẳngBMP
Kiểu chữCuneiform
Tập ký hiệuCalculus symbols
Được chỉ định33 điểm mã
Không sử dụng89 điểm mã dành riêng
6 non-characters
3 deprecated
Chuẩn nguồnISCII
Lịch sử phiên bản Unicode
1.0.043 (+43)
1.130 (-13)
6.233 (+3)
Ghi chú: This is not an accurate description of the code point range U+0300..U+037F.

{{Infobox Unicode block
|blockname = Test
|rangestart = 0300
|rangeend = 037f
|script1 = [[Cuneiform (script)|]]
|symbols = Calculus symbols
|1_0_0 = 43
|1_1 = -13
|6_2 = 3
|nonchar = 6
|deprecated = 3
|sources = [[ISCII]]
|note = This is not an accurate description of the code point range U+0300..U+037F.
}}

See also[sửa mã nguồn]