Difference between revisions of "Template:Category handler"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(Adding "subpage=no/only".) |
(Adding "category2 =" support, to work around the "category" parameter name collision. Keeping "category =" support for some hours while fixing any usage out there.) |
||
Line 8: | Line 8: | ||
| = dontcat <!--"category =", defined but empty--> | | = dontcat <!--"category =", defined but empty--> | ||
<!--Else "category = ¬/'not defined'/yes/'anything'"--> | <!--Else "category = ¬/'not defined'/yes/'anything'"--> | ||
+ | }}{{#switch: {{lc: {{{category2|¬}}} }} | ||
+ | | yes | ||
+ | | ¬ = <!--Not defined--> | ||
+ | | #default = dontcat <!--"category = no/'defined but empty'/'anything'"--> | ||
}}{{#switch: {{lc: {{{subpage|}}} }} | }}{{#switch: {{lc: {{{subpage|}}} }} | ||
| no = | | no = |
Revision as of 12:14, 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. |