Template:LC zh/nl
File:Lua-logo-nolabel.svg | 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
<templatedata> { "format": "inline", "params": { "variant": { "label": "Language variant", "description": "Specify the language variant to output", "type": "string" }, "type": { "label": "Content type", "description": "The content type to convert.\n\n* \"N\": namespace name\n* \"T\": page title\n* \"H\": headings\n* \"C\": content", "example": "T", "type": "string", "required": true, "suggestedvalues": [ "N", "T", "H", "C" ], "autovalue": "C", "aliases": [ "1" ] }, "hide_ns": { "label": "Hide namespace name", "description": "Only for title output mode (T).\n\nUsed for pass nsp parameter from \"Template:Localized link\".\n\nOnly required for non-main-namespace page title texts.", "example": "", "type": "number", "suggestedvalues": [ "" ], "autovalue": "", "suggested": true, "aliases": [ "2", "nsp" ] }, "ns": { "label": "English canonical namespace name", "description": "Only for namespace name (N) and title (T) output modes.\n\nThe English namespace name of the full page title text.", "example": "Help",
"type": "string",
"suggestedvalues": [ "User", "User talk", "Project", "Template", "Help", "Category", "Manual", "Extension", "API", "Skin" ], "suggested": true, "aliases": [ "3", "namespace" ] }, "ns_2": { "label": "2nd English canonical namespace name", "description": "Expecially for Help namespace cases like \"Help:Extension:\".\n\nOnly for namespace name (N) and title (T) output modes.\n\nThe English namespace name of the full page title text.", "example": "Extension",
"type": "string"
}, "zh-hans": { "type": "string", "description": "Mandarin (Simplified Han script) content", "suggested": true }, "zh-hant": { "type": "string", "description": "Mandarin (Traditional Han script, Taiwan) content", "suggested": true }, "zh-hk": { "type": "string", "description": "Mandarin (Traditional Han script, Hong Kong) content" } }, "paramOrder": [ "variant", "type", "hide_ns", "ns", "ns_2", "zh-hans", "zh-hant", "zh-hk" ] } </templatedata>
Testgevallen
All tests passed.
test_main:
test_template: