模板:Documentation:修订间差异
跳到导航
跳到搜索
小 (文档不存在时显示“创建”链接而非“查看”和“编辑”) |
(奶奶们,我给zwi8テンプレートソースコード进行一个tidy up,以及从维基共享的同名模板抄来几个大概用不上的参数。) |
||
第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 class="documentation-header" style="font: inherit; border-bottom: 1px solid #aaa; margin: 0.5rem 0 1rem;"> | {{ #if: {{{heading}}} | | ||
<h1 class="documentation-header-title" style="font-weight: bold; font-size: 1.25rem; display: inline; margin: 0; border: none;">{{SUBJECTSPACE}}文档</h1> <span class=plainlinks>{{#ifexist:{{FULLPAGENAME}}/doc|[[{{ | <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;"><!-- | |||
------>{{ #if: {{{heading|}}} | {{{heading}}} | {{SUBJECTSPACE}}文档 }}<!-- | |||
---></h1><!-- | |||
--->{{ #if: {{{1|}}} {{ #if: {{{content|}}} | | 1 }} |<!-- | |||
-----><span class=plainlinks><!-- | |||
------->{{ #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} |<!-- | |||
--------->[[{{ FULLURL: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} }} 查看]]<!-- | |||
------->}}<!-- | |||
-------> [[{{ FULLURL: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} | action=edit }} {{ #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} | 编辑 | 创建 }}]]<!-- | |||
-----></span><!-- | |||
--->}} | |||
</div> | |||
}} | |||
{{ #if: {{{content|}}} | |||
| {{{content}}} | |||
| {{ {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }} }} | |||
}} | |||
</div> | </div> | ||