Difference between revisions of "Template:Subpages"
(Added instructions and examples.) |
m |
||
(11 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> | <nowiki>{{Subpages|heading}}</nowiki> | ||
− | outputs | + | outputs the following: |
=Subpages= | =Subpages= | ||
Line 9: | Line 16: | ||
− | while | + | ...while... |
<nowiki>{{Subpages|mbox}}</nowiki> | <nowiki>{{Subpages|mbox}}</nowiki> | ||
− | outputs | + | outputs the following: |
− | <div class="mbox small"> | + | <div class="mbox small">'''Subpages''' |
− | + | {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}} | |
</div> | </div> | ||
− | |||
+ | =Wikitext= | ||
+ | |||
+ | ''Transclusion starts from here.'' | ||
+ | |||
+ | <onlyinclude> | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
| heading = =Subpages= | | heading = =Subpages= | ||
− | | mbox = <div class="mbox"> '''Subpages''' | + | | mbox = <div class="mbox small"> '''Subpages''' |
}} | }} | ||
Line 28: | Line 39: | ||
{{#if:{{{mbox}}} | </div> | }} | {{#if:{{{mbox}}} | </div> | }} | ||
+ | </onlyinclude> |