Difference between revisions of "Template:Category handler"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Added blacklist check.)
(Added some code comments.)
Line 1: Line 1:
 
{{#ifeq: {{lc: {{{nocat|}}} }} | true
 
{{#ifeq: {{lc: {{{nocat|}}} }} | true
 
| <!--"nocat=true", don't categorise-->
 
| <!--"nocat=true", don't categorise-->
| {{cat handle/numbered
+
| <!--If "data" is a number, return the corresponding
 +
      numbered parameter, else return "data"-->
 +
  {{cat handle/numbered
 
   | 1 = {{{1|}}}
 
   | 1 = {{{1|}}}
 
   | 2 = {{{2|}}}
 
   | 2 = {{{2|}}}
Line 19: Line 21:
 
       }}
 
       }}
 
     | <!--Blacklist returned "hide", don't categorise-->
 
     | <!--Blacklist returned "hide", don't categorise-->
     | {{namespace detect
+
     | <!--Check what namespace, and return the data for it-->
 +
      {{namespace detect
 
       | main = {{{main| {{{other| 1 }}} }}}
 
       | main = {{{main| {{{other| 1 }}} }}}
 
       | talk = {{{talk| {{{other|}}} }}}
 
       | talk = {{{talk| {{{other|}}} }}}

Revision as of 00:13, 15 November 2009

Template:Cat handle/numbered

Documentation icon Template documentation[create]