Template:Lang-zh/doc

About
There were once [//en.wikipedia.org/w/index.php?title=Template:Zh-all&oldid=308206352 a large number] of Chinese Romanization templates: zh-stp could display simplified and traditional characters and Hanyu Pinyin; zh-cpwl could display general Han characters, pinyin and Wade–Giles, and literal translations; zh-full and its sub-templates allowed more control over display order, etc..

This template was created to combine these into one template with all needed functionality. It can display (and link to) general, simplified, or traditional Han characters; literal translation; Zhuyin (Bopomofo); and the Hanyu Pinyin, Tongyong Pinyin, Wade–Giles, Jyutping, Cantonese Yale, Sidney Lau and Pe̍h-ōe-jī romanizations. It supports reordering the output for the most commonly used orders (other orderings can easily be added).

Parameters
To use the template, start with and add any parameters you like, along with what you want to be displayed. The template will display all, and only, the parameters that you give it. The following parameters are supported:

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.

TemplateData
{	"description": "A template to facilitiate consistent layout, proper formatting, categorisation and language labelling of Chinese text", "params": { "c": { "label": "Chinese", "description": "Chinese characters", "type": "string", "suggested": true },		"s": { "label": "Simplified Chinese", "description": "Simplified Chinese characters", "type": "string", "suggested": true },		"t": { "label": "Traditional Chinese", "description": "Traditional Chinese characters", "type": "string", "suggested": true },		"p": { "label": "pinyin", "description": "Hanyu Pinyin Romanization", "type": "string" },		"tp": { "label": "Tongyong Pinyin", "description": "Tongyong Pinyin Romanization", "type": "string" },		"w": { "label": "Wade-Giles", "description": "Wade-Giles Romanization", "type": "string" },		"j": { "label": "Jyutping", "description": "[Cantonese] Jyutping Romanization", "type": "string" },		"cy": { "label": "Cantonese Yale", "description": "Cantonese Yale Romanization", "type": "string" },		"sl": { "label": "Sidney Lau", "description": "Sidney Lau Romanization", "type": "string" },		"poj": { "label": "Pe̍h-ōe-jī", "description": "Pe̍h-ōe-jī Romanization", "type": "string" },		"zhu": { "label": "Zhuyin Fuhao", "description": "Zhuyin Fuhao/Bopomofo", "type": "string" },		"l": { "label": "literally", "description": "literal [English] meaning", "type": "string" },		"labels": { "label": "Labels", "description": "Whether or not to display labels", "type": "string", "default": "yes" },		"links": { "label": "Links", "description": "Whether or not to link to the article of the specific article of the language/script/romanization", "type": "string", "default": "yes" },		"first": { "label": "ordering", "description": "'t', 'j' or 't, j' to put traditional Chinese and/or Cantonese Romanizations first", "type": "string" },		"scase": { "label": "sentence case", "description": "Capitalises the first label", "type": "string" }	} }