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|}}}|{{!((}}{{#ifeq: {{{1|}}}|prev|{{#titleparts: {{FULLPAGENAME}}|-1}}|{{#switch: {{trim|{{lc:{{{2|}}}}}}} | ||
| prev={{#titleparts: {{FULLPAGENAME}}|-1}}/{{trim|{{{1}}}}} | | prev={{#titleparts: {{FULLPAGENAME}}|-1}}/{{trim|{{{1}}}}} | ||
| lprev={{#titleparts: {{FULLPAGENAME}}|-1}}/{{lcfirst:{{trim|{{{1}}}}}}} | | lprev={{#titleparts: {{FULLPAGENAME}}|-1}}/{{lcfirst:{{trim|{{{1}}}}}}} | ||
Line 6: | Line 6: | ||
| u={{FULLPAGENAME}}/{{ucfirst:{{trim|{{{1}}}}}}} | | u={{FULLPAGENAME}}/{{ucfirst:{{trim|{{{1}}}}}}} | ||
| #default={{FULLPAGENAME}}/{{trim|{{{1}}}}} | | #default={{FULLPAGENAME}}/{{trim|{{{1}}}}} | ||
}}}}{{#if: {{{s|}}}|#{{ucfirst:{{{s}}}}}|}}|{{trim|{{{text|{{{s|{{{1}}}}}}}}}}} | }}}}{{#if: {{{s|}}}|#{{ucfirst:{{{s}}}}}|}}|{{trim|{{{text|{{{s|{{{1}}}}}}}}}}}{{))!}}|}}</includeonly><noinclude> | ||
This template provides a link to a page's subpages without having to manually type out the name of the page | This template provides a link to a page's subpages without having to manually type out the name of the page each time. To prevent slashes that do not indicate subpages from being misinterpreted as subpage separators, MediaWiki's [[mw:Help:Subpages|automatic subpage]] feature is disabled by default in the main (article) namespace, and on the Xenharmonic Wiki slashes frequently appear in page titles, such as [[3/2]]. | ||
{{documentation}} | {{documentation}} |