Difference between revisions of "Template:When on basepage"
Jump to navigation
Jump to search
imported>Davidgothberg m (Protected Template:Basepage subpage: This is a meta-template, when it is used it will become high-risk. ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
imported>Davidgothberg (Adding {{pp-template}} and a code comment.) |
||
Line 5: | Line 5: | ||
| {{lc: {{{demospace}}} }} <!--Use lower case "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--> |
| {{#if:{{#titleparts:{{FULLPAGENAME}}|0|2}} | | {{#if:{{#titleparts:{{FULLPAGENAME}}|0|2}} | ||
| subpage | | subpage | ||
Line 14: | Line 14: | ||
| basepage = {{{1|}}} | | basepage = {{{1|}}} | ||
| subpage = {{{2|}}} | | subpage = {{{2|}}} | ||
− | | subsubpage = {{{3| {{{2|}}} }}} | + | | subsubpage = {{{3| {{{2|}}} }}} <!--Respecting empty parameter on purpose--> |
− | | #default = <!-- Faulty demospace parameter, do nothing | + | | #default = <!--Faulty demospace parameter, do nothing--> |
}}<!--End switch--><noinclude> | }}<!--End switch--><noinclude> | ||
− | + | {{pp-template}} | |
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |