跳转到内容

模板:LC zh/nl

来自天灾之下:危险连接资料站


模板文档

Beschrijving

Dit sjabloon handelt de taalconversie ("LC") voor Mandarijn ("zh") paginatitels 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

Het gebruik kan verschillen per inhoudstype.

Fragmenteer de inhoud niet, tenzij het een specifieke Wikitext-syntaxis is (sectiekoppen, lijsten).

Green tickY {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 按需求配置。|zh-hant = 按需求設定組態。}}

文件:OOjs UI icon close-ltr-destructive.svgN 按需求{{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 配置|zh-hant = 設定組態}}。

Green tickY {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = '''按需求配置。'''|zh-hant = '''按需求設定組態。'''}}

文件:OOjs UI icon close-ltr-destructive.svgN '''{{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 按需求配置。|zh-hant = 按需求設定組態。}}'''

Green tickY == {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 按需求配置。|zh-hant = 按需求設定組態。}} ==

文件:OOjs UI icon close-ltr-destructive.svgN {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = == 按需求配置。 ==|zh-hant = == 按需求設定組態。 ==}}

文件:OOjs UI icon close-ltr-destructive.svgN == 按需求{{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 配置|zh-hant = 設定組態}}。 ==

Green tickY * {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 按需求配置。|zh-hant = 按需求設定組態。}}

文件:OOjs UI icon close-ltr-destructive.svgN {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = * 按需求配置。|zh-hant = * 按需求設定組態。}}

文件:OOjs UI icon close-ltr-destructive.svgN * 按需求{{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 配置|zh-hant = 設定組態}}。

N - Namespace names

Gebruik dit type niet in de weergavetitel van de pagina.

Namespace alleen-naam:

  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = <namespace naam in Engels>}}

Bevat naam pseudo namespace:

  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = <namespace naam in Engels>|ns_2 = <pseudo namespace naam in Engels>}}

Voorbeeld:

  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help}} → Help
  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help|ns_2 = Extension}} → Help:Extension

T - Paginatitel weergave

Voor paginanamen in de namespace mainː

  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = |zh-hans = <zh-Hans paginanaam>|zh-hant = <zh-Hant paginanaam>}}

Voor paginanamen die de naam van de namespace bevattenː

  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = <namespace naam in Engels>|zh-hans = <zh-Hans paginanaam>|zh-hant = <zh-Hant paginanaam>}}
  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = <namespace naam in Engels>|zh-hans = <zh-Hans paginanaam>|zh-hant = <zh-Hant (zh-Hant-TW) paginanaam>|zh-hk = <zh-Hant-HK paginanaam>}}

Voor paginanamen die de naam van de pseudo namespace bevattenː

  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = <namespace naam in Engels>|ns_2 = <pseudo namespace naam in Engels>|zh-hans = <zh-Hans paginanaam>|zh-hant = <zh-Hant paginanaam>}}
  • {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = <namespace naam in Engels>|ns_2 = <pseudo 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|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = Project|zh-hans = 关于|zh-hant = 關於}} → Project:关于

H - Koppen

Koppen kunnen automatisch meerdere anchors genereren voor verschillende taalvarianten.

  • == {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = <zh-Hans sectiekop>|zh-hant = <zh-Hant sectiekop>}} ==
  • == {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = <zh-Hans sectiekop>|zh-hant = <zh-Hant (zh-Hant-TW) sectiekop>|zh-hk = <zh-Hant-HK sectiekop>}} ==

Voorbeeld:

  • == {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = 关于|zh-hant = 關於}} == → == 关于 ==

C - Inhoud

  • {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = <zh-Hans inhoud>|zh-hant = <zh-Hant inhoud>}}
  • {{LC zh|lang = {{{lang|}}}|C|zh-hans = <zh-Hans inhoud>|zh-hant = <zh-Hant (zh-Hant-TW) inhoud>|zh-hk =<zh-Hant-HK inhoud>}}

