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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(Undid revision 212399728 by Dthetech (talk))
м (174 версии)
 
(не показано 55 промежуточных версии 28 участников)
Строка 1: Строка 1:
<div class="template-documentation"><!--
+
<!--
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**-->
+
  Automatically add {{pp-template}} to protected templates.
   |<!--**NOTHING**-->
+
-->{{template other
   |<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{content|μ}}}|μ
+
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
  |<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
+
   | {{pp-template}}
     |<!--**    /doc EXISTS**  -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
+
   | {{#if: {{PROTECTIONLEVEL:edit}}
    |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/preload}} create]]
+
    | {{pp-template}}
  }}</span>
+
     | <!--Not protected, or only semi-move-protected-->
  }} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Image:Template-info.svg|50px]] Template documentation|Documentation}}}}</span></div>
+
    }}
}}<!--
+
  }}
 +
}}<!--
 +
  Start of green doc box.
 +
-->{{documentation/core2
 +
| heading = {{{heading|¬}}}   <!--Empty but defined means no header-->
 +
| heading-style = {{{heading-style|}}}
 +
| content = {{{content|}}}
 +
| link box = {{{link box|}}}   <!--So "link box=off" works-->
  
--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
+
<!--Some namespaces must have the /doc in talk space-->
  -->{{#ifexist: {{{1|{{Documentation/docname}}}}}
+
| docspace =
   |<!--**/doc EXISTS**-->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br />
+
  {{#switch: {{SUBJECTSPACE}}
}}<!--
+
  | {{ns:0}}
 +
   | {{ns:File}}
 +
  | {{ns:MediaWiki}}
 +
  | {{ns:Category}} = {{TALKSPACE}}
 +
  | #default = {{SUBJECTSPACE}}
 +
  }}
  
-->{{#switch: {{SUBPAGENAME}}
+
<!--For debug purposes-->
  |sandbox|testcases=<!--**DO NOT SHOW THESE LINKS ON THE SANDBOX/TESTCASES PAGES**-->
+
| not-docspace =
  |#default=
+
  {{#switch: {{SUBJECTSPACE}}
    {{#switch: {{SUBJECTSPACE}}
+
  | {{ns:0}}
    |{{ns:template}}
+
  | {{ns:File}}
    |{{ns:user}}=
+
  | {{ns:MediaWiki}}
      {{#ifexist: {{FULLPAGENAME}}/sandbox
+
  | {{ns:Category}} = {{SUBJECTSPACE}}
      |This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> <!--
+
  | #default = {{TALKSPACE}}
        -->{{#ifexist: {{FULLPAGENAME}}/testcases
+
  }}
        |and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>}} for editors to experiment.
+
 
      |{{#ifexist: {{FULLPAGENAME}}/testcases
+
| 1 = {{{1|}}}   <!--Other docname, if fed-->
        |This template has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment.}}
+
 
}}}}}}
+
<!--The namespace is added in /core2-->
</div>
+
| template page =
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
+
  {{#switch: {{SUBPAGENAME}}
</div>
+
  | sandbox
 +
  | testcases = {{BASEPAGENAME}}
 +
  | #default = {{PAGENAME}}
 +
  }}
 +
 
 +
}}<!--End of green doc box--><noinclude>
 +
 
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Текущая версия на 20:17, 25 мая 2015

30px Template documentation[create]