Template:Category handler

{{#if: {{#ifeq: {{lc: {{{nocat|}}} }} | true | dontcat }}{{#ifeq: {{lc: {{{categories|}}} }} | no | dontcat }}{{#switch: {{lc: {{{category2|¬}}} }} | yes | ¬  =     | #default = dontcat }}{{#switch: {{lc: {{{subpage|}}} }} | no = {{basepage subpage |    | dontcat | page = {{{page|}}} }} | only = {{basepage subpage | dontcat | page = {{{page|}}} }} }}

{{#switch: {{#ifeq: {{lc: {{{nocat|}}} }} | false |      | {{#ifeq: {{lc: {{{categories|}}} }} | yes |        | {{#ifeq: {{lc: {{{category2|}}} }} | yes |          | {{category handler/blacklist| page = {{{page|}}} }} }}     }}    }}  | hide = | #default = {{#ifeq: h0#384!5nea+w9 | {$$} }}} |      {{namespace detect | main = {{{1|}}} | file = {{{1|}}} | help = {{{1|}}} | category = {{{1|}}} | book = {{{1|}}} | page = {{{page|}}} }}   |       {$$}{{category handler/numbered | 1 = {{{1|}}}     | 2 = {{{2|}}}      | 3 = {{{3|}}}      | 4 = {{{4|}}}      | 5 = {{{5|}}}      | 6 = {{{6|}}}      | 7 = {{{7|}}}      | 8 = {{{8|}}}      | 9 = {{{9|}}}      | 10 = {{{10|}}}      | data = {{namespace detect | main = {{{main| {{{other|}}} }}} | talk = {{{talk| {{{other|}}} }}} | user = {{{user| {{{other|}}} }}} | warwiki = {{{warwiki| {{{other|}}} }}} | file = {{{file| {{{image| {{{other|}}} }}} }}} | mediawiki = {{{mediawiki| {{{other|}}} }}} | template = {{{template| {{{other|}}} }}} | help = {{{help| {{{other|}}} }}} | category = {{{category| {{{other|}}} }}} | book = {{{book| {{{other|}}} }}} | other = {{{other|}}} | page = {{{page|}}} }}     }}    }}  }}