Difference between revisions of "Template:Subpages"
m |
m |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | __NOTOC__ |
+ | =Function= | ||
+ | |||
+ | Prints the subpages of the current page. | ||
+ | |||
+ | =Syntax= | ||
+ | |||
+ | Writing... | ||
+ | |||
+ | <nowiki>{{Subpages|heading}}</nowiki> | ||
+ | |||
+ | outputs the following: | ||
+ | |||
=Subpages= | =Subpages= | ||
− | {{Special:Prefixindex/{{{{{SUBJECTSPACE}}}}} | + | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} |
− | | }} | + | |
+ | |||
+ | ...while... | ||
+ | |||
+ | <nowiki>{{Subpages|mbox}}</nowiki> | ||
+ | |||
+ | outputs the following: | ||
+ | |||
+ | <div class="mbox small">'''Subpages''' | ||
+ | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | ||
+ | </div> | ||
+ | |||
+ | =Wikitext= | ||
+ | |||
+ | ''Transclusion starts from here.'' | ||
+ | |||
+ | <onlyinclude> | ||
+ | {{#switch: {{{1}}} | ||
+ | | heading = =Subpages= | ||
+ | | mbox = <div class="mbox small"> '''Subpages''' | ||
+ | }} | ||
+ | |||
+ | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | ||
+ | |||
+ | {{#if:{{{mbox}}} | </div> | }} | ||
+ | </onlyinclude> |