Template:Wikipedia port:zh-cn/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Documentation subpage:zh-cn}} <!-- Please place categories where indicated at the bottom of this page.) --> 本模板的译者及时间为~~~~。部分内容由机器翻译...")
 
(deleted signature)
Line 1: Line 1:
{{Documentation subpage:zh-cn}}
{{Documentation subpage:zh-cn}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
本模板的译者及时间为[[User:1416006136|大康]] ([[User talk:1416006136|talk]]) 09:14, 14 January 2022 (PST)。部分内容由机器翻译。
 
----
这是 {{tl|Wikipedia port:zh-cn}} 模板。它旨在添加到从 Wikipedia 移植过来的模板的文档顶部。它会自动从模板的页面名称中填充链接信息,尽管这可以选择使用参数覆盖。
这是 {{tl|Wikipedia port:zh-cn}} 模板。它旨在添加到从 Wikipedia 移植过来的模板的文档顶部。它会自动从模板的页面名称中填充链接信息,尽管这可以选择使用参数覆盖。



Revision as of 11:40, 17 July 2022

Template:Documentation subpage:zh-cn

这是 {{Wikipedia port:zh-cn}} 模板。它旨在添加到从 Wikipedia 移植过来的模板的文档顶部。它会自动从模板的页面名称中填充链接信息,尽管这可以选择使用参数覆盖。

用法

{{Wikipedia port:zh-cn}}

结果是:


请注意,当在文档页面本身上查看时,由于模板的工作方式,维基百科链接链接到 /doc 子页面而不是标准页面。在模板页面上查看时,它们会正确显示。

参数

此模板最多接受四个可选参数,一个未命名,三个命名。

要提供指向不同模板的链接,可以将模板的名称作为未命名参数提供,如下所示:

{{Wikipedia port:zh-cn|Template:Documentation}}


要指定模板是否被修改,请指定modified的参数: {{Wikipedia port:zh-cn|Template:Documentation|modified=1}}


要指定模板是否从旧修订版移植而来,请指定old参数以及修订版 URL 中提供的修订版 ID。

{{Wikipedia port:zh-cn|Template:Documentation|old=577591885}}


要指定模板的文档是否也从 Wikipedia 移植,请指定documentation参数:

{{Wikipedia port:zh-cn|Template:Documentation|documentation=1}}