Vorlage:Category handler: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
imported>MSGJ
K (Changed protection level of Template:Cat handler: Highly visible template: i've started deploying this template (hope it's not premature) ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
imported>Davidgothberg
(Adding "subpage=no/only".)
Zeile 1: Zeile 1:
{{#if:
{{#if:
   {{#ifeq: {{lc: {{{nocat|}}} }} | true
   {{#ifeq: {{lc: {{{nocat|}}} }} | true
   | dontcat     <!--"nocat=true", don't categorize-->
   | dontcat   <!--"nocat=true", don't categorize-->
   }}{{#ifeq: {{lc: {{{categories|}}} }} | no
   }}{{#ifeq: {{lc: {{{categories|}}} }} | no
   | dontcat   <!--"categories=no", don't categorize-->
   | dontcat
   }}{{#switch: {{lc: {{{category|¬}}} }}
   }}{{#switch: {{lc: {{{category|¬}}} }}
   | no             <!--"category = no"-->
   | no
   |    = dontcat  <!--"category =", defined but empty-->
   |    = dontcat  <!--"category =", defined but empty-->
   }}  <!--Else "category = ¬" or not defined or "yes" or other data-->
      <!--Else "category = ¬/'not defined'/yes/'anything'"-->
   }}{{#switch: {{lc: {{{subpage|}}} }}
   | no =
    {{basepage subpage
    |
    | dontcat    <!--"subpage=no" and on a subpage-->
    | page = {{{page|}}}  <!--For testing-->
    }}
  | only =
    {{basepage subpage
    | dontcat    <!--"subpage=only" and not on a subpage-->
    | page = {{{page|}}}  <!--For testing-->
    }}
  }}


|  <!--Don't categorise (result was "dontcat" or "dontcatdontcat" and so on)-->
|  <!--Don't categorise (result was "dontcat" or "dontcatdontcat" and so on)-->
Zeile 15: Zeile 28:
     |  <!--"nocat=false", skip blacklist check-->
     |  <!--"nocat=false", skip blacklist check-->
     | {{#ifeq: {{lc: {{{categories|}}} }} | yes
     | {{#ifeq: {{lc: {{{categories|}}} }} | yes
       |  <!--"categories=yes", skip blacklist check-->
       |  <!--Skip blacklist check-->
       | {{#ifeq: {{lc: {{{category|}}} }} | yes
       | {{#ifeq: {{lc: {{{category|}}} }} | yes
         |  <!--"category=yes", skip blacklist check-->
         |  <!--Skip blacklist check-->
         | {{cat handler/blacklist| page = {{{page|}}} }}  <!--Check blacklist-->
         | {{cat handler/blacklist| page = {{{page|}}} }}  <!--Check blacklist-->
         }}
         }}

Version vom 25. November 2009, 07:30 Uhr

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