Відмінності між версіями «Шаблон:Documentation»

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(merging: copy from sandbox)
м (174 версії)
 
(не показані 97 проміжних версій 46 учасників)
Рядок 1: Рядок 1:
<noinclude>
+
<!--
<!-- Need noinclude here to support future full protection. -->
+
  Automatically add {{pp-template}} to protected templates.
{{ #ifeq: {{SUBPAGENAME}} | sandbox | {{Template sandbox notice}} }}
+
-->{{template other
{{intricate}}
+
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
{{
+
  | {{pp-template}}
  #ifeq: {{FULLPAGENAME}} | Template:Documentation |
+
  | {{#if: {{PROTECTIONLEVEL:edit}}
  {{Mergingfrom|Template doc|date=November 2007}}
+
    | {{pp-template}}
}}
+
    | <!--Not protected, or only semi-move-protected-->
</noinclude><div class="template-documentation">{{
+
    }}
  #if: {{{heading|Documentation}}}
+
  }}
  |<div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{
+
}}<!--
    #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
+
  Start of green doc box.
    ||&preload=Template:Documentation/preload}}}} edit]]</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>}}{{
+
-->{{documentation/core2
   #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
+
| heading = {{{heading|¬}}}   <!--Empty but defined means no header-->
   |<div id="template_doc_page_transcluded" class="dablink plainlinks">This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{SUBJECTPAGENAME}}/doc}}}]]. <small style="font-style: normal">([[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]] &#124; [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{
+
| heading-style = {{{heading-style|}}}
    #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
+
| content = {{{content|}}}
    ||&preload=Template:Documentation/preload}}}} edit] &#124; [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history])</small>{{
+
| link box = {{{link box|}}}  <!--So "link box=off" works-->
      #ifexist: {{#rel2abs: /sandbox }}
+
 
      |{{
+
<!--Some namespaces must have the /doc in talk space-->
        #ifexist: {{#rel2abs: /testcases}}
+
| docspace =
        |<br />This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} edit])</small> and [[/testcases|testcases]] for editors to experiment.
+
  {{#switch: {{SUBJECTSPACE}}
      }}<noinclude>
+
  | {{ns:0}}
        <!-- else don't show when just 1 of /sandbox or /testcases exists -->
+
  | {{ns:File}}
      </noinclude>}}
+
  | {{ns:MediaWiki}}
  </div>}}
+
   | {{ns:Category}} = {{TALKSPACE}}
{{ {{ #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}} | {{{1|{{SUBJECTPAGENAME}}/doc}}} | ns:0 }} }}
+
   | #default = {{SUBJECTSPACE}}
</div>
+
  }}
 +
 
 +
<!--For debug purposes-->
 +
| not-docspace =
 +
  {{#switch: {{SUBJECTSPACE}}
 +
  | {{ns:0}}
 +
  | {{ns:File}}
 +
  | {{ns:MediaWiki}}
 +
  | {{ns:Category}} = {{SUBJECTSPACE}}
 +
  | #default = {{TALKSPACE}}
 +
  }}
 +
 
 +
| 1 = {{{1|}}}   <!--Other docname, if fed-->
 +
 
 +
<!--The namespace is added in /core2-->
 +
| template page =
 +
  {{#switch: {{SUBPAGENAME}}
 +
  | sandbox
 +
  | testcases = {{BASEPAGENAME}}
 +
  | #default = {{PAGENAME}}
 +
  }}
 +
 
 +
}}<!--End of green doc box--><noinclude>
 +
 
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Поточна версія на 20:11, 25 травня 2015

30px Template documentation[create]