Template:List subpages/doc

Usage

This template lists all pages in a given namespace and prefix (see § Example). All parameters are optional, and default to the current page name, namespace, and corresponding talk space.

{{List subpages|prefix|content namespace|caption=Foo}}

Example

{{list subpages|Pathoschild|User}}

Pages with the prefix 'Pathoschild' in the 'User' and 'User talk' namespaces:

User:

Strip prefix option example

Setting |stripprefix=1 will remove the common prefix from being displayed as below.

{{list subpages|Pathoschild|User|stripprefix=1}}

Pages with the prefix 'Pathoschild' in the 'User' and 'User talk' namespaces:

User talk:
Pathoschild

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:List subpages in articles based on its TemplateData.

TemplateData for List subpages

List all pages in a given namespace and prefix.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Prefix1

no description

Default
The name of the page on which the template is placed.
Page nameoptional
Content namespace2

no description

Default
The namespace name.
Stringoptional
Captioncaption

no description

Unknownoptional
Strip prefixstripprefix

If set this will remove the common prefix from all listed pages

Booleanoptional

See also

  • {{subpages}} (link to subpage index)
  • {{user subpages}} (similar template with different formatting)
  • {{PrefixIndex}}
  • Special:PrefixIndex: the source of this information