Template:Subpages: Difference between revisions

From Snakeoil OS Reference
Jump to navigation Jump to search
en>Krinkle
(More useful default. For simple usage, one might as well use {{Special:}} directly)
 
m (1 revision imported)
(No difference)

Revision as of 18:14, 1 June 2019

Documentation icon Template documentation[view] [edit] [history] [purge]

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}}


fr:Modèle:sous-pages