Template:Category handler: Difference between revisions

From Vigyanwiki
Template>Davidgothberg
(More robust to use numbered instead of unnamed parameters for {{cat handle/numbered}}.)
Template>Davidgothberg
(Added blacklist check.)
Line 13: Line 13:
   | 10 = {{{10|}}}
   | 10 = {{{10|}}}
   | data =  
   | data =  
     {{namespace detect
     {{#if:
    | main = {{{main| {{{other| 1 }}} }}}
      {{#ifeq: {{lc: {{{nocat|}}} }} | false
    | talk = {{{talk| {{{other|}}} }}}
      | <!--"nocat=false", force categorise, skip blacklist check-->
    | user = {{{user| {{{other|}}} }}}
      | {{cat handle/blacklist| page = {{{page|}}} }}  <!--Check blacklist-->
    | wikipedia = {{{wikipedia| {{{other|}}} }}}
      }}
    | file = {{{file| {{{image| {{{other| 1 }}} }}} }}}
    | <!--Blacklist returned "hide", don't categorise-->
    | mediawiki = {{{mediawiki| {{{other|}}} }}}
    | {{namespace detect
    | template = {{{template| {{{other|}}} }}}
      | main = {{{main| {{{other| 1 }}} }}}
    | help = {{{help| {{{other| 1 }}} }}}
      | talk = {{{talk| {{{other|}}} }}}
    | category = {{{category| {{{other| 1 }}} }}}
      | user = {{{user| {{{other|}}} }}}
    | portal = {{{portal| {{{other| 1 }}} }}}
      | wikipedia = {{{wikipedia| {{{other|}}} }}}
    | other = {{{other|}}}   <!--Namespace special or a new namespace-->
      | file = {{{file| {{{image| {{{other| 1 }}} }}} }}}
    | page = {{{page|}}}  <!--For testing and demonstration-->
      | mediawiki = {{{mediawiki| {{{other|}}} }}}
      | template = {{{template| {{{other|}}} }}}
      | help = {{{help| {{{other| 1 }}} }}}
      | category = {{{category| {{{other| 1 }}} }}}
      | portal = {{{portal| {{{other| 1 }}} }}}
      | other = {{{other|}}} <!--Namespace special or a new namespace-->
      | page = {{{page|}}}  <!--For testing and demonstration-->
      }}
     }}
     }}
   }}
   }}

Revision as of 09:20, 15 November 2009

Template:Cat handle/numbered

Template documentation