Difference between revisions of "Template:List subpages/doc"

From blackwiki
Jump to navigation Jump to search
imported>Ollieinc
imported>Samwilson
(add templatedata)
Line 13: Line 13:
 
==Editing this template==
 
==Editing this template==
 
{{esoteric}}
 
{{esoteric}}
 +
 +
==TemplateData==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Prefix",
 +
"type": "wiki-page-name",
 +
"default": "The name of the page on which the template is placed."
 +
},
 +
"2": {
 +
"label": "Content namespace",
 +
"type": "string",
 +
"default": "The namespace name."
 +
},
 +
"caption": {
 +
"label": "Caption"
 +
}
 +
},
 +
"description": "List all pages in a given namespace and prefix.",
 +
"format": "inline"
 +
}
 +
</templatedata>
  
 
==See also==
 
==See also==

Revision as of 08:36, 14 May 2019

Template:Wikibooks

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 'Script error: No such module "If empty".' and 'User talk' namespaces:

User:

User talk:

Editing this template

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.
Pageoptional
Content namespace2

no description

Default
The namespace name.
Stringoptional
Captioncaption

no description

Unknownoptional

See also