Difference between revisions of "Template:When on basepage"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
Aeverinezinn (talk | contribs) m (1 revision) |
(Creating this basepage/subpage/subsubpage detecting template.) |
||
(12 intermediate revisions by 7 users not shown) | |||
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. --> |
| {{#if:{{#titleparts:{{FULLPAGENAME}}|0|2}} | | {{#if:{{#titleparts:{{FULLPAGENAME}}|0|2}} | ||
| subpage | | subpage | ||
Line 18: | Line 12: | ||
}} | }} | ||
}} | }} | ||
+ | | basepage = {{{1|}}} | ||
+ | | subpage = {{{2|}}} | ||
+ | | subsubpage = {{{3| {{{2|}}} }}} | ||
+ | | #default = <!-- Faulty demospace parameter, do nothing. --> | ||
+ | }}<!--End switch--><noinclude> | ||
− | + | <!-- {{pp-template}} --> | |
− | + | {{documentation}} | |
− | + | <!-- Add categories and interwikis to the /doc subpage, not here! --> | |
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 19:49, 3 November 2009
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |