Difference between revisions of "Template:Cat"

From Game Detectives Wiki
Jump to: navigation, search
[checked revision][checked revision]
(test expand compat)
 
Line 1: Line 1:
 
<includeonly>{{#switch:{{PAGENAME}}
 
<includeonly>{{#switch:{{PAGENAME}}
|{{ROOTPAGENAME}} = [[Category:{{ROOTPAGENAME}}]]
+
|{{SUBPAGENAME}} = [[Category:{{SUBPAGENAME}}]]
|#default = [[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 2}}]]}}</includeonly>
+
|{{ROOTPAGENAME}}/{{SUBPAGENAME}} = [[Category:{{ROOTPAGENAME}}|{{SUBPAGENAME}}]]
 +
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{SUBPAGENAME}} = [[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 2}}]]
 +
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{SUBPAGENAME}} = [[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 3}}]]
 +
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{SUBPAGENAME}} = [[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 4}}]]
 +
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{SUBPAGENAME}} = [[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 5}}]]
 +
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{#titleparts:{{PAGENAME}}|1|6}}/{{SUBPAGENAME}} = [[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 6}}]]
 +
}}</includeonly>

Latest revision as of 18:12, 23 June 2018