打开/关闭搜索
搜索
打开/关闭菜单
10
29
3
584
大天使虫洞百科
导航
首页
加入EVE Online
资助甲虫
最近更改
随机页面
特殊页面
上传文件
外部链接
zKillboard
大天使对外频道(QQ)
大天使边境要塞(Discord)
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁Template:Documentation/doc”︁的源代码
模板页面
更多语言
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
Template:Documentation/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Tocright}} ; Description : This template is used to insert documentation on template pages. ; Dependencies :; Uses :: {{T|Documentation/preload}} when no actual documentation is added yet. ; Syntax : Type <code><nowiki><noinclude>{{Documentation</noinclude></nowiki></code> at the end of the template page. == General usage == === On the Template page === You should attach <code><nowiki><noinclude>{{Documentation}}</noinclude></nowiki></code> to the end of the template page, so it looks like the below: <pre> TEMPLATE CODE HERE Template code <includeonly> Any categories to be inserted into articles by the template</includeonly><noinclude> {{documentation}}</noinclude> </pre> This will add the documentation template to the template-page, ''but not to pages where the template is used'' due to the inclusion tags. === On the Template/doc page === You should fill this out with information on how to use the template. Unused items should be removed. :''See also [[Template:Documentation/preload]]'' <pre> ; Description : A short description of the purpose of the template. ; Dependencies :; Uses :: Resource used by this template (Use linking or {{T}} where possible) :: Resource used by this template :: Repeat as needed ... :; Used by :: Template that uses this template (Preferably by using {{T|Templatename}} )) :: Repeat as needed ... ; Syntax : {{T|Templatename|param|...}} :; Parameters ::; param ::: Param description ::; param ::: Param description OR ::; param : Param description ::; param : Param description Repeat as needed ... ; Sample : <code><nowiki>{{templatename}}</nowiki></code> gives... : {{templatename}} <includeonly>[[Category:Any categories for the template itself]]</includeonly><noinclude> [[Category:Template documentation]]</noinclude> </pre> Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections. Note that the above example also uses {{T|T}} to display the formatting of the template code, without actually calling the template for transclusion (as normally happens with the squiggly brackets). == Rationale == This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation, categories, and interwiki links. According to [http://www.mediawiki.org/wiki/Template:Documentation/doc#Rationale MediaWiki] it also helps reduce server resource demand by circumventing certain technical limitations of templates. Unfortunately they don't say what those limitations are, exactly. - 2012, [[User:Quinn fellthorn]] : [[User:Telinchei]] would suggest to the those relate to server resources, when deciding what to transclude (finding noinclude tags) from the template page. {{SPW|is newer|name=Documentation}} <includeonly> [[Category:Maintenance templates]] </includeonly> <noinclude> [[Category:Template documentation]] </noinclude>
返回
Template:Documentation/doc
。
查看“︁Template:Documentation/doc”︁的源代码
模板页面