Template:Subpagelist/doc

From MozillaWiki
Jump to: navigation, search
Edit-copy green.svg
This is a documentation subpage for Template:Subpagelist.
It contains usage information, categories and other content that is not part of the original template page.

Usage

{{subpagelist}} lists all subpages of the current page, or for a custom MozillaWiki page.

Note
  • If the target page doesn't have any subpages, the template will be hidden, taking up one row worth of space. The first example in the example list below will show the page Subpagelist/doc if you read the documentation on the template's main page, but be empty if you instead read the documentation on the template's documentation page Template:Subpagelist/doc.

Parameters

There is only 1 parameter, which is unnamed and optional.

Syntax

The template's syntax is

  • {{subpagelist|custom page}}

Optional parameter

1

Custom MozillaWiki page

If you want to display the subpages of another page than the current one, you can enter the name of that page as the 1st parameter. The parameter is unnamed, so no parameter name needs to be entered.

Note
  • You must specify the full name of the page which subpages you want to display, including any namespace and subpage parts.
Usage
  • {{subpagelist|custom page}}

Examples

A. No parameter

{{subpagelist}} gives


B. Page

{{subpagelist|AUS}} gives

C. Page incl. namespace

{{subpagelist|Template:Admon}} gives

D. Page incl. subpage

{{subpagelist|Identity/Security}} gives