Vorlage:Category handler: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
imported>Davidgothberg
(Update calls to subtemplates /numbered and /blacklist, due to move.)
imported>Davidgothberg
(Using a #switch-case for the blacklist check, to make it easier to add more blacklist functions in the future.)
Zeile 1: Zeile 1:
{{#ifeq: {{lc: {{{nocat|}}} }} | true
{{#ifeq: {{lc: {{{nocat|}}} }} | true
| <!--"nocat=true", don't categorise-->
| <!--"nocat=true", don't categorize-->
| <!--If "data" is a number, return the corresponding  
| <!--If "data" is a number, return the corresponding  
       numbered parameter, else return "data"-->
       numbered parameter, else return "data"-->
Zeile 15: Zeile 15:
   | 10 = {{{10|}}}
   | 10 = {{{10|}}}
   | data =  
   | data =  
     {{#if:
     {{#switch:
       {{#ifeq: {{lc: {{{nocat|}}} }} | false
       {{#ifeq: {{lc: {{{nocat|}}} }} | false
       | <!--"nocat=false", force categorise, skip blacklist check-->
       | <!--"nocat=false", force categorize, skip blacklist check-->
       | {{cat handler/blacklist| page = {{{page|}}} }}  <!--Check blacklist-->
       | {{cat handler/blacklist| page = {{{page|}}} }}  <!--Check blacklist-->
       }}
       }}
     | <!--Blacklist returned "hide", don't categorise-->
     | hide = <!--Blacklist returned "hide", don't categorize-->
     | <!--Check what namespace, and return the data for it-->
     | #default  =
      <!--Check what namespace, and return the data for it-->
       {{namespace detect
       {{namespace detect
       | main = {{{main| {{{other| 1 }}} }}}
       | main = {{{main| {{{other| 1 }}} }}}

Version vom 16. November 2009, 16:25 Uhr

Vorlage:Cat handler/numbered

Template-info.png Dokumentation für die Vorlage {{Category handler}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]
Für die Vorlage {{Category handler}} gibt es noch keine Dokumentation. Du kannst sie aber anlegen.
Hinweise