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

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

来自INFWiki
9Yan留言 | 贡献
文字替换 -“documentation”替换为“Documentation”
9Yan留言 | 贡献
无编辑摘要
第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==
==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==
==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>


第17行: 第17行:
{
{
"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”的子页面。

Usage

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

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

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

Note

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


TemplateData

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

模板参数

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