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

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(merging: copy from sandbox; add heading line view link)
м (174 версії)
 
(не показані 96 проміжних версій 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">{{
+
}}<!--
    #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
+
  Start of green doc box.
    |[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}}} view]]&nbsp;|
+
-->{{documentation/core2
    }}[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{
+
| heading = {{{heading|¬}}}   <!--Empty but defined means no header-->
    #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
+
| heading-style = {{{heading-style|}}}
    ||&preload=Template:Documentation/preload}}}} edit]]</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>}}{{
+
| content = {{{content|}}}
   #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
+
| link box = {{{link box|}}}  <!--So "link box=off" works-->
   |<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{{
+
 
    #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
+
<!--Some namespaces must have the /doc in talk space-->
    ||&preload=Template:Documentation/preload}}}} edit] &#124; [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history])</small>{{
+
| docspace =
      #ifexist: {{#rel2abs: /sandbox }}
+
  {{#switch: {{SUBJECTSPACE}}
      |{{
+
  | {{ns:0}}
        #ifexist: {{#rel2abs: /testcases}}
+
  | {{ns:File}}
        |<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.
+
  | {{ns:MediaWiki}}
      }}<noinclude>
+
  | {{ns:Category}} = {{TALKSPACE}}
        <!-- else don't show when just 1 of /sandbox or /testcases exists -->
+
  | #default = {{SUBJECTSPACE}}
      </noinclude>}}
+
  }}
  </div>}}
+
 
{{ {{ #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}} | {{{1|{{SUBJECTPAGENAME}}/doc}}} | ns:0 }} }}
+
<!--For debug purposes-->
</div>
+
| 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]