Template:Basepage subpage
From MediaWiki
{{#switch:
{{#if: | {{#if:{{#titleparts:{{{page}}}|0|3}} | subsubpage | {{#if:{{#titleparts:{{{page}}}|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:Basepage subpage|0|3}} | subsubpage | {{#if:{{#titleparts:Template:Basepage subpage|0|2}} | subpage | basepage }} }} }}
| basepage = | subpage = | subsubpage = }}