Difference between revisions of "Template:Subpages"

From
Jump to: navigation, search
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=
  | bordered = <div style="width:30%; border:1px solid #D3D3D3; padding:5px;"> '''Subpages'''
+
  | mbox = <div class="mbox"> '''Subpages'''
 
}}
 
}}
  
 
{{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
 
{{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
  
{{#if:{{{bordered}}} | </div> | }}
+
{{#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...