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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(Reducing transclusion depth per discussion on talk page)
м (174 версии)
 
(не показано 6 промежуточных версии 2 участников)
Строка 1: Строка 1:
 
<!--
 
<!--
  Automatically add {{template sandbox notice}} when on a /sandbox page.
 
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
 
| <div style="clear: both;"></div>{{template sandbox notice}}
 
}}<!--
 
 
   Automatically add {{pp-template}} to protected templates.
 
   Automatically add {{pp-template}} to protected templates.
 
-->{{template other
 
-->{{template other
 
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
 
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
   | {{pp-template|docusage=yes}}
+
   | {{pp-template}}
 
   | {{#if: {{PROTECTIONLEVEL:edit}}
 
   | {{#if: {{PROTECTIONLEVEL:edit}}
     | {{pp-template|docusage=yes}}
+
     | {{pp-template}}
 
     | <!--Not protected, or only semi-move-protected-->
 
     | <!--Not protected, or only semi-move-protected-->
 
     }}
 
     }}
Строка 15: Строка 11:
 
}}<!--
 
}}<!--
 
   Start of green doc box.
 
   Start of green doc box.
-->{{documentation/core
+
-->{{documentation/core2
| preload = {{{preload|}}}  <!--Allow custom preloads-->
+
 
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
 
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
 
| heading-style = {{{heading-style|}}}
 
| heading-style = {{{heading-style|}}}
Строка 22: Строка 17:
 
| link box = {{{link box|}}}  <!--So "link box=off" works-->
 
| link box = {{{link box|}}}  <!--So "link box=off" works-->
  
| docpage =  
+
<!--Some namespaces must have the /doc in talk space-->
   {{#if: {{{1|}}}
+
| docspace =
  | {{{1|}}}
+
   {{#switch: {{SUBJECTSPACE}}
  | {{#switch: {{SUBJECTSPACE}}
+
 
   | {{ns:0}}
 
   | {{ns:0}}
 
   | {{ns:File}}
 
   | {{ns:File}}
Строка 31: Строка 25:
 
   | {{ns:Category}} = {{TALKSPACE}}
 
   | {{ns:Category}} = {{TALKSPACE}}
 
   | #default = {{SUBJECTSPACE}}
 
   | #default = {{SUBJECTSPACE}}
  }}:{{#switch: {{SUBPAGENAME}}
 
  | sandbox
 
  | testcases = {{BASEPAGENAME}}
 
  | #default = {{PAGENAME}}
 
  }}/doc
 
 
   }}
 
   }}
| doc exist =
+
 
  {{#ifexist:
+
<!--For debug purposes-->
    {{#if: {{{1|}}}
+
| not-docspace =
    | {{{1|}}}  <!--Other docname fed-->
+
  {{#switch: {{SUBJECTSPACE}}
    | {{#switch: {{SUBJECTSPACE}}
+
 
   | {{ns:0}}
 
   | {{ns:0}}
 
   | {{ns:File}}
 
   | {{ns:File}}
 
   | {{ns:MediaWiki}}
 
   | {{ns:MediaWiki}}
   | {{ns:Category}} = {{TALKSPACE}}
+
   | {{ns:Category}} = {{SUBJECTSPACE}}
  | #default = {{SUBJECTSPACE}}
+
   | #default = {{TALKSPACE}}
  }}:{{#switch: {{SUBPAGENAME}}
+
  | sandbox
+
  | testcases = {{BASEPAGENAME}}
+
   | #default = {{PAGENAME}}
+
  }}/doc
+
    }}
+
  | yes
+
  }}
+
| docname fed =
+
  {{#if: {{{1|}}}
+
  | yes
+
 
   }}
 
   }}
  
| sandbox =  
+
| 1 = {{{1|}}}  <!--Other docname, if fed-->
  {{#switch: {{SUBJECTSPACE}}
+
  | {{ns:0}}
+
  | {{ns:File}}
+
   | {{ns:MediaWiki}}
+
  | {{ns:Category}} = {{TALKSPACE}}
+
  | #default = {{SUBJECTSPACE}}
+
  }}:{{#switch: {{SUBPAGENAME}}
+
  | sandbox
+
  | testcases = {{BASEPAGENAME}}
+
  | #default = {{PAGENAME}}
+
  }}/sandbox
+
| testcases =
+
  {{#switch: {{SUBJECTSPACE}}
+
  | {{ns:0}}
+
  | {{ns:File}}
+
  | {{ns:MediaWiki}}
+
  | {{ns:Category}} = {{TALKSPACE}}
+
  | #default = {{SUBJECTSPACE}}
+
  }}:{{#switch: {{SUBPAGENAME}}
+
  | sandbox
+
  | testcases = {{BASEPAGENAME}}
+
  | #default = {{PAGENAME}}
+
  }}/testcases
+
  
 +
<!--The namespace is added in /core2-->
 
| template page =  
 
| template page =  
   {{NAMESPACE}}:{{#switch: {{SUBPAGENAME}}
+
   {{#switch: {{SUBPAGENAME}}
 
   | sandbox
 
   | sandbox
 
   | testcases = {{BASEPAGENAME}}
 
   | testcases = {{BASEPAGENAME}}

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

30px Template documentation[create]