Template:Category handler: Difference between revisions

Added blacklist check.
(More robust to use numbered instead of unnamed parameters for {{cat handle/numbered}}.)
(Added blacklist check.)
Line 13:
| 10 = {{{10|}}}
| data =
{{namespace detect#if:
| main ={{#ifeq: {{{main|lc: {{{othernocat| 1 }}} }}} | false
| <!--"nocat=false", force categorise, skip blacklist check-->
| talk = {{{talk| {{{other|}}} }}}
| user =| {{{usercat handle/blacklist| page = {{{otherpage|}}} }}} <!--Check blacklist-->
}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| <!--Blacklist returned "hide", don't categorise-->
| file = {{{file| {{{image| {{{other| 1 }}} }}} }}}
| {{namespace detect
| mediawiki = {{{mediawiki| {{{other|}}} }}}
| templatemain = {{{templatemain| {{{other| 1 }}} }}}
| helptalk = {{{helptalk| {{{other| 1 }}} }}}
| categoryuser = {{{categoryuser| {{{other| 1 }}} }}}
| portalwikipedia = {{{portalwikipedia| {{{other| 1 }}} }}}
| otherfile = {{{file| {{{image| {{{other| 1 }}} }}} <!--Namespace special or a new namespace-->}}}
| wikipediamediawiki = {{{wikipediamediawiki| {{{other|}}} }}}
| page = {{{page|}}} <!--For testing and demonstration-->
| mediawikitemplate = {{{mediawikitemplate| {{{other|}}} }}}
| talkhelp = {{{talkhelp| {{{other| 1 }}} }}}
| category = {{{category| {{{other| 1 }}} }}}
| fileportal = {{{file| {{{imageportal| {{{other| 1 }}} }}} }}}
| other = {{{other|}}} <!--Namespace special or a new namespace-->
| page = {{{page|}}} <!--For testing and demonstration-->
}}
}}
}}
Anonymous user