Voorbeeld:

  • {{LC zh|lang = {{{lang|}}}|type = 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

[<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]

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

LC zh

模块:TNT第207行Lua错误:数据集Data:LC zh.tab无效

Testgevallen

All tests passed.

test_main:

Text Expected Actual
Yes {{#invoke:LC zh|main}} An error Caught expected error: Lua错误:Unknown content type code "nil"。
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}}} An error Caught expected error: Lua错误:Unknown content type code "nil"。
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = N}} An error Caught expected error: Lua错误:Missing parameter "ns"。
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = N|ns = }}
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = N|ns = User}} User User
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = N|ns = Help}} Help Help
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = T}} An error Caught expected error: Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"。
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = T|ns = User}} An error Caught expected error: 模块:LC_zh第591行Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = T|ns = User|zh-hans = Example|zh-hant = Example}} User:Example User:Example
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = T|ns = Help|zh-hans = 示例|zh-hant = 範例}} Help:示例 Help:示例
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = T|ns = Help|zh-hant = 範例}} Help:範例 Help:範例
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = T|hide_ns = 1|ns = Help}} An error Caught expected error: Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"。
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = T|hide_ns = 1|ns = Help|zh-hans = 示例|zh-hant = 範例}} 示例 示例
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = H}} An error Caught expected error: 模块:LC_zh第620行Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = H|zh-hans = 用户|zh-hant = 使用者|zh-hk = 用戶}} 用户 用户
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type = C}} An error Caught expected error: Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"。
Yes {{#invoke:LC zh|main|lang = {{{lang|}}}|type=C|zh-hans=示例|zh-hant=範例}} 示例 示例

test_template:

Text Expected Actual
Yes {{LC zh}} An error Caught expected error: Lua错误:Unknown content type code "nil"。
Yes {{LC zh|lang = {{{lang|}}}}} An error Caught expected error: Lua错误:Unknown content type code "nil"。
Yes {{LC zh|lang = {{{lang|}}}|type = N}} An error Caught expected error: Lua错误:Missing parameter "ns"。
Yes {{LC zh|lang = {{{lang|}}}|type = N|ns = }}
Yes {{LC zh|lang = {{{lang|}}}|type = N|ns = User}} User User
Yes {{LC zh|lang = {{{lang|}}}|type = N|ns = Help}} Help Help
Yes {{LC zh|lang = {{{lang|}}}|type = T}} An error Caught expected error: Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"。
Yes {{LC zh|lang = {{{lang|}}}|type = T|ns = User}} An error Caught expected error: 模块:LC_zh第591行Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"
Yes {{LC zh|lang = {{{lang|}}}|type = T|ns = User|zh-hans = Example|zh-hant = Example}} User:Example User:Example
Yes {{LC zh|lang = {{{lang|}}}|type = T|ns = Help|zh-hans = 示例|zh-hant = 範例}} Help:示例 Help:示例
Yes {{LC zh|lang = {{{lang|}}}|type = T|ns = Help|zh-hant = 範例}} Help:範例 Help:範例
Yes {{LC zh|lang = {{{lang|}}}|type = T|hide_ns = 1|ns = Help}} An error Caught expected error: Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"。
Yes {{LC zh|lang = {{{lang|}}}|type = T|hide_ns = 1|ns = Help|zh-hans = 示例|zh-hant = 範例}} 示例 示例
Yes {{LC zh|lang = {{{lang|}}}|type = H}} An error Caught expected error: 模块:LC_zh第620行Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"
Yes {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = 用户|zh-hant = 使用者|zh-hk = 用戶}} 用户 用户
Yes {{LC zh|lang = {{{lang|}}}|type = C}} An error Caught expected error: Lua错误:Require at least one of the parameter: "zh-hans", "zh-hant", "zh-hk"。
Yes {{LC zh|lang = {{{lang|}}}|type=C|zh-hans=示例|zh-hant=範例}} 示例 示例

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>

Categorieën die volgen