Difference between revisions of "Template:Basepage subpage"
Jump to navigation
Jump to search
Template documentation[create]
Wikpedia>Godsy (Template:This is a redirect has been deprecated, change to Template:Redirect category shell.) |
Joelmartin (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | # | + | {{#switch: |
+ | <!--If no or empty "page" parameter then detect | ||
+ | basepage/subpage/subsubpage--> | ||
+ | {{#if:{{{page|}}} | ||
+ | | {{#if:{{#titleparts:{{{page}}}|0|3}} | ||
+ | | subsubpage <!--Subsubpage or lower--> | ||
+ | | {{#if:{{#titleparts:{{{page}}}|0|2}} | ||
+ | | subpage | ||
+ | | basepage | ||
+ | }} | ||
+ | }} | ||
+ | | {{#if:{{#titleparts:{{FULLPAGENAME}}|0|3}} | ||
+ | | subsubpage <!--Subsubpage or lower--> | ||
+ | | {{#if:{{#titleparts:{{FULLPAGENAME}}|0|2}} | ||
+ | | subpage | ||
+ | | basepage | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
− | {{ | + | | basepage = {{{1|}}} |
− | {{ | + | | subpage = {{{2|}}} |
− | {{ | + | | subsubpage = {{{3| {{{2|}}} }}} <!--Respecting empty parameter on purpose--> |
− | }} | + | }}<!--End switch--><noinclude> |
+ | |||
+ | {{documentation}} | ||
+ | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
+ | </noinclude> |
Latest revision as of 00:09, 3 December 2019
