Template:LC zh/zh: Difference between revisions
From Test Wiki
Content deleted Content added
Created page with "'''请勿'''在页面显示标题中使用此类型。" |
Created page with "== 追踪分类 ==" |
||
| (31 intermediate revisions by the same user not shown) | |||
| Line 45: | Line 45: | ||
| text = '''请勿'''在页面显示标题中使用此类型。 |
| text = '''请勿'''在页面显示标题中使用此类型。 |
||
}} |
}} |
||
仅命名空间名称: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
Namespace name-only: |
|||
</div> |
|||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = N{{!}}ns = <$1>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = N{{!}}ns = <$1>{{))}} |
||
|1=英文中的命名空间名称 |
|||
|1=namespace name in en |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
包含伪命名空间名称: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
Containing pseudo namespace name: |
|||
</div> |
|||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = N{{!}}ns = <$1>{{!}}ns_2 = <$2>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = N{{!}}ns = <$1>{{!}}ns_2 = <$2>{{))}} |
||
|1=英文中的命名空间名称 |
|||
|1=namespace name in en |
|||
|2=英文中的伪命名空间名称 |
|||
|2=pseudo namespace name in en |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
示例: |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">Example:</span> |
|||
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help}} |
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help}} |
||
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help|ns_2 = Extension}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help|ns_2 = Extension}} |
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help|ns_2 = Extension}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = N|ns = Help|ns_2 = Extension}} |
||
<span id="T_-_Page_display_title"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
=== T - |
=== T - 页面显示标题 === |
||
</div> |
|||
在主命名空间的页面标题: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
For page titles in main namespace: |
|||
</div> |
|||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = {{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = {{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{))}} |
||
|1=简体中文页面名称 |
|||
|1=zh-Hans page name |
|||
|2=繁体中文页面名称 |
|||
|2=zh-Hant page name |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
包含命名空间名称的页面标题: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
For page titles containing namespace name: |
|||
</div> |
|||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}zh-hans = <$2>{{!}}zh-hant = <$3>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}zh-hans = <$2>{{!}}zh-hant = <$3>{{))}} |
||
|1=英文中的命名空间名称 |
|||
|1=namespace name in en |
|||
|2=简体中文页面名称 |
|||
|2=zh-Hans page name |
|||
|3=繁体中文页面名称 |
|||
|3=zh-Hant page name |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}zh-hans = <$2>{{!}}zh-hant = <$3>{{!}}zh-hk = <$4>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}zh-hans = <$2>{{!}}zh-hant = <$3>{{!}}zh-hk = <$4>{{))}} |
||
|1=英文中的命名空间名称 |
|||
|1=namespace name in en |
|||
|2=简体中文页面名称 |
|||
|2=zh-Hans page name |
|||
|3=繁体中文(台湾)页面名称 |
|||
|3=zh-Hant (zh-Hant-TW) page name |
|||
|4=繁体中文(香港)页面名称 |
|||
|4=zh-Hant-HK page name |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
包含伪命名空间名称的页面标题: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
For page titles containing pseudo namespace name: |
|||
</div> |
|||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}ns_2 = <$2>{{!}}zh-hans = <$3>{{!}}zh-hant = <$4>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}ns_2 = <$2>{{!}}zh-hans = <$3>{{!}}zh-hant = <$4>{{))}} |
||
|1=英文中的命名空间名称 |
|||
|1=namespace name in en |
|||
|2=英文中的伪命名空间名称 |
|||
|2=pseudo namespace name in en |
|||
|3=简体中文页面名称 |
|||
|3=zh-Hans page name |
|||
|4=繁体中文页面名称 |
|||
|4=zh-Hant page name |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}ns_2 = <$2>{{!}}zh-hans = <$3>{{!}}zh-hant = <$4>{{!}}zh-hk = <$5>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}hide_ns = {{(((}}nsp{{!}}{{)))}}{{!}}type = T{{!}}ns = <$1>{{!}}ns_2 = <$2>{{!}}zh-hans = <$3>{{!}}zh-hant = <$4>{{!}}zh-hk = <$5>{{))}} |
||
|1=英文中的命名空间名称 |
|||
|1=namespace name in en |
|||
|2=英文中的伪命名空间名称 |
|||
|2=pseudo namespace name in en |
|||
|3=简体中文页面名称 |
|||
|3=zh-Hans page name |
|||
|4=繁体中文(台湾)页面名称 |
|||
|4=zh-Hant (zh-Hant-TW) page name |
|||
|5=繁体中文(香港)页面名称 |
|||
|5=zh-Hant-HK page name |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
示例: |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">Example:</span> |
|||
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = Project|zh-hans = 关于|zh-hant = 關於}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = Project|zh-hans = 关于|zh-hant = 關於}} |
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = Project|zh-hans = 关于|zh-hant = 關於}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|hide_ns = {{{nsp|}}}|type = T|ns = Project|zh-hans = 关于|zh-hant = 關於}} |
||
<span id="H_-_Section_headings"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
=== H - |
=== H - 章节标题 === |
||
</div> |
|||
标题可以为不同的语言变体自动生成多个描点。 |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
Headings can automatically generate multiple anchors for different language variants. |
|||
</div> |
|||
* {{#tag:syntaxhighlight|{{tmpl|0=== {{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}type = H{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{))}} == |
* {{#tag:syntaxhighlight|{{tmpl|0=== {{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}type = H{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{))}} == |
||
|1=简体中文章节标题 |
|||
|1=zh-Hans section heading |
|||
|2=繁体中文章节标题 |
|||
|2=zh-Hant section heading |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
* {{#tag:syntaxhighlight|{{tmpl|0=== {{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}type = H{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{!}}zh-hk = <$3>{{))}} == |
* {{#tag:syntaxhighlight|{{tmpl|0=== {{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}type = H{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{!}}zh-hk = <$3>{{))}} == |
||
|1=简体中文章节标题 |
|||
|1=zh-Hans section heading |
|||
|2=繁体中文(台湾)章节标题 |
|||
|2=zh-Hant (zh-Hant-TW) section heading |
|||
|3=繁体中文(香港)章节标题 |
|||
|3=zh-Hant-HK section heading |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
示例: |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">Example:</span> |
|||
* <syntaxhighlight lang="wikitext" inline>== {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = 关于|zh-hant = 關於}} ==</syntaxhighlight> → == {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = 关于|zh-hant = 關於}} == |
* <syntaxhighlight lang="wikitext" inline>== {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = 关于|zh-hant = 關於}} ==</syntaxhighlight> → == {{LC zh|lang = {{{lang|}}}|type = H|zh-hans = 关于|zh-hant = 關於}} == |
||
<span id="C_-_Content"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
=== C - |
=== C - 内容 === |
||
</div> |
|||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}type = C{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}type = C{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{))}} |
||
|1=简体中文内容 |
|||
|1=zh-Hans content |
|||
|2=繁体中文内容 |
|||
|2=zh-Hant content |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}C{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{!}}zh-hk =<$3>{{))}} |
* {{#tag:syntaxhighlight|{{tmpl|0={{((}}LC zh{{!}}lang = {{((}}{lang{{!}}}{{))}}{{!}}C{{!}}zh-hans = <$1>{{!}}zh-hant = <$2>{{!}}zh-hk =<$3>{{))}} |
||
|1=简体中文内容 |
|||
|1=zh-Hans content |
|||
|2=繁体中文(台湾)内容 |
|||
|2=zh-Hant (zh-Hant-TW) content |
|||
|3=繁体中文(香港)内容 |
|||
|3=zh-Hant-HK content |
|||
}}|lang = wikitext|inline = }} |
}}|lang = wikitext|inline = }} |
||
示例: |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">Example:</span> |
|||
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 关于|zh-hant = 關於}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 关于|zh-hant = 關於}} |
* <syntaxhighlight lang="wikitext" inline>{{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 关于|zh-hant = 關於}}</syntaxhighlight> → {{LC zh|lang = {{{lang|}}}|type = C|zh-hans = 关于|zh-hant = 關於}} |
||
<span id="Integration_with_other_templates_and_modules"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
与其他模板和模块整合 |
|||
== Integration with other templates and modules == |
|||
</div> |
|||
* {{ll|Template:Localized link}} |
* {{ll|Template:Localized link}} |
||
* {{ll|Template:Translatable template name}} |
* {{ll|Template:Translatable template name}} |
||
* {{ll|Module:Template translation}} |
* {{ll|Module:Template translation}} |
||
<span id="Notes"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== |
== 注释 == |
||
</div> |
|||
如果该模板属于用户页模板、全域公告等无法通过字词转换器转换的类型,建议使用{{ll|Template:Conversion-zh}}替代此模板。 |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
If the template is a user page template, global announcement, etc., which cannot be converted using Language Converter, you should consider using {{ll|Template:Conversion-zh}} instead of this template. |
|||
</div> |
|||
<span id="Template_data"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== |
== 模板数据 == |
||
</div> |
|||
{{LC zh/doc}} |
{{LC zh/doc}} |
||
<span id="Test_cases"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== |
==测试样例== |
||
</div> |
|||
{{#invoke:LC zh/testcases|run_tests}} |
{{#invoke:LC zh/testcases|run_tests}} |
||
<span id="Tracking_categories"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== |
== 追踪分类 == |
||
</div> |
|||
* [[:Category:Pages using LC zh with unknown or deprecated arguments]] |
* [[:Category:Pages using LC zh with unknown or deprecated arguments]] |
||
}} |
}} |
||