“Template:Documentation”的版本间差异

添加11字节 、​ 2021年8月13日 (五) 01:00
使用CodeMirror快速编辑
(// 使用Wikiplus小工具快速编辑)
标签移动版网页编辑 移动版编辑
(使用CodeMirror快速编辑)
 
(未显示同一用户的5个中间版本)
<noinclude>{{doc|content=这个模板用于建立模板文档,{{CCnoticetl|MGP=template:documentationDoc}}也重定向到此。
 
这个模板用于建立模板文档,{{tl|Doc}}也重定向到此。
 
==内联文档==
多个模板共用同一个文档页时,页面标题不对应的模板需要在匿名参数<code>1</code>中指定文档页标题。
 
示例:<code><nowiki>{{doc|Template:Lyrics/doc}}</nowiki></code>会引用文档页[[Template:Lyrics/doc]]。}}[[Category:内容模板]]
 
</noinclude><includeonly><!--></includeonly><syntaxhighlight lang="html+handlebars">
==外部链接==
--><div class="documentation" style="background-color: aliceblue; padding: 1em; border: 1px solid #aaa; clear: both; margin-top: 1em"><!--
{{CCnotice|MGP=template:documentation}}}}[[Category:内容模板]]
--><div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:0.5em"><!--
</noinclude><includeonly><!--></includeonly><pre class="wiki-highlight">--><div class="documentation" style="display: flow-root; background-color: aliceblue; padding: 1em; border: 1px solid #aaa; clear: both; margin-top: 1em"><!--
--><div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom:0.5em"><!--
--><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}}
|10=模板
|274=小部件
|828=模块
}}文档</span><div class="metadatanoprint plainlinks" style="font-size:small;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;display:inline-block">{{#if:{{{content|}}}
|<!--内联文档-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]]
|{{#ifexist: {{{1|{{FULLPAGENAME}}/doc}}}
</div>
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{FULLPAGENAME}}/doc}}}|{{ {{{1|{{FULLPAGENAME}}/doc}}}}}}}}}
</div><!--</pre><includeonly>--></includeonly>
</syntaxhighlight><includeonly>--></includeonly>
16,874

个编辑