Tɛmplet:GB18030/doc
This is a documentation subpage for Tɛmplet:GB18030. It contains usage information, categories and other content that is not part of the original tɛmplet page. |
Encodes a Unicode code point as GB 18030, a Mainland Chinese standard UTF.
Technical details
[mali mi di yibu sheena n-niŋ]Delegates most logic to Template:GB18030/main. Uses Template:GB18030/decimal if decimal output is requested.
Examples
[mali mi di yibu sheena n-niŋ]{{GB18030|1=26C7|base=hex}}
→ Tɛmplet:GB18030/BMP{{GB18030|1=26C7|base=dec}}
→ Tɛmplet:GB18030/decimal
Usage
[mali mi di yibu sheena n-niŋ]TemplateData for GB18030
Encodes a Unicode code point as GB 18030, a Mainland Chinese standard UTF.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Codepoint | 1 | A Unicode code point, in hexadecimal.
| String | required |
Base | base | Base to output (hex, dec or LChex, though aliases to exist to match the invocation of the UTF-8 template). Does not affect input, which must be hexadecimal in either case.
| String | optional |
Edition | edition | A version of the GB 18030 encoding (2000, 2005, web or newucs—the former two are true UTFs, while the latter two are pragmatic versions used by some implementations which forsake some PUA characters).
| String | optional |
Use GB 1988 for yuan sign? | gb1988 | Should 0x24 be used as an alternative encoded form of ¥, per chart glyphs? If in doubt, leave this off (since this precludes functioning as a true UTF).
| Boolean | optional |
See also
[mali mi di yibu sheena n-niŋ]