Template:Subpages: Difference between revisions

From Step Mods | Change The Game
mNo edit summary
mNo edit summary
Line 3: Line 3:
| hideredirects=1
| hideredirects=1
| stripprefix=1
| stripprefix=1
}}</div></includeonly><noinclude>[[Category:Administrative Templates]][[Category:Layout Templates]]
}}
</div></includeonly><noinclude>[[Category:Administrative Templates]][[Category:Layout Templates]]
===Purpose & Usage===
===Purpose & Usage===
<code><nowiki>{{subpages}}</nowiki></code> 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 <nowiki>{{PAGENAME}}</nowiki>
<code><nowiki>{{subpages}}</nowiki></code> 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 <nowiki>{{PAGENAME}}</nowiki>

Revision as of 15:19, September 21, 2021

Purpose & 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