Difference between revisions of "Template:Subpages"

From
Jump to: navigation, search
m
m
Line 1: Line 1:
<noinclude>Prints the subpages of the current page.
+
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 small">
+
<div class="mbox">'''Subpages'''
    {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
+
    {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
 
</div>
 
</div>
</noinclude>
 
  
 +
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:

Template code starts here.