Difference between revisions of "Template:Subpages"
m |
(Added instructions and examples.) |
||
Line 1: | Line 1: | ||
+ | <noinclude>Prints the subpages of the current page. | ||
+ | |||
+ | <nowiki>{{Subpages|heading}}</nowiki> | ||
+ | |||
+ | outputs... | ||
+ | |||
+ | =Subpages= | ||
+ | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | ||
+ | |||
+ | |||
+ | while | ||
+ | |||
+ | <nowiki>{{Subpages|mbox}}</nowiki> | ||
+ | |||
+ | outputs... | ||
+ | |||
+ | <div class="mbox small"> | ||
+ | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | ||
+ | </div> | ||
+ | </noinclude> | ||
+ | |||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
| heading = =Subpages= | | heading = =Subpages= | ||
− | | | + | | mbox = <div class="mbox"> '''Subpages''' |
}} | }} | ||
{{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | ||
− | {{#if:{{{ | + | {{#if:{{{mbox}}} | </div> | }} |
Revision as of 06:40, 27 August 2020
Prints the subpages of the current page.
{{Subpages|heading}}
outputs...
Subpages
while
{{Subpages|mbox}}
outputs...