Template:LC zh

Permanently protected template
From mediawiki.org
Template documentation

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={{{nsp|}}}|<namespace name in en>|zh-hans=<zh-Hans page name>|zh-hant=<zh-Hant page name>}}
      • {{LC zh|T|nsp={{{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={{{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

Notes

If the template is a user page template, global announcement, etc., which cannot be converted using Language Converter, you should consider using Template:Conversion-zh instead of this template.

Template data

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Output mode (content type)mode 1

The output mode of the template.

The content type to convert.

  • "T" (page title); or:
  • "C" (content).

    Suggested values
    T C
    Example
    T
    Auto value
    C
Stringrequired
Hide namespace namehide_ns 2 nsp

Only for title output mode (T).

Used for pass nsp parameter from "Template:Localized link".

Only required for non-main-namespace page title texts.

Suggested values
{{{nsp|}}}
Example
{{{nsp|}}}
Auto value
{{{nsp|}}}
Numbersuggested
English namespace namens 3 namespace

Only for title output mode (T). The English namespace name of the full page title text.

Suggested values
User User talk Project Template Help Category Manual Extension API Skin
Example
Skin
Stringsuggested
zhzh

no description

Stringoptional
zh-hanszh-hans

no description

Stringsuggested
zh-hantzh-hant

no description

Stringsuggested
zh-cnzh-cn

no description

Stringoptional
zh-myzh-my

no description

Stringoptional
zh-sgzh-sg

no description

Stringoptional
zh-twzh-tw

no description

Stringoptional
zh-hkzh-hk

no description

Stringoptional
zh-mozh-mo

no description

Stringoptional