Template:Documentation:修订间差异
外观
创建页面,内容为“ --><span style="font-weight: bold; font-size: 125%">{{#switch:{{NAMESPACE}} |{{ns:template}}=50px|link= 模板文档 |{{ns:modul...” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<div class="template-documentation" style="background: aliceblue; padding: 1em; border: 1px solid #aaa;"><!-- | |||
--><div class="template-documentation-header" style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex"><!-- | |||
--><span style="font-weight: bold; font-size: 125%">{{#switch:{{NAMESPACE}} | |||
|{{ns:template}}=[[File:Template-info.svg|50px|link=]] 模板文档 | |{{ns:template}}=[[File:Template-info.svg|50px|link=]] 模板文档 | ||
|{{ns:module}}=[[File:Template-info.svg|50px|link=]] 模块文档 | |{{ns:module}}=[[File:Template-info.svg|50px|link=]] 模块文档 | ||
| 第5行: | 第7行: | ||
|#default=文档 | |#default=文档 | ||
}}</span> <span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}| | }}</span> <span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}| | ||
<!--内联文档-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]] | <!--内联文档-->[[https:{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]] | ||
|{{#ifexist: {{{1|{{Documentation/docname}}}}} | |{{#ifexist: {{{1|{{Documentation/docname}}}}} | ||
|<!--**/doc 存在 **-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} 查看]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 编辑]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} 历史]] | |<!--**/doc 存在 **-->[[{{https:fullurl:{{{1|{{Documentation/docname}}}}}}} 查看]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 编辑]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} 历史]] | ||
|<!--**/doc 不存在**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} 创建]] | |<!--**/doc 不存在**-->[[https:{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} 创建]] | ||
}} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]] | }} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]] | ||
}}</span></div><!-- | }}</span></div><!-- | ||
2016年2月17日 (三) 06:03的版本
插入一个内联文档,就像这样
可用于为模板页面插入帮助
例如,在模版页中:
<includeonly><!-- 模板内容 --></includeonly><noinclude>
{{Documentation}}</noinclude>
将会插入一个文档,内容为{{FULLPAGENAME}}/doc的内容,如果该页面没有创建,将会显示 [创建] 按钮,点击此按钮即可创建该页面。
模板文档页更新之后,如果内联页面没有更新,请点击内联页右上角的 [刷新] 按钮