Template:zh-forms/documentation

New Chinese Hanzi box template, using Module:zh-forms to do its job.

Parameters
No compulsory parameters. Template takes the pagename as the traditional and simplified form by default; pagename can be overriden by |t= (use with caution).

Optional parameters:
 * s
 * Simplified form.
 * t2, t3, ...
 * Additional traditional forms.
 * s2, s3, ...
 * Additional simplified forms.
 * type
 * Compound type. e.g. (21). The compound type is a sequence of '1's with length equal to the number of characters in the pagename by default. Glosses will be generated for each of the compound components, based on:
 * (For single characters) stored glosses at Module:zh/data/glosses.
 * (For multi-character words) definitions in articles, if they exist.
 * e.g. (323):
 * (1st .. nth parameters)
 * Overriding existing or providing nonexistent glosses for the 1st .. nth component of the compound.
 * alt
 * Alternative forms of the word, separated by comma. When annotations following the word are needed, the format is:
 * e.g.
 * 新抱-Cantonese,心抱-Cantonese:sam1 pou5 at.
 * If the word is a phonetic transcription (not including phono-semantic matchings).
 * lit
 * Literal meaning.
 * note
 * Additional note to be displayed at the bottom of the template.
 * delink
 * Does not link to the n-th part (use comma to separate numbers, see for example). If equals 'y', applied to all components.
 * ss
 * Second-round simplified.
 * ns
 * Non-standard simplified.
 * align
 * Forces the box to align left when
 * align
 * Forces the box to align left when

Anagrams will be automatically generated for two-character words, if their anagram ( becomes  ) entry exists.

周瑜打黃蓋
}

TemplateData
{	"params": { "1": {			"example": "Zhou Yu", "label": "1st gloss override", "description": "Override for the first component's gloss. Params 1, 2, 3, ... available.", "type": "line" },		"2": {			"example": "phonetic", "label": "2nd gloss override", "description": "Override for the second component's gloss. Params 1, 2, 3, ... available.", "type": "line" },		"3": {			"example": "Huang Gai", "label": "3rd gloss override", "description": "Override for the third component's gloss. Params 1, 2, 3, ... available.", "type": "line" },		"s": { "label": "Simplified form", "type": "string", "suggested": true, "description": "The term in simplified characters", "example": "台湾" },		"type": { "label": "Compound type", "description": "Etymological/component breakdown of the term", "example": "211", "type": "number", "suggested": true },		"t2": { "label": "second traditional form", "description": "optional. Params t2-t8 available.", "example": "臺灣", "type": "wiki-page-name" },		"t3": { "label": "third traditional form", "description": "optional. Params t2-t8 available.", "type": "wiki-page-name" },		"s2": { "label": "second simplified form", "description": "optional. Params s2-s8 available. Not to be confused with the second round simplified form parameter 'ss'.", "type": "wiki-page-name" },		"s3": { "label": "third simplified form", "description": "optional. Params s2-s8 available.", "type": "wiki-page-name" },		"ss": { "label": "second round simplified form", "description": "Second round simplified form of the word.", "type": "wiki-page-name" },		"alt": { "label": "variant forms", "example": "新抱-Cantonese,心抱-Cantonese:sam1 pou5", "type": "string", "description": "Alternative forms of the word, separated by comma. When annotations following the word are needed, the format is: \"word-qualifier:pronunciation\"" },		"gloss": { "type": "line", "example": "-", "description": "If \"-\", renders the term as a phonetic transcription." },		"lit": { "label": "literally", "description": "Literal meaning in English", "type": "string", "example": " attacks " },		"note": { "description": "A note for the term", "example": "借: \"rely on\"", "type": "string" },		"delink": { "label": "delink components", "description": "Parts of the term to not link to; often overrides of the gloss will be preferred", "example": "1,3", "type": "string" }	},	"description": "Alternative forms of Chinese/hanzi text", "format": "inline" }