Template:Zh
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template is a shorthand for formatting Chinese text by using {{Lang|selective = 1|mini = 1}} as a base.
Syntax
All fields are optional except the Chinese text.
{{Zh|Chinese text|rm = Romanisation of the Chinese text|tl = Translation of the Chinese text|lit = Literal Translation of the Chinese Text}}
- Simplified and Traditional
{{Zh|s = Simplified Chinese text|t = Traditonal Chinese text}}
- rm, tl and lit are still usable while also having extra parameters in the fashion of s_rm and t_tl.
Examples
{{Zh|你好呀,旅行者|rm = Nǐhǎo ya, Lǚxíngzhe|tl = Hello, Traveler|lit = Good Day, Traveler}} yields:
你好呀,旅行者 Nǐhǎo ya, Lǚxíngzhe, "Hello, Traveler," lit. "Good Day, Traveler"
- Simplified and Traditional
{{Zh|s = 与|t = 與|rm = yǔ}} yields:
与/與
Template Data
Template for formatting chinese
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Chinese text | tx 1 | Chinese text to be formatted | String | required |
| Romanization | rm 2 | Romanization of the chinese text | String | optional |
| Translation | tl 3 | Translation of the chinese text | String | optional |
| Literal Translation | lit 4 | Literal translation of the Chinese text | String | optional |