Template:LC zh/nl

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

Beschrijving

Dit sjabloon handelt de taalconversie ("LC") voor Mandarijn ("zh") pagina titels en inhoud af, speciaal voor paginatitels met/zonder namespace namen (de parameter "nsp"), inhoud rond de Language Converter en de niet Language-Converter pagina's.

Gebruik

  • Inhoudtypes
    • T: Paginatitel
      • Alleen voor de namespace mainː {{LC zh|T|zh-hans=<zh-Hans paginanaam>|zh-hant=<zh-Hant paginanaam>}}
      • {{LC zh|T|nsp={{{nsp|}}}|<namespace naam in Engels>|zh-hans=<zh-Hans paginanaam>|zh-hant=<zh-Hant paginanaam>}}
      • {{LC zh|T|nsp={{{nsp|}}}|<namespace naam in Engels>|zh-hans=<zh-Hans paginanaam>|zh-hant=<zh-Hant (zh-Hant-TW) paginanaam>|zh-hk=<zh-Hant-HK paginanaam>}}
      • Voorbeeld: {{LC zh|T|nsp={{{nsp|}}}|Project|zh-hans=关于|zh-hant=關於}}
    • C: Inhoud
      • {{LC zh|C|zh-hans=<zh-Hans inhoud>|zh-hant=<zh-Hant inhoud>}}
      • {{LC zh|C|zh-hans=<zh-Hans inhoud>|zh-hant=<zh-Hant (zh-Hant-TW) inhoud>|zh-hk=<zh-Hant-HK inhoud>}}
      • Voorbeeld: {{LC zh|C|zh-hans=关于|zh-hant=關於}}

Integratie met andere sjablonen en modules

Opmerkingen

Als het sjabloon een sjabloon is van een gebruikerspagina, een wereldwijde aankondiging, enz., dan kan die niet worden omgezet met behulp van de Language Converter, u moet overwegen Template:Conversion-zh te gebruiken in plaats van dit sjabloon.

Sjabloongegevens

[weergeven · overleg · bewerken]

Dit is de TemplateData documentatie van dit sjabloon dat gebruikt wordt door de VisualEditor en andere hulpmiddelen.

LC zh

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
Edit parameter translations

Testgevallen

All tests passed.

test_main:

Text Expected Actual
Yes {{#invoke:LC zh|main}} An error Caught expected error: Lua error in Module:LC_zh at line 482: Unknown or missing content type code: nil.
Yes {{#invoke:LC zh|main|type=N}}
Yes {{#invoke:LC zh|main|type=N|ns=User}} User User
Yes {{#invoke:LC zh|main|type=N|ns=Help}} Help Help
Yes {{#invoke:LC zh|main|type=T}}
Yes {{#invoke:LC zh|main|type=T|ns=User}} User: User:
Yes {{#invoke:LC zh|main|type=T|ns=Help}} Help: Help:
Yes {{#invoke:LC zh|main|type=T|ns=User|zh=Example}} User:Example User:Example
Yes {{#invoke:LC zh|main|type=T|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} Help:Example Help:Example
Yes {{#invoke:LC zh|main|type=T|hide_ns=1|ns=Help}}
Yes {{#invoke:LC zh|main|type=T|hide_ns=1|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} Example Example
Yes {{#invoke:LC zh|main|type=H}} An error Caught expected error: Lua error: Missing text for LL conversion mode and lang code: zh.
Yes {{#invoke:LC zh|main|type=C}} An error Caught expected error: Lua error: Missing text for LL conversion mode and lang code: zh.
Yes {{#invoke:LC zh|main|type=C|zh=Example|zh-hans=示例|zh-hant=範例}} Example Example

test_template:

Text Expected Actual
Yes {{LC zh}} An error Caught expected error: Lua error in Module:LC_zh at line 482: Unknown or missing content type code: nil.
Yes {{LC zh|type=N}}
Yes {{LC zh|type=N|ns=User}} User User
Yes {{LC zh|type=N|ns=Help}} Help Help
Yes {{LC zh|type=T}}
Yes {{LC zh|type=T|ns=User}} User: User:
Yes {{LC zh|type=T|ns=Help}} Help: Help:
Yes {{LC zh|type=T|ns=User|zh=Example}} User:Example User:Example
Yes {{LC zh|type=T|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} Help:Example Help:Example
Yes {{LC zh|type=T|hide_ns=1|ns=Help}}
Yes {{LC zh|type=T|hide_ns=1|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} Example Example
Yes {{LC zh|type=H}} An error Caught expected error: Lua error: Missing text for LL conversion mode and lang code: zh.
Yes {{LC zh|type=C}} An error Caught expected error: Lua error: Missing text for LL conversion mode and lang code: zh.
Yes {{LC zh|type=C|zh=Example|zh-hans=示例|zh-hant=範例}} Example Example

test_template_localized_link:

Text Expected Actual
Yes {{Localized link}} [[Special:MyLanguage/{{{1}}}|{{{1}}}]]<span style="display:none">[[:{{{1}}}| ]]</span> [[Special:MyLanguage/{{{1}}}|{{{1}}}]]<span style="display:none">[[:{{{1}}}| ]]</span>

test_template_localized_link_sandbox:

Text Expected Actual
Yes {{Localized link/sandbox}} [[Special:MyLanguage/{{{1}}}|{{{1}}}]]<span style="display:none">[[:{{{1}}}| ]]</span> [[Special:MyLanguage/{{{1}}}|{{{1}}}]]<span style="display:none">[[:{{{1}}}| ]]</span>