“Template:Documentation”的版本间差异

删除761字节 、 2022年3月24日 (四) 22:28
创建页面,内容为“</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">50px|link=</span> <span style="font-weight:bold;font-size:125%;margi…”
(使用CodeMirror快速编辑)
 
Ycc讨论 | 贡献
(创建页面,内容为“</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">50px|link=</span> <span style="font-weight:bold;font-size:125%;margi…”)
第1行: 第1行:
<noinclude>{{doc|content=这个模板用于建立模板文档,{{tl|Doc}}也重定向到此。
==内联文档==
简短的文档可以直接写入<code>content</code>参数。
示例:{{code|<nowiki>{{doc|content=这是内联文档。</nowiki>}}
==外链文档==
较长的文档应单独置于文档页,文档页的标题为「模板标题 + /doc」,如[[Template:Lyrics]]的文档页应位于[[Template:Lyrics/doc]]。
多个模板共用同一个文档页时,页面标题不对应的模板需要在匿名参数<code>1</code>中指定文档页标题。
示例:<code><nowiki>{{doc|Template:Lyrics/doc}}</nowiki></code>会引用文档页[[Template:Lyrics/doc]]。
==外部链接==
{{CCnotice|MGP=template:documentation}}}}[[Category:内容模板]]
</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"><!--
</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"><!--
--><div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom:0.5em"><!--
59

个编辑