Template:Category handler: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(More robust to use numbered instead of unnamed parameters for {{cat handle/numbered}}.) |
(Added blacklist check.) |
||
Line 13: | Line 13: | ||
| 10 = {{{10|}}} |
| 10 = {{{10|}}} |
||
| data = |
| data = |
||
{{ |
{{#if: |
||
{{#ifeq: {{lc: {{{nocat|}}} }} | false |
|||
| <!--"nocat=false", force categorise, skip blacklist check--> |
|||
⚫ | |||
| {{cat handle/blacklist| page = {{{page|}}} }} <!--Check blacklist--> |
|||
}} |
|||
⚫ | |||
| <!--Blacklist returned "hide", don't categorise--> |
|||
⚫ | |||
| {{namespace detect |
|||
⚫ | |||
| |
| main = {{{main| {{{other| 1 }}} }}} |
||
| |
| talk = {{{talk| {{{other|}}} }}} |
||
| |
| user = {{{user| {{{other|}}} }}} |
||
| |
| wikipedia = {{{wikipedia| {{{other|}}} }}} |
||
| |
| file = {{{file| {{{image| {{{other| 1 }}} }}} }}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
| category = {{{category| {{{other| 1 }}} }}} |
|||
⚫ | |||
| other = {{{other|}}} <!--Namespace special or a new namespace--> |
|||
⚫ | |||
}} |
|||
}} |
}} |
||
}} |
}} |