模板:Documentation:修订间差异

来自SS唯基
跳到导航 跳到搜索
(更改“模板:Documentation”的保护等级([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))[联锁])
无编辑摘要
 
第3行: 第3行:
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
}}<!--
}}
  Automatically add {{pp-template}} to protected templates.
<!--
-->{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
  | {{pp-template|docusage=yes}}
  | {{#if: {{PROTECTIONLEVEL:edit}}
    | {{pp-template|docusage=yes}}
    | <!--Not protected, or only semi-move-protected-->
    }}
  }}
}}<!--
   Start of green doc box.
   Start of green doc box.
-->{{documentation/start box2
-->{{documentation/start box2

2013年9月16日 (一) 04:11的最新版本

Documentation icon 模板文档[-查看-] [编辑] [历史] [刷新]

就像这个一样给模板创建个模板文档模板框.

使用方法

基本

  1. 在模板最后添加 <noinclude>{{documentation}}</noinclude>
  2. 点击 "编辑" (/doc) 即可添加文档内容
  3. 如果要给模板添加分类, 请在 /doc 里添加并用 includeonly. 例: <includeonly>[[分类:编辑模板]]</includeonly>

内嵌文档

不推荐. 如果要在文档同一页面下添加简单的文档可以用以下方法 <noinclude>{{documentation|content=文档内容}}</noinclude>