Template:Category handler: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Using a #switch-case for the blacklist check, to make it easier to add more blacklist functions in the future.
(Update calls to subtemplates /numbered and /blacklist, due to move.)
(Using a #switch-case for the blacklist check, to make it easier to add more blacklist functions in the future.)
Line 1:
{{#ifeq: {{lc: {{{nocat|}}} }} | true
| <!--"nocat=true", don't categorisecategorize-->
| <!--If "data" is a number, return the corresponding
numbered parameter, else return "data"-->
Line 15:
| 10 = {{{10|}}}
| data =
{{#ifswitch:
{{#ifeq: {{lc: {{{nocat|}}} }} | false
| <!--"nocat=false", force categorisecategorize, skip blacklist check-->
| {{cat handler/blacklist| page = {{{page|}}} }} <!--Check blacklist-->
}}
| hide = <!--Blacklist returned "hide", don't categorisecategorize-->
| #default =
| <!--Check what namespace, and return the data for it-->
{{namespace detect
| main = {{{main| {{{other| 1 }}} }}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu