Difference between revisions of "Template:Subpages"
m |
m |
||
Line 1: | Line 1: | ||
− | + | Prints the subpages of the current page. | |
+ | |||
+ | The syntax... | ||
<nowiki>{{Subpages|heading}}</nowiki> | <nowiki>{{Subpages|heading}}</nowiki> | ||
Line 15: | Line 17: | ||
outputs the following: | outputs the following: | ||
− | <div class="mbox | + | <div class="mbox">'''Subpages''' |
− | + | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | |
</div> | </div> | ||
− | |||
+ | Template code starts here. | ||
+ | ---- | ||
+ | |||
+ | <onlyinclude> | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
| heading = =Subpages= | | heading = =Subpages= | ||
− | | mbox = <div class="mbox"> '''Subpages''' | + | | mbox = <div class="mbox small"> '''Subpages''' |
}} | }} | ||
Line 28: | Line 33: | ||
{{#if:{{{mbox}}} | </div> | }} | {{#if:{{{mbox}}} | </div> | }} | ||
+ | </onlyinclude> |
Revision as of 06:44, 27 August 2020
Prints the subpages of the current page.
The syntax...
{{Subpages|heading}}
outputs the following:
Subpages
...while...
{{Subpages|mbox}}
outputs the following:
Subpages
Template code starts here.