跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
所有类别
站点
所有页面
最近更改
随机页面
交流
论坛
Tools
RA2DIY
搜索
搜索
外观
登录
个人工具
登录
RA2DIY-WIKI 当前处于维护模式:
页面上的内容随时可能发生更改且不会事先告知。
查看“︁Template:Documentation/doc”︁的源代码
模板
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
外观
移至侧栏
隐藏
←
Template:Documentation/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
==Description== This template is used to insert descriptions on template pages. ==Syntax== Add <code><nowiki><noinclude></nowiki>{{tl|documentation}}<nowiki></noinclude></nowiki></code><br />or <code><nowiki><noinclude></nowiki>{{tl|doc}}<nowiki></noinclude></nowiki></code> at the end of the template page. * If <code><nowiki>notoc=1</nowiki></code>, the catalogue will not be displayed. * Use <code><nowiki>toc=</nowiki></code> will set the alignment of the catalogue. ==Usage== ===On the Template page=== This is the normal format when used: <pre> TEMPLATE CODE<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude> {{doc}}</noinclude> </pre> ''If your template is not a completed div or table, you may need to close the tags just before <code><nowiki>{{doc}}</nowiki></code> is inserted (within the noinclude tags).'' ''A line break right before <code><nowiki>{{doc}}</nowiki></code> can also be useful as it helps prevent the documentation template "running into" previous code.'' ===On the Template/doc page=== Normally, you will want to write something like the following on the documentation page: <pre> ==Description== This template is used to do something. ==Syntax== Type <code>{{tl|templatename}}</code> somewhere. ==Samples== <code><nowiki>{{templatename|input}}</nowiki></code> results in... {{templatename|input}} <includeonly>Any categories for the template itself</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> </pre> Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or other sections. <noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
返回
Template:Documentation/doc
。
搜索
搜索
查看“︁Template:Documentation/doc”︁的源代码
添加话题