Jump to content

සැකිල්ල:GB18030/doc

විකිපීඩියා වෙතින්

Encodes a Unicode code point as GB 18030, a Mainland Chinese standard UTF.

Technical details

[සංස්කරණය]

Delegates most logic to Template:GB18030/main. Uses Template:GB18030/decimal if decimal output is requested.

  • {{GB18030|1=26C7|base=hex}} → 81 37 B6 31
  • {{GB18030|1=26C7|base=dec}} → 129 55 182 49
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for GB18030

Encodes a Unicode code point as GB 18030, a Mainland Chinese standard UTF.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Codepoint1

A Unicode code point, in hexadecimal.

Example
26C7
Stringrequired
Basebase

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.

Default
hex
Stringoptional
Editionedition

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).

Default
2005
Stringoptional
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).

Default
no
Booleanoptional


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:GB18030/doc&oldid=657976" වෙතින් සම්ප්‍රවේශනය කෙරිණි