Template:BasePage2 View history

m (13 revisions imported from usa:Template:BasePage2)
No edit summary
 
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}}}}}|3}}<!-- Return USA + 2 -->
           | {{#titleparts:{{{1|{{PAGENAME}}}}}|3}}<!-- Return Pakistan + 2 -->
           | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Else USA + 1 -->
           | {{#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.