Editing Template:When on basepage
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{#switch: | {{#switch: | ||
− | <!--If no or empty " | + | <!--If no or empty "demospace" parameter then detect |
basepage/subpage/subsubpage--> | basepage/subpage/subsubpage--> | ||
− | {{#if:{{{ | + | {{#if:{{{demospace|}}} |
− | | {{ | + | | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| {{#if:{{#titleparts:{{FULLPAGENAME}}|0|3}} | | {{#if:{{#titleparts:{{FULLPAGENAME}}|0|3}} | ||
| subsubpage <!--Subsubpage or lower--> | | subsubpage <!--Subsubpage or lower--> | ||
Line 18: | Line 12: | ||
}} | }} | ||
}} | }} | ||
− | + | | basepage = {{{1|}}} | |
− | | basepage | + | | subpage = {{{2|}}} |
− | | subpage | ||
| subsubpage = {{{3| {{{2|}}} }}} <!--Respecting empty parameter on purpose--> | | subsubpage = {{{3| {{{2|}}} }}} <!--Respecting empty parameter on purpose--> | ||
+ | | #default = <!--Faulty demospace parameter, do nothing--> | ||
}}<!--End switch--><noinclude> | }}<!--End switch--><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |