模板:Documentation:修订间差异

来自希服维基
跳到导航 跳到搜索
(奶奶们,我给zwi8テンプレートソースコード进行一个tidy up,以及从维基共享的同名模板抄来几个大概用不上的参数。)
无编辑摘要
 
(未显示同一用户的1个中间版本)
第4行: 第4行:
---><h1 class="documentation-header-title" style="font-weight: bold; font-size: 1.25rem; display: inline; margin: 0; border: none;"><!--
---><h1 class="documentation-header-title" style="font-weight: bold; font-size: 1.25rem; display: inline; margin: 0; border: none;"><!--
------>{{ #if: {{{heading|}}} | {{{heading}}} | {{SUBJECTSPACE}}文档 }}<!--
------>{{ #if: {{{heading|}}} | {{{heading}}} | {{SUBJECTSPACE}}文档 }}<!--
---></h1><!--
---></h1> <!--
--->{{ #if: {{{1|}}} {{ #if: {{{content|}}} | | 1 }} |<!--
--->{{ #if: {{{1|}}} {{ #if: {{{content|}}} | | 1 }} |<!--
-----><span class=plainlinks><!--
-----><span class=plainlinks><!--
第16行: 第16行:
}}
}}
{{ #if: {{{content|}}}
{{ #if: {{{content|}}}
| {{{content}}}
| {{{content}}}
| {{ {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} }}
| {{ #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} |
    {{ {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} }}
  }}
}}
}}
</div>
</div>

2025年3月21日 (五) 18:10的最新版本

模板文档

[查看] [编辑]

插入模板文档。在模板页末尾使用以下代码来插入模板文档:

<noinclude>{{Documentation}}</noinclude>

模板文档位于模板页的 /doc 子页。

原则上,要为有文档的模板添加分类,应加在模板文档页上并使用 <includeonly> 标签包围。