Zum Inhalt springen

Vorlage:Namespace detect: Unterschied zwischen den Versionen

K
14 Versionen von wikivoyage:Vorlage:Namespace_detect importiert
imported>Davidgothberg
(Remarking away "{{pp-template|small=yes}}" for now.)
K (14 Versionen von wikivoyage:Vorlage:Namespace_detect importiert)
 
(18 dazwischenliegende Versionen von 7 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{#switch:
{{SAFESUBST:<noinclude />#invoke:Namespace detect|main}}<noinclude>
  {{lc:               <!--Lower case the result-->
{{documentation}}
    <!--If no or empty "demospace" parameter then detect namespace-->
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
    {{#if:{{{demospace|}}}
    | {{{demospace}}}
    | {{#ifeq:{{NAMESPACE}}|{{ns:0}}
      | main
      | {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
        | talk
        | {{NAMESPACE}}
        }}
      }}  
    }}
  }}
<!-- Only one of the lines below will be executed -->
<!-- Respecting empty parameters on purpose -->
| main      = {{{main| {{{other|}}} }}}
| talk      = {{{talk| {{{other|}}} }}}
| user      = {{{user| {{{other|}}} }}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| image    = {{{image| {{{other|}}} }}}
| mediawiki = {{{mediawiki| {{{other|}}} }}}
| template  = {{{template| {{{other|}}} }}}
| help      = {{{help| {{{other|}}} }}}
| category  = {{{category| {{{other|}}} }}}
| portal    = {{{portal| {{{other|}}} }}}
| other
| #default  = {{{other|}}}  <!--"demospace=other" or a new namespace-->
 
}}<!--End switch--><noinclude>
 
<!-- {{pp-template|small=yes}} -->
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>