Template:BasePage2 View history

(improved and simplified)
(isolating regions)
Line 1: Line 1:
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|1}}| USA<!-- If USA template page -->
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}| USA/CommonState<!-- If USA template page -->
   | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return "USA/xxxxx"-->
   | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return "USA/CommonState"-->
   | {{#ifeq: {{padright:|4|{{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}}}|Test<!-- If 2nd level = "Test..." -->
   | {{#ifeq: {{padright:|4|{{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}}}|Test<!-- If 2nd level = "Test..." -->
       | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return first two levels -->
       | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return first two levels -->

Revision as of 14:59, 25 July 2014

BasePage2

Documentation icon Template documentation[create]
Subpages of this template.