Difference between revisions of "Template:Category handler"

From SEG Wiki
Jump to: navigation, search
(Updating to handle the new "Book:" namespace.)
m (26 revisions from wikipedia:Template:Category handler: imported from WP)
 
(9 intermediate revisions by 6 users not shown)
Line 31: Line 31:
 
       | {{#ifeq: {{lc: {{{category2|}}} }} | yes
 
       | {{#ifeq: {{lc: {{{category2|}}} }} | yes
 
         |  <!--Skip blacklist check-->
 
         |  <!--Skip blacklist check-->
         | {{cat handler/blacklist| page = {{{page|}}} }}  <!--Check blacklist-->
+
         | {{category handler/blacklist| page = {{{page|}}} }}  <!--Check blacklist-->
 
         }}
 
         }}
 
       }}
 
       }}
Line 38: Line 38:
 
   | #default  =  
 
   | #default  =  
 
     <!--Check if any namespace parameter is defined-->
 
     <!--Check if any namespace parameter is defined-->
     {{#ifeq: h0#384!5nea+w9 | {{{all| {{{main| {{{talk| {{{user| {{{wikipedia| {{{file| {{{mediawiki| {{{template| {{{help| {{{category| {{{portal| {{{other| h0#384!5nea+w9 }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}
+
     {{#ifeq: h0#384!5nea+w9 | {{{all| {{{main| {{{talk| {{{user| {{{wikipedia| {{{file| {{{mediawiki| {{{template| {{{help| {{{category| {{{portal| {{{book| {{{other| h0#384!5nea+w9 }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}
 
     | <!--No namespace parameters fed, basic usage-->
 
     | <!--No namespace parameters fed, basic usage-->
 
       {{namespace detect
 
       {{namespace detect
Line 52: Line 52:
 
           If "data" is a number, return the corresponding  
 
           If "data" is a number, return the corresponding  
 
           numbered parameter, else return "data".  -->
 
           numbered parameter, else return "data".  -->
       {{{all|}}}{{cat handler/numbered
+
       {{{all|}}}{{category handler/numbered
 
       | 1 = {{{1|}}}
 
       | 1 = {{{1|}}}
 
       | 2 = {{{2|}}}
 
       | 2 = {{{2|}}}
Line 85: Line 85:
 
   }}
 
   }}
 
}}<noinclude>
 
}}<noinclude>
 
{{pp-template}}
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 13:47, 1 April 2015

[create] Documentation icon Template documentation