Template:LC zh/nl
Uses Lua: |
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=關於}}
- Alleen voor de namespace mainː
- 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=關於}}
- T: Paginatitel
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language variant | variant | Specify the language variant to output | String | optional |
Content type | type 1 | The content type to convert.
| String | required |
Hide namespace name | hide_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.
| Number | suggested |
English canonical namespace name | ns 3 namespace | Only for namespace name (N) and title (T) output modes. The English namespace name of the full page title text.
| String | suggested |
2nd English canonical namespace name | ns_2 | Expecially for Help namespace cases like "Help:Extension:". Only for namespace name (N) and title (T) output modes. The English namespace name of the full page title text.
| String | optional |
zh-hans | zh-hans | Mandarin (Simplified Han script) content | String | suggested |
zh-hant | zh-hant | Mandarin (Traditional Han script, Taiwan) content | String | suggested |
zh-hk | zh-hk | Mandarin (Traditional Han script, Hong Kong) content | String | optional |
Testgevallen
1 tests failed.
test_main:
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:LC zh|main}} | |||
{{#invoke:LC zh|main|type=N}} | |||
{{#invoke:LC zh|main|type=N|ns=User}} | User | User | |
{{#invoke:LC zh|main|type=N|ns=Help}} | Help | Help | |
{{#invoke:LC zh|main|type=T}} | |||
{{#invoke:LC zh|main|type=T|ns=User}} | User: | User: | |
{{#invoke:LC zh|main|type=T|ns=Help}} | Help: | Help: | |
{{#invoke:LC zh|main|type=T|ns=User|zh=Example}} | User:Example | User:Example | |
{{#invoke:LC zh|main|type=T|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} | Help:Example | Help:Example | |
{{#invoke:LC zh|main|type=T|hide_ns=1|ns=Help}} | |||
{{#invoke:LC zh|main|type=T|hide_ns=1|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} | Example | Example | |
{{#invoke:LC zh|main|type=H}} | |||
{{#invoke:LC zh|main|type=C}} | |||
{{#invoke:LC zh|main|type=C|zh=Example|zh-hans=示例|zh-hant=範例}} | Example | Example |
test_template:
Text | Expected | Actual | |
---|---|---|---|
{{LC zh}} | |||
{{LC zh|type=N}} | |||
{{LC zh|type=N|ns=User}} | User | User | |
{{LC zh|type=N|ns=Help}} | Help | Help | |
{{LC zh|type=T}} | |||
{{LC zh|type=T|ns=User}} | User: | User: | |
{{LC zh|type=T|ns=Help}} | Help: | Help: | |
{{LC zh|type=T|ns=User|zh=Example}} | User:Example | User:Example | |
{{LC zh|type=T|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} | Help:Example | Help:Example | |
{{LC zh|type=T|hide_ns=1|ns=Help}} | |||
{{LC zh|type=T|hide_ns=1|ns=Help|zh=Example|zh-hans=示例|zh-hant=範例}} | Example | Example | |
{{LC zh|type=H}} | |||
{{LC zh|type=C}} | |||
{{LC zh|type=C|zh=Example|zh-hans=示例|zh-hant=範例}} | Example | Example |
test_template_localized_link:
Text | Expected | Actual | |
---|---|---|---|
{{Localized link}} | [[Special:MyLanguage/{{{1}}}|{{{1}}}]] | [[Special:MyLanguage/{{{1}}}|{{{1}}}]] |
test_template_localized_link_sandbox:
Text | Expected | Actual | |
---|---|---|---|
{{Localized link/sandbox}} | [[Special:MyLanguage/{{{1}}}|{{{1}}}]] | [[Special:MyLanguage/{{{1}}}|{{{1}}}]] |