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

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(Creating this namespace detecting template. Based on my code from {{category other}} and {{main other}} etc.)
 
м (10 версій)
 
(не показані 9 проміжних версій 5 учасників)
Рядок 1: Рядок 1:
 
{{#switch:
 
{{#switch:
 
   <!--If no or empty "demospace" parameter then detect namespace-->
 
   <!--If no or empty "demospace" parameter then detect namespace-->
   {{#if:{{{demospace|}}}  
+
   {{#if:{{{demospace|}}}
 
   | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
 
   | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
   | {{#ifeq:{{NAMESPACE}}|Template
+
   | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}
 
     | template
 
     | template
 
     | other
 
     | other
     }}  
+
     }}
 
   }}
 
   }}
 
| template = {{{1|}}}
 
| template = {{{1|}}}
Рядок 12: Рядок 12:
 
| #default = {{{2|}}}
 
| #default = {{{2|}}}
 
}}<!--End switch--><noinclude>
 
}}<!--End switch--><noinclude>
 
+
{{documentation}}
{{pp-template|small=yes}}
+
{{Documentation}}
+
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

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

30px Template documentation[create]