Шаблон:Documentation: различия между версиями

Материал из Колыбели Солнца
Перейти к навигации Перейти к поиску
en>Cenarium
(rv, not much use here)
en>Davidgothberg
(Adding automatic adding of {{pp-template}} to protected templates. See talk page.)
Строка 1: Строка 1:
<div class="template-documentation"><!--
<!--Automatically add {{pp-template}} to protected templates-->
{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
  | {{pp-template}}
  | {{#if: {{PROTECTIONLEVEL:edit}}
    | {{pp-template}}
    | <!--Not protected, or only semi-move-protected-->
    }}
  }}
}}<!--
  Start of green doc box.
--><div class="template-documentation"><!--
 
These are the literal class definitions in MediaWiki:Common.css:


These are the literal class definitions in common.css:
/* For template documentation */
/* For template documentation */
.template-documentation {
.template-documentation {
Строка 43: Строка 54:
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
<div style="clear: both;"></div>
<div style="clear: both;"></div>
</div><noinclude>
</div><!--End of green doc box--><noinclude>


{{pp-template|small=yes}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Версия 22:51, 2 января 2010

Шаблон:Template other

{{#ifeq:μ|
 |
|
{{#ifeq:μ|μ
  |{{#ifexist: Шаблон:Documentation/docname
   |[[{{fullurl:Шаблон:Documentation/docname|action=edit}} edit]] [[[:Шаблон:Purge]]] 
   |[[{{fullurl:Шаблон:Documentation/docname|action=edit&preload=Template:Documentation/preload}} create]]
  }}
}} {{#if:|{{{heading}}}|{{#ifeq:Шаблон|Шаблон|Файл:Template-info.svg Template documentation|Documentation}}}}
}}

{{#if:|{{{content}}}|{{#ifexist:Шаблон:Documentation/docname | {{ Шаблон:Documentation/docname }} }}}}