(testing) |
(testing) |
||
Line 1: | Line 1: | ||
{{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|1}}| USA | {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|1|1}}| USA<!-- If USA template page --> | ||
| {{#titleparts:{{{1|{{PAGENAME}}}}}|1|2}}<!-- Return "USA/CommonState"--> | |||
| {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|Main<!-- If ending "Main" --> | |||
| {{#titleparts:{{{1|{{PAGENAME}}}}}|-2}}<!-- Return all but "Main" --> | |||
| {{#ifeq: {{#titleparts:{{{1|{{PAGENAME}}}}}|-1|-2}}|Main<!-- If ending "Main/Preload"--> | |||
| {{#titleparts:{{{1|{{PAGENAME}}}}}|-3}}<!-- Return all but "Main/Preload"--> | |||
<!-- | {{#titleparts:{{{1|{{PAGENAME}}}}}|-1}}--> | |||
| {{{1|{{PAGENAME}}}}}<!-- Testing if works normally --> | |||
}} | |||
}} | |||
}}<noinclude>{{documentation|Template:RootPage/doc}}</noinclude> | }}<noinclude>{{documentation|Template:RootPage/doc}}</noinclude> |