Other languages:

Description

This template handles the language conversion ("LC") for Mandarin ("zh") page titles and content, especially for page titles with/without namespace names (the "nsp" parameter), content across language converter and non-language-converter pages.

Usage

  • Content types
    • T: Page title
      • For main namespace only: {{LC zh|T|zh-hans=<zh-Hans page name>|zh-hant=<zh-Hant page name>}}
      • {{LC zh|T|{{{nsp|}}}|<namespace name in en>|zh-hans=<zh-Hans page name>|zh-hant=<zh-Hant page name>}}
      • {{LC zh|T|{{{nsp|}}}|<namespace name in en>|zh-hans=<zh-Hans page name>|zh-hant=<zh-Hant (zh-Hant-TW) page name>|zh-hk=<zh-Hant-HK page name>}}
      • Example:{{LC zh|T|{{{nsp|}}}|Project|zh-hans=关于|zh-hant=關於}}
    • C: Content
      • {{LC zh|C|zh-hans=<zh-Hans content>|zh-hant=<zh-Hant content>}}
      • {{LC zh|C|zh-hans=<zh-Hans content>|zh-hant=<zh-Hant (zh-Hant-TW) content>|zh-hk=<zh-Hant-HK content>}}
      • Example: {{LC zh|C|zh-hans=关于|zh-hant=關於}}

Integration with other templates and modules

Template data

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Content type1

The content type to convert. "<code>T</code>" (title) or "<code>C</code>" (content).

Example
T
Stringrequired
T: nsp2

Only for T (title). Used for pass nsp parameter from [[Template:Localized link]].

Suggested values
{{{nsp|}}}
Example
{{{nsp|}}}
Auto value
{{{nsp|}}}
Numbersuggested
T: Namespace name3

The namespace for T (title).

Example
Skin
Stringsuggested
T: Title without namespace for auto conversion4

Page title without namespace for auto language conversion for T (title) mode.

Example
Vector
Unknownoptional
zhzh

no description

Unknownoptional
zh-hanszh-hans

no description

Unknownoptional
zh-hantzh-hant

no description

Unknownoptional
zh-hkzh-hk

no description

Unknownoptional