Difference between revisions of "Template:Subpages"

From
Jump to: navigation, search
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch:
+
__NOTOC__
| heading = =Subpages=
+
=Function=
| bordered = <div style="border:1px solid #D3D3D3; padding:5px;">
+
 
 +
Prints the subpages of the current page.
 +
 
 +
=Syntax=
 +
 
 +
Writing...
 +
 
 +
<nowiki>{{Subpages|heading}}</nowiki>
 +
 
 +
outputs the following:
 +
 
 +
=Subpages=
 +
{{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
 +
 
 +
 
 +
...while...
 +
 
 +
<nowiki>{{Subpages|mbox}}</nowiki>
 +
 
 +
outputs the following:
 +
 
 +
<div class="mbox small">'''Subpages'''
 +
    {{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
 +
</div>
 +
 
 +
=Wikitext=
 +
 
 +
''Transclusion starts from here.''
 +
 
 +
<onlyinclude>
 +
{{#switch: {{{1}}}
 +
| heading = =Subpages=
 +
| mbox = <div class="mbox small"> '''Subpages'''
 
}}
 
}}
  
 
{{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
 
{{Special:Prefixindex/{{SUBJECTSPACE}}:{{PAGENAME}}/}}
  
{{#if:{{{bordered}}} | </div> | }}
+
{{#if:{{{mbox}}} | </div> | }}
 +
</onlyinclude>

Latest revision as of 08:07, 27 August 2020

Function[edit]

Prints the subpages of the current page.

Syntax[edit]

Writing...

{{Subpages|heading}}

outputs the following:

Subpages[edit]


...while...

{{Subpages|mbox}}

outputs the following:

Wikitext[edit]

Transclusion starts from here.