(fixed) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1}}| | {{#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 " | | {{#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}}}}}| | | {{#titleparts:{{{1|{{PAGENAME}}}}}|3}}<!-- Return Pakistan + 2 --> | ||
| {{#titleparts:{{{1|{{PAGENAME}}}}} | | {{#titleparts:{{{1|{{PAGENAME}}}}}|2}}<!-- Else Pakistan + 1 --> | ||
}}<!-- End ifeq Test--> | }}<!-- End ifeq Test--> | ||
}}<!-- End ifeq CommonState--> | }}<!-- End ifeq CommonState--> |