Jump to content

Template:LC zh/doc

From mediawiki.org

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

Template parameters

ParameterDescriptionTypeStatus
Output language/language variantlang

The language/language variant to output. ("zh-hans", "zh-hans", "zh-hk")

Example
zh-hant
Auto value
{{{lang|}}}
Stringoptional
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".

Example
1
Auto value
{{{nsp|}}}
Booleanoptional
Content typetype

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".

Example
T
Auto value
C
Stringrequired
English canonical namespace namens

(type = N, T) The canonical name of the namespace in English. Aliases: "3", "namespace".

Example
Help
Stringoptional
2nd English canonical namespace namens_2

(type = N, T) The canonical name of the secondary pseudo-namespace in English. For example, "Extension" in "Help:Extension:Example".

Example
Extension
Stringoptional
Mandarin - Simplified Han scriptzh-hans

The text content in Mandarin - Simplified Han script.

Default
{{{zh-hant|{{{zh-hk|}}}}}}
Example
Example_zh-Hans
Contentsuggested
Mandarin - Traditional Han scriptzh-hant

The text content in Mandarin - Traditional Han script.

Default
{{{zh-hk|{{{zh-hans|}}}}}}
Example
Example_zh-Hant
Contentsuggested
Mandarin - Traditional Han script, Hong Kongzh-hk

The text content in Mandarin - Traditional Han script, Hong Kong.

Default
{{{zh-hant|{{{zh-hans|}}}}}}
Example
Example_zh-Hant-HK
Contentoptional

Edit parameter translations