Label options
Add |labels=no anywhere in the template to disable labels, so only the text supplied as parameters appears, separated by semicolons. This minimises the length of the template, and can be used when the template is used more than once to lessen its impact. Disabling labels also suppresses links.
{{Lang-zh|t=中國|s=中国|hp=Zhōngguó|tp=Jhongguó|labels=no}}
- 中国; 中國; Zhōngguó; Jhongguó
Add |links=no anywhere in the template to suppress label links. This is for preventing overlinking in an article or section where the template is used repeatedly.
{{Lang-zh|t=中國|s=中国|hp=Zhōngguó|tp=Jhongguó|links=no}}
- Hanzi sederhana: 中国; Hanzi tradisional: 中國; Hanyu Pinyin: Zhōngguó; Tongyong Pinyin: Jhongguó
Add |scase=yes anywhere in the template to use sentence case, so the first label starts with a capital letter. This allows the template to be used at the start of a sentence for example.
{{Lang-zh|t=中國|s=中国|hp=Zhōngguó|tp=Jhongguó|scase=yes}}
- Hanzi sederhana: 中国; Hanzi tradisional: 中國; Hanyu Pinyin: Zhōngguó; Tongyong Pinyin: Jhongguó
Ordering
The template can be given more than one value (for example, on the article China, it has s, t, hp, tp, and w). By default, when multiple parameters are given they will be shown in the same order as the above table: first Chinese characters (simplified, then traditional), then romanizations (starting with Hanyu and Tongyong Pinyin).
This order can be overridden using |first=. It accepts a comma delimited list of values, though currently only two are supported (more can be added if needed)
|first=t puts traditional Chinese before simplified Chinese, for example for Taiwan and Hong Kong topics
|first=j puts the Cantonese Romanizations, Jyutping and Yale, before pinyin Romanizations, for Hong Kong topics
- They can be combined: either
|first=j,t or |first=t,j can be used
Examples:
{{Lang-zh|t=臺北|s=台北|hp=Táiběi}}
- Hanzi sederhana: 台北; Hanzi tradisional: 臺北; Pinyin: Táiběi
{{Lang-zh|t=臺北|s=台北|hp=Táiběi|first=t}}
- Hanzi tradisional: 臺北; Hanzi sederhana: 台北; Pinyin: Táiběi
{{Lang-zh|t=九龍|s=九龙|p=Jiǔlóng|j=gau2lung4}}
- Hanzi sederhana: 九龙; Hanzi tradisional: 九龍; Pinyin: Jiǔlóng; Jyutping: gau2lung4
{{Lang-zh|t=九龍|s=九龙|p=Jiǔlóng|j=gau2lung4|first=t, j}}
- Hanzi tradisional: 九龍; Hanzi sederhana: 九龙; Jyutping: gau2lung4; Pinyin: Jiǔlóng
It is also possible to override the default ordering for an article, so traditional Chinese appears before simplified Chinese, i.e. so all uses of the template default to |first=t.
This is done by adding the article to the list t1st at the top of Module:Zh, following the formatting of the articles already there. The module is edit-protected, so you may need to use {{edit template-protected}} on the module's talk page Module talk:Zh to request an article is added, if you cannot add it yourself.