模板:Documentation:修订间差异

来自希服维基
(奶奶们,我给zwi8テンプレートソースコード进行一个tidy up,以及从维基共享的同名模板抄来几个大概用不上的参数。)
无编辑摘要
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
<div role=region class="documentation clear-both clearfix" style="background-color: rgba(255, 160, 77, 0.2); border: 1px solid #aaa; padding: 1rem">
<div role=region class="documentation" style="clear: both; background-color: rgba(255, 160, 77, 0.2); border: 1px solid #aaa; padding: 1rem">
{{ #if: {{{heading}}} |
{{ #if: {{{heading}}} |
   <div class="documentation-header" style="font: inherit; border-bottom: 1px solid #aaa; margin: 0.5rem 0 1rem;"><!--
   <div class="documentation-header" style="font: inherit; border-bottom: 1px solid #aaa; margin: 0.5rem 0 1rem;"><!--
---><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>

2026年7月26日 (日) 18:03的最新版本

模板文档

[查看] [编辑]

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

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

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

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