Template:LC zh/doc
| This is a documentation subpage for Template:LC zh. It contains usage information, categories and other content that is not part of the original Template page. |
This is the TemplateData documentation for this template used by VisualEditor and other tools.
LC zh
Language conversion template for Mandarin namespace names, page display titles, section headings and content. Only support zh-hans, zh-hant, zh-hk
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Output language/language variant | lang | The language/language variant to output. ("zh-hans", "zh-hans", "zh-hk")
| String | optional |
| Hide namespace prefixes? | hide_ns | (type = N, T) Whether to hide the namespace prefix (only apply to parameter "ns", does not affect parameter "ns_2"). Value is passed from the "nsp" parameter of [[Template:Localized link]]. Aliases: "2", "nsp".
| Boolean | optional |
| Content type | type | The content type, values: "N" - Namespace names - Do not use this type in page display title, "T" - Page display title, "H" - Section heading, "C" - Text content, "U" - Unconvertible content - Only use this type in unconvertible content, e.g., global announcements, syntax highlight blocks, system messages, user page templates. Aliases: "1".
| String | required |
| English canonical namespace name | ns | (type = N, T) The canonical name of the namespace in English. Aliases: "3", "namespace".
| String | optional |
| 2nd English canonical namespace name | ns_2 | (type = N, T) The canonical name of the secondary pseudo-namespace in English. For example, "Extension" in "Help:Extension:Example".
| String | optional |
| Mandarin - Simplified Han script | zh-hans | The text content in Mandarin - Simplified Han script.
| Content | suggested |
| Mandarin - Traditional Han script | zh-hant | The text content in Mandarin - Traditional Han script.
| Content | suggested |
| Mandarin - Traditional Han script, Hong Kong | zh-hk | The text content in Mandarin - Traditional Han script, Hong Kong.
| Content | optional |
Edit parameter translations