打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Documentation/doc:修订间差异

来自INFWiki
9Yan留言 | 贡献
创建页面,内容为“{{Documentation}} The '''documentation''' template is transcluded in the template/module documentation. This template should only be used on subpages titled "doc". ==Usage== Place {{t|documentation}} at the top of the documentation page. If the page to be documented is a subpage, use {{t|documentation|pagename of page to be documented}} at the top of the documentation page. For example, Template:Foo/bar's documentation page would use {{t|documentation|Templ…”
 
9Yan留言 | 贡献
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
{{Documentation}}
{{Documentation}}
The '''documentation''' template is transcluded in the template/module documentation. This template should only be used on subpages titled "doc".
'''Documentation''' 模板被包含在模板/模块文档中。这个模板应该只用于标题为“doc”的子页面。


==Usage==
==用法==
Place {{t|documentation}} at the top of the documentation page.
{{T|Documentation}} 放置在文档页的顶部。


If the page to be documented is a subpage, use {{t|documentation|pagename of page to be documented}} at the top of the documentation page. For example, Template:Foo/bar's documentation page would use {{t|documentation|Template:Foo/bar}}.
如果要记录的页面是子页面,则在文档页面顶部使用 {{T|Documentation|pagename of page to be documented}}。例如,Template:Foo/bar的文档页面将使用{{T|Documentation|Template:Foo/bar}}


The template will attempt to auto detect and link <code><nowiki>{{#Invoke:}}</nowiki></code> calls on template documentations or the <code>require()</code>/<code>mw.loadData()</code> depedency list on module documentations. If you want to supress the auto generated dependency list, use {{t|documentation|DependencyList=no}}
模板将尝试自动检测并链接模板文档上的 <code><nowiki>{{#Invoke:}}</nowiki></code> 调用或模块文档上的 <code>require()</code>/<code>mw.loadData()</code> 依赖列表。如果你想禁用自动生成的依赖列表,使用 {{T|Documentation|DependencyList=no}}


==Note==
==注释==
This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation.
这个模板链接到一个/doc,这个/doc可能看起来没用,但是,它的存在是为了将导航框和用户框链接到它们的基本模板的Documentation。
<includeonly></includeonly>
<includeonly></includeonly>


==TemplateData==
==模板数据==
<templatedata>
<templatedata>
{
{
"params": {},
"params": {},
"description": "The documentation template is transcluded in the template/module documentation. This template should only be used on subpages titled \"doc\"."
"description": "“文档”模板被包含在“模板/模块文档”模板中。该模板应仅用于标题为“doc”的子页面。"
}
}
</templatedata>
</templatedata>

2025年8月2日 (六) 20:03的最新版本

Documentation 模板被包含在模板/模块文档中。这个模板应该只用于标题为“doc”的子页面。

用法

将 {{Documentation}} 放置在文档页的顶部。

如果要记录的页面是子页面,则在文档页面顶部使用 {{Documentation|<pagename of page to be documented>}}。例如,Template:Foo/bar的文档页面将使用{{Documentation|<Template:Foo/bar>}}。

模板将尝试自动检测并链接模板文档上的 {{#Invoke:}} 调用或模块文档上的 require()/mw.loadData() 依赖列表。如果你想禁用自动生成的依赖列表,使用 {{Documentation}}

注释

这个模板链接到一个/doc,这个/doc可能看起来没用,但是,它的存在是为了将导航框和用户框链接到它们的基本模板的Documentation。


模板数据

“文档”模板被包含在“模板/模块文档”模板中。该模板应仅用于标题为“doc”的子页面。

模板参数

参数描述类型状态
未指定参数