Template:LC zh/zh: Difference between revisions

From Test Wiki
Content deleted Content added
Created page with "繁体中文(台湾)页面名称"
Created page with "== 追踪分类 =="
 
(19 intermediate revisions by the same user not shown)
Line 66: Line 66:
=== T - 页面显示标题 ===
=== T - 页面显示标题 ===


在主命名空间的页面标题:
<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>{{))}}
Line 75: Line 73:
}}|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>{{))}}
Line 91: Line 87:
}}|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>{{))}}
Line 113: Line 107:
* <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 - Section headings ===
=== 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 - Content ===
=== 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">
== Notes ==
== 注释 ==
</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">
== Template data ==
== 模板数据 ==
</div>
{{LC zh/doc}}
{{LC zh/doc}}


<span id="Test_cases"></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
== Test cases ==
==测试样例==
</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">
== Tracking categories ==
== 追踪分类 ==
</div>
* [[:Category:Pages using LC zh with unknown or deprecated arguments]]
* [[:Category:Pages using LC zh with unknown or deprecated arguments]]
}}
}}