Difference between revisions of "Template:Category handler"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(Adding "category2 =" support, to work around the "category" parameter name collision. Keeping "category =" support for some hours while fixing any usage out there.) |
(Should be "category2" in two more places.) |
||
Line 11: | Line 11: | ||
| yes | | yes | ||
| ¬ = <!--Not defined--> | | ¬ = <!--Not defined--> | ||
− | | #default = dontcat <!--" | + | | #default = dontcat <!--"category2 = no/'defined but empty'/'anything'"--> |
}}{{#switch: {{lc: {{{subpage|}}} }} | }}{{#switch: {{lc: {{{subpage|}}} }} | ||
| no = | | no = | ||
Line 33: | Line 33: | ||
| {{#ifeq: {{lc: {{{categories|}}} }} | yes | | {{#ifeq: {{lc: {{{categories|}}} }} | yes | ||
| <!--Skip blacklist check--> | | <!--Skip blacklist check--> | ||
− | | {{#ifeq: {{lc: {{{ | + | | {{#ifeq: {{lc: {{{category2|}}} }} | yes |
| <!--Skip blacklist check--> | | <!--Skip blacklist check--> | ||
| {{cat handler/blacklist| page = {{{page|}}} }} <!--Check blacklist--> | | {{cat handler/blacklist| page = {{{page|}}} }} <!--Check blacklist--> |
Revision as of 12:21, 2 December 2009
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |