Difference between revisions of "Template:Category handler/testcases"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
imported>Plastikspork
(Delete)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
  
=== Testing {{tl|cat handler/numbered}} ===
+
=== Testing {{tl|category handler/blacklist}} ===
  
 
<pre>
 
<pre>
x{{cat handler/numbered}}x
+
x{{category handler/blacklist}}x
  
x{{cat handler/numbered
+
x{{category handler/blacklist
| 1 = a
 
| 2 = b
 
| 3 = c
 
| data = 3
 
}}x
 
 
 
x{{cat handler/numbered
 
| 1 = a
 
| 2 = b
 
| 3 = c
 
| data = Somecat
 
}}x
 
 
 
x{{cat handler/numbered
 
| 1 = a
 
| 2 = b
 
| 3 = c
 
| data = [[Category:Test]]
 
}}x
 
</pre>
 
x{{cat handler/numbered}}x
 
 
 
x{{cat handler/numbered
 
| 1 = a
 
| 2 = b
 
| 3 = c
 
| data = 3
 
}}x
 
 
 
x{{cat handler/numbered
 
| 1 = a
 
| 2 = b
 
| 3 = c
 
| data = Somecat
 
}}x
 
 
 
x{{cat handler/numbered
 
| 1 = a
 
| 2 = b
 
| 3 = c
 
| data = [[Category:Test]]
 
}}x
 
 
 
 
 
=== Testing {{tl|cat handler/blacklist}} ===
 
 
 
<pre>
 
x{{cat handler/blacklist}}x
 
 
 
x{{cat handler/blacklist
 
 
| page = User talk:Example
 
| page = User talk:Example
 
}}x
 
}}x
  
x{{cat handler/blacklist
+
x{{category handler/blacklist
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
 
}}x
 
}}x
  
x{{cat handler/blacklist
+
x{{category handler/blacklist
 
| page = Wikipedia:Template messages/Wikipedia namespace
 
| page = Wikipedia:Template messages/Wikipedia namespace
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/blacklist}}x
+
x{{category handler/blacklist}}x
  
x{{cat handler/blacklist
+
x{{category handler/blacklist
 
| page = User talk:Example
 
| page = User talk:Example
 
}}x
 
}}x
  
x{{cat handler/blacklist
+
x{{category handler/blacklist
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
 
}}x
 
}}x
  
x{{cat handler/blacklist
+
x{{category handler/blacklist
 
| page = Wikipedia:Template messages/Wikipedia namespace
 
| page = Wikipedia:Template messages/Wikipedia namespace
 
}}x
 
}}x
  
=== Testing {{tl|cat handler}} ===
+
=== Testing {{tl|category handler}} ===
  
 
<pre>
 
<pre>
x{{cat handler}}x
+
x{{category handler}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| template = Somecat
 
| template = Somecat
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = Somearticle
 
| page = Somearticle
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler}}x
+
x{{category handler}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| template = Somecat
 
| template = Somecat
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = Somearticle
 
| page = Somearticle
Line 118: Line 68:
  
 
<pre>
 
<pre>
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 129: Line 79:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 135: Line 85:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 146: Line 96:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 155: Line 105:
  
 
<pre>
 
<pre>
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
Line 166: Line 116:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 177: Line 127:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 189: Line 139:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
Line 200: Line 150:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 211: Line 161:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 226: Line 176:
  
 
<pre>
 
<pre>
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 241: Line 191:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 259: Line 209:
  
 
<pre>
 
<pre>
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| categories = no
 
| categories = no
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 270: Line 220:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| categories = no
 
| categories = no
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 284: Line 234:
  
 
<pre>
 
<pre>
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 = no
 
| category2 = no
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 =  
 
| category2 =  
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 = ¬
 
| category2 = ¬
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 = {{{category|¬}}}
 
| category2 = {{{category|¬}}}
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 311: Line 261:
 
</pre>
 
</pre>
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 = no
 
| category2 = no
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 =  
 
| category2 =  
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 = ¬
 
| category2 = ¬
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| category2 = {{{category|¬}}}
 
| category2 = {{{category|¬}}}
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 337: Line 287:
 
}}x
 
}}x
  
=== Testing {{tl|cat handler/sandbox}} ===
+
=== Testing {{tl|category handler/sandbox}} ===
  
 
<pre>
 
<pre>
x{{cat handler/sandbox}}x
+
x{{category handler/sandbox}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| template = Somecat
 
| template = Somecat
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = Somearticle
 
| page = Somearticle
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox}}x
+
x{{category handler/sandbox}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| template = Somecat
 
| template = Somecat
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = Somearticle
 
| page = Somearticle
Line 373: Line 323:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 384: Line 334:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 390: Line 340:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 401: Line 351:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| Somecat
 
| Somecat
 
| page = File:Example/test
 
| page = File:Example/test
Line 410: Line 360:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
Line 421: Line 371:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 432: Line 382:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 444: Line 394:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
 
| 1 = Category:Somecat3  <!--For help, user and template space-->
Line 455: Line 405:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 466: Line 416:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1 Category:Somecat2
 
| main = Category:Somecat1 Category:Somecat2
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
 
| 3 = Category:Somecat3  <!--For help, user and template space-->
Line 481: Line 431:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 496: Line 446:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 514: Line 464:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| categories = no
 
| categories = no
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 525: Line 475:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| categories = no
 
| categories = no
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 539: Line 489:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 = no
 
| category2 = no
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 =  
 
| category2 =  
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 = ¬
 
| category2 = ¬
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 = {{{category|¬}}}
 
| category2 = {{{category|¬}}}
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 566: Line 516:
 
</pre>
 
</pre>
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 = no
 
| category2 = no
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 =  
 
| category2 =  
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 = ¬
 
| category2 = ¬
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| category2 = {{{category|¬}}}
 
| category2 = {{{category|¬}}}
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| other = Somecat
 
| other = Somecat
 
| page = User talk:Example/Archive 5
 
| page = User talk:Example/Archive 5
Line 595: Line 545:
  
 
<pre>
 
<pre>
x{{cat handler
+
x{{category handler
 
| 2 = Category:Somecat
 
| 2 = Category:Somecat
 
| main =  
 
| main =  
Line 602: Line 552:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| 1 = Category:Somecat
 
| 1 = Category:Somecat
 
| main =  
 
| main =  
Line 609: Line 559:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| 1 = Category:Somecat
 
| 1 = Category:Somecat
 
| main =  
 
| main =  
Line 616: Line 566:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler
+
x{{category handler
 
| 2 = Category:Somecat
 
| 2 = Category:Somecat
 
| main =  
 
| main =  
Line 623: Line 573:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| 1 = Category:Somecat
 
| 1 = Category:Somecat
 
| main =  
 
| main =  
Line 630: Line 580:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| 1 = Category:Somecat
 
| 1 = Category:Somecat
 
| main =  
 
| main =  
Line 640: Line 590:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 646: Line 596:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 653: Line 603:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 660: Line 610:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 666: Line 616:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 673: Line 623:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 683: Line 633:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 690: Line 640:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 698: Line 648:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 706: Line 656:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 713: Line 663:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 721: Line 671:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| all = Category:Somecat1    <!--Category for all namespaces-->
 
| main = Category:Somecat2    <!--And use this in main space-->
 
| main = Category:Somecat2    <!--And use this in main space-->
Line 734: Line 684:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 740: Line 690:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 747: Line 697:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 754: Line 704:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 760: Line 710:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 767: Line 717:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 777: Line 727:
  
 
<pre>
 
<pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 783: Line 733:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 790: Line 740:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 797: Line 747:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 803: Line 753:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 810: Line 760:
 
}}x
 
}}x
  
x{{cat handler/sandbox
+
x{{category handler/sandbox
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 820: Line 770:
  
 
<pre>
 
<pre>
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 827: Line 777:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 834: Line 784:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 841: Line 791:
 
}}x
 
}}x
 
</pre>
 
</pre>
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 848: Line 798:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2
Line 855: Line 805:
 
}}x
 
}}x
  
x{{cat handler
+
x{{category handler
 
| main = Category:Somecat1
 
| main = Category:Somecat1
 
| other = Category:Somecat2
 
| other = Category:Somecat2

Latest revision as of 17:33, 13 May 2017

Testing {{category handler/blacklist}}

x{{category handler/blacklist}}x

x{{category handler/blacklist
| page = User talk:Example
}}x

x{{category handler/blacklist
| page = User talk:Example/Archive 5
}}x

x{{category handler/blacklist
| page = Wikipedia:Template messages/Wikipedia namespace
}}x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Main Page$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wikipedia:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]', -- The userbox "template" space. '^User talk:UBX%f[/\0]',

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipedia:Template index/.*$',

-- Don't categorise archives. '/[aA]rchive', "^Wikipedia:Administrators' noticeboard/IncidentArchive%d+$", }x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Main Page$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wikipedia:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]', -- The userbox "template" space. '^User talk:UBX%f[/\0]',

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipedia:Template index/.*$',

-- Don't categorise archives. '/[aA]rchive', "^Wikipedia:Administrators' noticeboard/IncidentArchive%d+$", }x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Main Page$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wikipedia:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]', -- The userbox "template" space. '^User talk:UBX%f[/\0]',

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipedia:Template index/.*$',

-- Don't categorise archives. '/[aA]rchive', "^Wikipedia:Administrators' noticeboard/IncidentArchive%d+$", }x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Main Page$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wikipedia:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]', -- The userbox "template" space. '^User talk:UBX%f[/\0]',

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipedia:Template index/.*$',

-- Don't categorise archives. '/[aA]rchive', "^Wikipedia:Administrators' noticeboard/IncidentArchive%d+$", }x

Testing {{category handler}}

x{{category handler}}x

x{{category handler
| Somecat
}}x

x{{category handler
| template = Somecat
}}x

x{{category handler
| Somecat
| page = Somearticle
}}x

xx

xx

xSomecatx

xSomecatx


x{{category handler
| Somecat
| page = File:Example/test
}}x

x{{category handler
| Somecat
| page = File:Example/test
| nocat = 
}}x

x{{category handler
| Somecat
| page = File:Example/test
| nocat = true
}}x

xSomecatx

xSomecatx

xx


x{{category handler
| main = Category:Somecat1 Category:Somecat2
| 1 = Category:Somecat3   <!--For help, user and template space-->
| help = 1
| user = 1
| template = 1
| talk =     <!--No categories on talk pages-->
| other = Category:Somecat4   <!--For all other namespaces-->
| nocat = {{{nocat|}}}   <!--So "nocat=true/false" works-->
}}x

x{{category handler
| main = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For help, user and template space-->
| help = 3
| user = 3
| template = 3
| talk =     <!--No categories on talk pages-->
| other = Category:Somecat4   <!--For all other namespaces-->
| nocat = {{{nocat|}}}   <!--So "nocat=true/false" works-->
}}x

x{{category handler
| main = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For help, user and template space-->
| help = 3
| user = 3
| template = 3
| talk =     <!--No categories on talk pages-->
| other = Category:Somecat4   <!--For all other namespaces-->
| nocat = {{{nocat|}}}   <!--So "nocat=true/false" works-->
| page = Somearticle
}}x

xCategory:Somecat3x

xCategory:Somecat3x

xCategory:Somecat1 Category:Somecat2x


x{{category handler
| other = Somecat
}}x

x{{category handler
| other = Somecat
| page = User talk:Example/Archive 5
}}x

x{{category handler
| other = Somecat
| page = User talk:Example/Archive 5
| nocat = false
}}x

xSomecatx

xx

xSomecatx


x{{category handler
| other = Somecat
| categories = no
}}x

x{{category handler
| other = Somecat
| page = User talk:Example/Archive 5
| categories = yes
}}x

xx

xSomecatx


x{{category handler
| other = Somecat
| category2 = no
}}x

x{{category handler
| other = Somecat
| category2 = 
}}x

x{{category handler
| other = Somecat
| category2 = ¬
}}x

x{{category handler
| other = Somecat
| category2 = {{{category|¬}}}
}}x

x{{category handler
| other = Somecat
| page = User talk:Example/Archive 5
| category2 = yes
}}x

xx

xx

xSomecatx

xSomecatx

xSomecatx

Testing {{category handler/sandbox}}

x{{category handler/sandbox}}x

x{{category handler/sandbox
| Somecat
}}x

x{{category handler/sandbox
| template = Somecat
}}x

x{{category handler/sandbox
| Somecat
| page = Somearticle
}}x

xx

xx

xSomecatx

xSomecatx


x{{category handler/sandbox
| Somecat
| page = File:Example/test
}}x

x{{category handler/sandbox
| Somecat
| page = File:Example/test
| nocat = 
}}x

x{{category handler/sandbox
| Somecat
| page = File:Example/test
| nocat = true
}}x

xSomecatx

xSomecatx

xx


x{{category handler/sandbox
| main = Category:Somecat1 Category:Somecat2
| 1 = Category:Somecat3   <!--For help, user and template space-->
| help = 1
| user = 1
| template = 1
| talk =     <!--No categories on talk pages-->
| other = Category:Somecat4   <!--For all other namespaces-->
| nocat = {{{nocat|}}}   <!--So "nocat=true/false" works-->
}}x

x{{category handler/sandbox
| main = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For help, user and template space-->
| help = 3
| user = 3
| template = 3
| talk =     <!--No categories on talk pages-->
| other = Category:Somecat4   <!--For all other namespaces-->
| nocat = {{{nocat|}}}   <!--So "nocat=true/false" works-->
}}x

x{{category handler/sandbox
| main = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For help, user and template space-->
| help = 3
| user = 3
| template = 3
| talk =     <!--No categories on talk pages-->
| other = Category:Somecat4   <!--For all other namespaces-->
| nocat = {{{nocat|}}}   <!--So "nocat=true/false" works-->
| page = Somearticle
}}x

xCategory:Somecat3x

xCategory:Somecat3x

xCategory:Somecat1 Category:Somecat2x


x{{category handler/sandbox
| other = Somecat
}}x

x{{category handler/sandbox
| other = Somecat
| page = User talk:Example/Archive 5
}}x

x{{category handler/sandbox
| other = Somecat
| page = User talk:Example/Archive 5
| nocat = false
}}x

xSomecatx

xx

xSomecatx


x{{category handler/sandbox
| other = Somecat
| categories = no
}}x

x{{category handler/sandbox
| other = Somecat
| page = User talk:Example/Archive 5
| categories = yes
}}x

xx

xSomecatx


x{{category handler/sandbox
| other = Somecat
| category2 = no
}}x

x{{category handler/sandbox
| other = Somecat
| category2 = 
}}x

x{{category handler/sandbox
| other = Somecat
| category2 = ¬
}}x

x{{category handler/sandbox
| other = Somecat
| category2 = {{{category|¬}}}
}}x

x{{category handler/sandbox
| other = Somecat
| page = User talk:Example/Archive 5
| category2 = yes
}}x

xx

xx

xSomecatx

xSomecatx

xSomecatx

Testing parameter 1

x{{category handler
| 2 = Category:Somecat
| main = 
| wikipedia = 2
| page = Help:Example
}}x

x{{category handler
| 1 = Category:Somecat
| main = 
| wikipedia = 1
| page = Help:Example
}}x

x{{category handler/sandbox
| 1 = Category:Somecat
| main = 
| wikipedia = 1
| page = Help:Example
}}x

xx

xx

xx

Testing the "all" parameter

x{{category handler/sandbox
| all = Category:Somecat1     <!--Category for all namespaces-->
| main = Category:Somecat2    <!--And use this in main space-->
| talk =           <!--But no extra category for talk pages-->
}}x

x{{category handler/sandbox
| all = Category:Somecat1     <!--Category for all namespaces-->
| main = Category:Somecat2    <!--And use this in main space-->
| talk =           <!--But no extra category for talk pages-->
| page = An article
}}x

x{{category handler/sandbox
| all = Category:Somecat1     <!--Category for all namespaces-->
| main = Category:Somecat2    <!--And use this in main space-->
| talk =           <!--But no extra category for talk pages-->
| page = Talk:Example
}}x

xCategory:Somecat1x

xCategory:Somecat1Category:Somecat2x

xCategory:Somecat1x


x{{category handler/sandbox
| all = Category:Somecat1     <!--Category for all namespaces-->
| main = Category:Somecat2    <!--And use this in main space-->
| other = Category:Somecat3   <!--For the rest of the namespaces-->
| talk =           <!--But no extra category for talk pages-->
}}x

x{{category handler/sandbox
| all = Category:Somecat1     <!--Category for all namespaces-->
| main = Category:Somecat2    <!--And use this in main space-->
| talk =           <!--But no extra category for talk pages-->
| other = Category:Somecat3   <!--For the rest of the namespaces-->
| page = An article
}}x

x{{category handler/sandbox
| all = Category:Somecat1     <!--Category for all namespaces-->
| main = Category:Somecat2    <!--And use this in main space-->
| talk =           <!--But no extra category for talk pages-->
| other = Category:Somecat3   <!--For the rest of the namespaces-->
| page = Talk:Example
}}x

xCategory:Somecat1Category:Somecat3x

xCategory:Somecat1Category:Somecat2x

xCategory:Somecat1x


Testing the "subpage" parameter

x{{category handler/sandbox
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = no
}}x

x{{category handler/sandbox
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = no
| page = User:Example
}}x

x{{category handler/sandbox
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = no
| page = User:Example/test
}}x

xx

xCategory:Somecat2x

xx


x{{category handler/sandbox
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = only
}}x

x{{category handler/sandbox
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = only
| page = User:Example
}}x

x{{category handler/sandbox
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = only
| page = User:Example/test
}}x

xCategory:Somecat2x

xx

xCategory:Somecat2x


x{{category handler
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = no
| page = User:Example
}}x

x{{category handler
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = no
| page = User:Example/test
}}x

x{{category handler
| main = Category:Somecat1
| other = Category:Somecat2
| subpage = only
| page = User:Example/test
}}x

xCategory:Somecat2x

xx

xCategory:Somecat2x