Difference between revisions of "Template:Cat"

From Game Detectives Wiki
Jump to: navigation, search
[checked revision][checked revision]
(Change to conditionally check if subpage or not)
(Experimental)
Line 1: Line 1:
<includeonly>{{#ifeq:{{ROOTPAGENAME}}|{{PAGENAME}}|[[Category:{{ROOTPAGENAME}}]]|[[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 2}}]]}}</includeonly>
+
<includeonly>{{#switch:{{ROOTPAGENAME}}
 +
|{{PAGENAME}} = [[Category:{{ROOTPAGENAME}}]]
 +
|#default = [[Category:{{ROOTPAGENAME}}|{{#titleparts: {{PAGENAME}} | 1 | 2}}]]}}</includeonly>

Revision as of 23:39, 2 June 2018