Template:BasePage2 View history

(isolating regions)
(fixed)
Line 1: Line 1:
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}| USA/CommonState<!-- If USA template page -->
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1}}| USA<!-- If USA template page -->
   | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return "USA/CommonState"-->
   | {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}| CommonState<!-- If template -->
      | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return "USA/CommonState"-->
      | {{#ifeq: {{padright:|4|{{#titleparts:{{{1|{{PAGENAME}}}}}|1|3}}}}|Test<!-- If 2nd level = "Test..." -->
          | {{#titleparts:{{{1|{{PAGENAME}}}}}|2|2}}<!-- Return two after USA -->
          | {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}<!-- Else return one after USA -->
        }}<!-- End ifeq Test-->
    }}<!-- End ifeq 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 -->
       | {{#titleparts:{{{1|{{PAGENAME}}}}}|1}}<!-- Else return 1st level only -->
       | {{#titleparts:{{{1|{{PAGENAME}}}}}|1}}<!-- Else return 1st level only -->
    }}
    }}<!-- End ifeq non-CommonState pages -->
}}<noinclude>{{documentation|Template:RootPage/doc}}</noinclude>
}}<noinclude>{{documentation|Template:RootPage/doc}}</noinclude>

Revision as of 15:13, 25 July 2014

BasePage2

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