Template:Doc/subpage/doc/zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Doc/subpage}} <!-- Please place categories where indicated at the bottom of this page.) --> {{Code|1=<nowiki><noinclude>{{doc|0}}</noinclude></nowiki>|select=1}} 的替换...")
 
(updated translations)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
{{shortcut|{{t|Docsp}}<br>{{t|Doc/sp}}}}
{{Code|1=<nowiki><noinclude>{{doc|0}}</noinclude></nowiki>|select=1}} 的替换版本。
{{Code|1=<nowiki><noinclude>{{doc|0}}</noinclude></nowiki>|select=1}} 的替换版本。
== 用法 ==
== 用法 ==
{{Code|<nowiki>{{Doc/subpage}}</nowiki>|select=1}}
{{Code|<nowiki>{{Doc/subpage}}</nowiki>|select=all}}
== 参数 ==
{{Capsule|style=2|
*{{param|1}}: 用于切换模板分配的参数:
**如果需要标准文档块,请不要在此参数中输入任何内容。
**0 – 会显示消息“这是 <页面> 的文档子页面。。”
**1 – 会显示消息“这是文档 <页面> 的沙盒子页面。”
**2 – 会显示消息“该文档不是沙盒页面。”
**3 – 会显示消息“这是 <page> 的信息子页面”。对用户子页面很有用。
**4 – 将显示消息“这是用于多个页面上的文档子页面。”。如果使用 {{param|list}} 参数,则文本将为:“这是用于 <页面列表> 中列出的多个页面上的文档子页面。”。
*{{param|list}}: 指定使用特定文档页面列出页面的页面或类别。仅当参数 {{param|1}} 设置为 4 时才使用。}}
''引用自 [[Template:Doc/doc/zh]]''
{{sandbox other||
{{sandbox other||
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Templates]]
}}
}}

Latest revision as of 06:24, 10 May 2024

Edit-copy.png
This is a documentation subpage for Template:Doc.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

<noinclude>{{doc|0}}</noinclude> 的替换版本。

用法

{{Doc/subpage}}

参数

  • {{{1}}}: 用于切换模板分配的参数:
    • 如果需要标准文档块,请不要在此参数中输入任何内容。
    • 0 – 会显示消息“这是 <页面> 的文档子页面。。”
    • 1 – 会显示消息“这是文档 <页面> 的沙盒子页面。”
    • 2 – 会显示消息“该文档不是沙盒页面。”
    • 3 – 会显示消息“这是 <page> 的信息子页面”。对用户子页面很有用。
    • 4 – 将显示消息“这是用于多个页面上的文档子页面。”。如果使用 {{{list}}} 参数,则文本将为:“这是用于 <页面列表> 中列出的多个页面上的文档子页面。”。
  • {{{list}}}: 指定使用特定文档页面列出页面的页面或类别。仅当参数 {{{1}}} 设置为 4 时才使用。

引用自 Template:Doc/doc/zh