Template:Cat: Difference between revisions

From Game Detectives Wiki
Jump to navigation Jump to search
Mattyb (talk | contribs)
Change to conditionally check if subpage or not
Mattyb (talk | contribs)
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