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

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(add temporary param to pp-template to track usage from doc template)
Рядок 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}}
+
   | {{pp-template|docusage=yes}}
 
   | {{#if: {{PROTECTIONLEVEL:edit}}
 
   | {{#if: {{PROTECTIONLEVEL:edit}}
     | {{pp-template}}
+
     | {{pp-template|docusage=yes}}
 
     | <!--Not protected, or only semi-move-protected-->
 
     | <!--Not protected, or only semi-move-protected-->
 
     }}
 
     }}
Рядок 17: Рядок 21:
 
| link box = {{{link box|}}}  <!--So "link box=off" works-->
 
| link box = {{{link box|}}}  <!--So "link box=off" works-->
  
<!--Some namespaces must have the /doc in talk space-->
+
<!--Some namespaces must have the /doc, /sandbox and /testcases
 +
    in talk space-->
 
| docspace =
 
| docspace =
 
   {{#switch: {{SUBJECTSPACE}}
 
   {{#switch: {{SUBJECTSPACE}}
Рядок 25: Рядок 30:
 
   | {{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}}
 
 
   }}
 
   }}
  

Версія за 10:59, 3 жовтня 2010

30px Template documentation[create]