Template:Subpage: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{1|}}}|[[{{# | <includeonly>{{#if: {{{1|}}}|[[{{#switch: {{trim|{{lc:{{{2|}}}}}}} | ||
| prev={{#titleparts: {{FULLPAGENAME}}|-1}}/{{trim|{{{text|{{{1}}}}}}}} | |||
| uprev={{#titleparts: {{FULLPAGENAME}}|-1}}/{{ucfirst:{{trim|{{{text|{{{1}}}}}}}}}} | |||
| #default={{FULLPAGENAME}}/{{trim|{{{text|{{{1}}}}}}}} | |||
}}]]|}}</includeonly><noinclude> | |||
This template provides a link to a page's subpages without having to manually type out the name of the page or subpage. On the Xenharmonic Wiki, many page titles contain slashes, such as [[3/2]], that do not indicate subpages, so automatic subpages in the main (article) namespace are disabled. | This template provides a link to a page's subpages without having to manually type out the name of the page or subpage. On the Xenharmonic Wiki, many page titles contain slashes, such as [[3/2]], that do not indicate subpages, so automatic subpages in the main (article) namespace are disabled. | ||