This page is a translated version of the page Template:LC zh/doc and the translation is 100% complete.

설명

이 템플릿은 중국어("zh") 페이지 제목과 콘텐츠에 대한 언어 변환("LC")을 처리하며, 특히 이름공간 이름이 있거나 없는 페이지 제목("nsp" 매개변수), 언어 변환기 페이지와 언어 변환기가 아닌 페이지의 콘텐츠에 대한 언어 변환을 처리합니다.

사용법

  • 콘텐츠 유형
    • T: 페이지 제목
      • 기본 이름공간에만 해당: {{LC zh|T|zh-hans=<zh-Hans 페이지 이름>|zh-hant=<zh-Hant 페이지 이름>}}
      • {{LC zh|T|{{{nsp|}}}|<en의 이름공간 이름>|zh-hans=<zh-Hans 페이지 이름>|zh-hant=<zh-Hant 페이지 이름>}}
      • {{LC zh|T|{{{nsp|}}}|<en의 이름공간 이름>|zh-hans=<zh-Hans 페이지 이름>|zh-hant=<zh-Hant (zh-Hant-TW) 페이지 이름>|zh-hk=<zh-Hant-HK 페이지 이름>}}
      • 예시:{{LC zh|T|{{{nsp|}}}|Project|zh-hans=关于|zh-hant=關於}}
    • C: 콘텐츠
      • {{LC zh|C|zh-hans=<zh-Hans 콘텐츠>|zh-hant=<zh-Hant 콘텐츠>}}
      • {{LC zh|C|zh-hans=<zh-Hans 콘텐츠>|zh-hant=<zh-Hant (zh-Hant-TW) 콘텐츠>|zh-hk=<zh-Hant-HK 콘텐츠>}}
      • 예시: {{LC zh|C|zh-hans=关于|zh-hant=關於}}

다른 템플릿 및 모듈과의 통합

틀 데이터

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for LC zh/doc

Language conversion template for Chinese script.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Language Variantvariant

The fixed language variant to output. (e.g. `zh-hans`, `zh-hant`, etc.)

Stringoptional
Content type1

The content type, values:\n* "N" - Namespace Name\n* "T" - Full Page Title\n* "H" - Heading\n* "C" - Text Content\n\n;Aliases\n:"type"

Example
T
Auto value
C
Stringrequired
Hide Namespace Prefix?2

(type=N, T) Whether to hide the namespace prefix (value is passed to [[Template:Localized link]] as the "nsp" parameter).\n\n;Aliases\n:"hide_ns"\n:"nsp"

Auto value
{{{nsp|}}}
Booleanoptional
English Canonical Namespace Name3

(type=N, T) The canonical name of the namespace in English.\n\n;Aliases\n:"ns"\n:"namespace"

Example
Help
Stringoptional
2nd English Canonical Namespace Namens_2

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

Example
Extension
Stringoptional
English Page Name4

(type=T) The canonical name of the page in English without the namespace prefix (like the PAGENAME variable).

Example
ParserFunctions
Stringoptional
Chinesezh

The text content in Chinese script.

Default
{{{zh-hans|{{{zh-hant}}}}}}
Contentoptional
Simplified Chinesezh-hans

The text content in simplified Chinese script.

Default
{{{zh}}}
Contentsuggested
Traditional Chinesezh-hant

The text content in traditional Chinese script.

Default
{{{zh}}}
Contentsuggested
Chinese (China)zh-cn

The text content in simplified Chinese script.

Default
{{{zh-hans}}}
Contentoptional
Chinese (Hong Kong)zh-hk

The text content in traditional Chinese script used in Hong Kong.

Default
{{{zh-hant}}}
Contentoptional
Chinese (Macau)zh-mo

The text content in traditional Chinese script used in Macau.

Default
{{{zh-hant}}}
Contentoptional
Chinese (Malaysia)zh-my

The text content in simplified Chinese script.

Default
{{{zh-hans}}}
Contentoptional
Chinese (Singapore)zh-sg

The text content in simplified Chinese script.

Default
{{{zh-hans}}}
Contentoptional
Chinese (Taiwan)zh-tw

The text content in traditional Chinese script.

Default
{{{zh-hant}}}
Contentoptional

변수 번역 편집