LLWiki正在建设中,欢迎加入我们

“Template:Documentation”的版本间差异

跳转到导航 跳转到搜索
添加625字节 、​ 2021年8月13日 (五) 01:00
使用CodeMirror快速编辑
(创建页面,内容为“<div class="template-documentation" style="background: aliceblue; padding: 1em; border: 1px solid #aaa;"><!-- --><div class="template-documentation-header" style="p…”)
 
(使用CodeMirror快速编辑)
 
(未显示2个用户的39个中间版本)
<noinclude>{{doc|content=这个模板用于建立模板文档,{{tl|Doc}}也重定向到此。
<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}}
简短的文档可以直接写入<code>content</code>参数。
|{{ns:template}}=[[File:Template-info.svg|50px|link=]] 模板文档
 
|{{ns:module}}=[[File:Template-info.svg|50px|link=]] 模块文档
示例:{{code|<nowiki>{{doc|content=这是内联文档。</nowiki>}}
|{{ns:widget}}=[[File:Template-info.svg|50px|link=]] 小工具文档
 
|#default=文档
==外链文档==
}}</span>&nbsp;&nbsp;<span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}|
较长的文档应单独置于文档页,文档页的标题为「模板标题 + /doc」,如[[Template:Lyrics]]的文档页应位于[[Template:Lyrics/doc]]。
<!--内联文档-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]]
 
|{{#ifexist: {{{1|{{Documentation/docname}}}}}
多个模板共用同一个文档页时,页面标题不对应的模板需要在匿名参数<code>1</code>中指定文档页标题。
|<!--**/doc 存在 **-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} 查看]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 编辑]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} 历史]]
 
|<!--**/doc 不存在**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} 创建]]
示例:<code><nowiki>{{doc|Template:Lyrics/doc}}</nowiki></code>会引用文档页[[Template:Lyrics/doc]]。
}} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]]
 
}}</span></div><!--
==外部链接==
--><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:84%;"><!--
{{CCnotice|MGP=template:documentation}}}}[[Category:内容模板]]
-->{{#if:{{{content|}}}|
<div/noinclude><includeonly><!--></includeonly><pre class="templatewiki-highlight">--><div class="documentation" style="display: flow-root; background-color: aliceblue; padding: 1em; border: 1px solid #aaa; clear: both; margin-top: 1em"><!--
<!--内联文档**-->这个[[zhwiki:Wikipedia:模板文件頁模式|文档]]是内联文档。
--><div class="template-documentation-header" style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom:1ex0.5em"><!--
|{{#ifexist: {{{1|{{Documentation/docname}}}}}
--><span style="vertical-align:text-bottom">[[File:Template-info.png|50px|link=]]</span> <span style="font-weight:bold;font-size:125%;margin-right:0.5em;">{{#switch:{{NAMESPACENUMBER}}
|<!--**/doc存在**-->这个[[zhwiki:Wikipedia:模板文件頁模式|文档]][[zhwiki:Wikipedia:嵌入包含|嵌入]]自[[{{{1|{{Documentation/docname}}}}}]]。
}}|10=模板
}}|274=小部件
|828=模块
</div>
}}文档</span><div class="noprint plainlinks" style="font-size:small;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;display:inline-block">{{#if:{{{content|}}}
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
|<!--内联文档-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]]
|{{#ifexist: {{{1|{{Documentation/docnameFULLPAGENAME}}/doc}}}
|<!--**/doc 存在 **-->[<nowiki/>[[{{fullurl:{{{1|{{Documentation/docnameFULLPAGENAME}}/doc}}}}} |查看]]] [[{{fullurl:{{{1|{{Documentation/docnameFULLPAGENAME}}/doc}}}|action=edit}} 编辑]] [[{{fullurl:{{{1|{{Documentation/docnameFULLPAGENAME}}/doc}}}|action=history}} 历史]]
|<!--**/doc 不存在**-->[[{{fullurl:{{{1|{{Documentation/docname FULLPAGENAME}}/doc}}}|action=edit}} 创建]]
}} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]]
}}</spandiv></div><!--
--><div style="font-size:84%;"><!--
-->这个文档{{#if:{{{content|}}}|
|<!--内联文档**-->这个[[zhwiki:Wikipedia:模板文件頁模式|文档]]是内联文档。
|<!--**/doc存在**-->[[mediawikiwiki:transclusion/zh|嵌入]]自[[{{#if:{{{1|}}}|{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME}}/doc}}]]。
}}
</div>
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docnameFULLPAGENAME}}/doc}}} | {{ {{{1|{{Documentation/docnameFULLPAGENAME}}/doc}}} }} }}}}
</div><!--</pre><includeonly>--></includeonly>
16,874

个编辑

导航菜单