Template:LC zh/pl
Uses Lua: |
Opis
This template handles the language conversion ("LC") for Mandarin ("zh") page titles and content, especially for page titles with/without namespace names (the "nsp" parameter), content across language converter and non-language-converter pages.
Użycie
- Typy zawartości
- T: Tytuł strony
- Tylko dla głównej przestrzeni nazw:
{{LC zh|T|zh-hans=<zh-Hans nazwa strony>|zh-hant=<zh-Hant nazwa strony>}}
{{LC zh|T|{{{nsp|}}}|<nazwa przestrzeni nazw w języku angielskim>|zh-hans=<zh-Hans nazwa strony>|zh-hant=<zh-Hant nazwa strony>}}
{{LC zh|T|{{{nsp|}}}|<nazwa przestrzeni nazw w języku>|zh-hans=<zh-Hans nazwa strony>|zh-hant=<zh-Hant (zh-Hant-TW) nazwa strony>|zh-hk=<zh-Hant-HK nazwa strony>}}
- Przykład:
{{LC zh|T|{{{nsp|}}}|Project|zh-hans=关于|zh-hant=關於}}
- Tylko dla głównej przestrzeni nazw:
- C: Treść
{{LC zh|C|zh-hans=<Zawartość zh-Hans>|zh-hant=<Zawartość zh-Hant>}}
{{LC zh|C|zh-hans=<Zawartość zh-Hans>|zh-hant=<Zawartość zh-Hant (zh-Hant-TW)>|zh-hk=<Zawartość zh-Hant-HK>}}
- Przykład:
{{LC zh|C|zh-hans=关于|zh-hant=關於}}
- T: Tytuł strony
Integracja z innymi szablonami i modułami
Dane szablonu
LC zh
Language conversion template for Chinese script.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language Variant | variant | The fixed language variant to output. (e.g. `zh-hans`, `zh-hant`, etc.) | String | optional |
Content type | 1 | 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"
| String | required |
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"
| Boolean | optional |
English Canonical Namespace Name | 3 | (type=N, T) The canonical name of the namespace in English.\n\n;Aliases\n:"ns"\n:"namespace"
| String | optional |
2nd English Canonical Namespace Name | ns_2 | (type=N, T) The canonical name of the secondary pseudo-namespace in English, used for example in Help:Extension:Example
| String | optional |
Chinese | zh | The text content in Chinese script.
| Content | optional |
Simplified Chinese | zh-hans | The text content in simplified Chinese script.
| Content | suggested |
Traditional Chinese | zh-hant | The text content in traditional Chinese script.
| Content | suggested |
Chinese (China) | zh-cn | The text content in simplified Chinese script.
| Content | optional |
Chinese (Hong Kong) | zh-hk | The text content in traditional Chinese script used in Hong Kong.
| Content | optional |
Chinese (Macau) | zh-mo | The text content in traditional Chinese script used in Macau.
| Content | optional |
Chinese (Malaysia) | zh-my | The text content in simplified Chinese script.
| Content | optional |
Chinese (Singapore) | zh-sg | The text content in simplified Chinese script.
| Content | optional |
Chinese (Taiwan) | zh-tw | The text content in traditional Chinese script.
| Content | optional |
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Subpages of this template. |