Anonymous user
Template:Category handler: Difference between revisions
Adding "subpage=no/only".
m (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))) |
(Adding "subpage=no/only".) |
||
Line 1:
{{#if:
{{#ifeq: {{lc: {{{nocat|}}} }} | true
| dontcat
}}{{#ifeq: {{lc: {{{categories|}}} }} | no
| dontcat
}}{{#switch: {{lc: {{{category|¬}}} }}
| no
| = dontcat <!--"category =", defined but empty-->
}}{{#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)-->
Line 15 ⟶ 28:
| <!--"nocat=false", skip blacklist check-->
| {{#ifeq: {{lc: {{{categories|}}} }} | yes
| <!--
| {{#ifeq: {{lc: {{{category|}}} }} | yes
| <!--
| {{cat handler/blacklist| page = {{{page|}}} }} <!--Check blacklist-->
}}
|