Module:LC zh/doc
Appearance
This is a documentation subpage for Module:LC zh. It contains usage information, categories and other content that is not part of the original Module page. |
Description
[edit]Implements {{LC zh }} for zh language conversion.
Test cases
[edit]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}}}]] |