Template:BasePage2 View history

(fixed)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1}}| USA<!-- If USA template page -->
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1}}| Pakistan<!-- If Pakistan template page -->
   | {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}| CommonState<!-- If template -->
   | {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}| CommonState<!-- If template -->
       | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return "USA/CommonState"-->
       | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Return "Pakistan/CommonState"-->
       | {{#ifeq: {{padright:|4|{{#titleparts:{{{1|{{PAGENAME}}}}}|1|3}}}}|Test<!-- If 2nd level = "Test..." -->
       | {{#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}}}}}|3}}<!-- Return Pakistan + 2 -->
           | {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}<!-- Else return one after USA -->
           | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Else Pakistan + 1 -->
         }}<!-- End ifeq Test-->
         }}<!-- End ifeq Test-->
     }}<!-- End ifeq CommonState-->
     }}<!-- End ifeq CommonState-->

Latest revision as of 17:38, 14 May 2020

BasePage2

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