Difference between revisions of "Modèle:SubPage2"
From Wazeopedia
Kentsmith9 (talk | contribs) (Kentsmith9 moved page Creating and Editing street segments to Creating and editing road segments: incorrect name in title) |
m (1 révision importée) |
||
Line 1: | Line 1: | ||
− | # | + | {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|1}}| USA<!-- If USA template page --> |
+ | | {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}| CommonState<!-- If template --> | ||
+ | | {{#titleparts:{{{1|{{PAGENAME}}}}}|1|3}}<!-- Ret 1 after "USA/CommonState"--> | ||
+ | | {{#ifeq: {{padright:|4|{{#titleparts:{{{1|{{PAGENAME}}}}}|1|3}}}}|Test<!-- If 3nd level = "Test..." --> | ||
+ | | {{#titleparts:{{{1|{{PAGENAME}}}}}|1|4}}<!-- Return 4th level only --> | ||
+ | | {{#titleparts:{{{1|{{PAGENAME}}}}}|1|3}}<!-- Else return 3rd level --> | ||
+ | }}<!-- End ifeq Test--> | ||
+ | }}<!-- End ifeq CommonState --> | ||
+ | | {{#ifeq: {{padright:|4|{{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}}}|Test<!-- If 2nd level = "Test..." --> | ||
+ | | {{#titleparts:{{{1|{{PAGENAME}}}}}|1|3}}<!-- Return 3rd level only --> | ||
+ | | {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}<!-- Else return 2nd level --> | ||
+ | }}<!-- End ifeq non-CommonState pages --> | ||
+ | }}<noinclude>{{documentation|Template:RootPage/doc}}</noinclude> |
Latest revision as of 01:50, 13 November 2019

![]() |
Subpages of this template. |