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

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(copy over preload feature as per edit request on talk page)
м (174 версії)
 
(не показані 7 проміжних версій 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-->
 
     }}
 
     }}
Рядок 16: Рядок 12:
 
   Start of green doc box.
 
   Start of green doc box.
 
-->{{documentation/core2
 
-->{{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-->
  
<!--Some namespaces must have the /doc, /sandbox and /testcases
+
<!--Some namespaces must have the /doc in talk space-->
    in talk space-->
+
 
| docspace =
 
| docspace =
 
   {{#switch: {{SUBJECTSPACE}}
 
   {{#switch: {{SUBJECTSPACE}}
Рядок 31: Рядок 25:
 
   | {{ns:Category}} = {{TALKSPACE}}
 
   | {{ns:Category}} = {{TALKSPACE}}
 
   | #default = {{SUBJECTSPACE}}
 
   | #default = {{SUBJECTSPACE}}
 +
  }}
 +
 +
<!--For debug purposes-->
 +
| not-docspace =
 +
  {{#switch: {{SUBJECTSPACE}}
 +
  | {{ns:0}}
 +
  | {{ns:File}}
 +
  | {{ns:MediaWiki}}
 +
  | {{ns:Category}} = {{SUBJECTSPACE}}
 +
  | #default = {{TALKSPACE}}
 
   }}
 
   }}
  

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

30px Template documentation[create]