Template:Subpages: Difference between revisions
Jump to navigation
Jump to search
Agent Kith (talk | contribs) No edit summary |
Agent Kith (talk | contribs) (Undo revision 98 by Agent Kith (talk)) Tag: Undo |
||
Line 1: | Line 1: | ||
<div style="font-size:90%;"> | <div style="font-size:90%;"> | ||
{{Special:Prefixindex/{{{1|{{#if: {{#translation:}}|{{FULLPAGENAMEE}} }}}}}/ | {{Special:Prefixindex/{{{1|{{#if: {{#translation:}}|{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}} }}}}}/ | ||
|hideredirects=1 | |hideredirects=1 | ||
}} | }} | ||
</div><noinclude>{{documentation}}</noinclude> | </div><noinclude>{{documentation}}</noinclude> |
Latest revision as of 08:42, 2 June 2019
Usage
{{subpages}} shows all the subpages of a given page. It should not be used in the main namespace, only on pages such as user pages, Wiktionary pages and appendices. It takes one, optional parameter, the target page name. The default is {{PAGENAME}}
- {{subpages}}: shows the subpages for the current page (in this case, Template:subpages)
- {{subpages|User:Example}}: shows the subpages for User:Example
Alternative
You can also embed the Special:PrefixIndex directly, e.g.
{{Special:Prefixindex|prefix=User:Example/|hideredirects=1|stripprefix=1}}
The above documentation is transcluded from Template:Subpages/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |