Jump to content

Template:List subpages/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 455577623 by WlaKom (talk)
 
(15 intermediate revisions by 10 users not shown)
Line 3: Line 3:
{{Wikibooks|Template:AutoTOC}}
{{Wikibooks|Template:AutoTOC}}
==Usage==
==Usage==
This template lists all pages in a given namespace and prefix (see [[#Example|Example]]). All parameters are optional, and default to the current page name, namespace, and corresponding talk space.
This template lists all pages in a given namespace and prefix (see {{section link||Example}}). All parameters are optional, and default to the current page name, namespace, and corresponding talk space.


<pre>{{List subpages|prefix|content namespace|caption=Foo}}</pre>
<syntaxhighlight lang="wikitext">{{List subpages|prefix|content namespace|caption=Foo}}</syntaxhighlight>


==Example==
==Example==
<pre>{{list subpages|Pathoschild|User}}</pre>
<syntaxhighlight lang="wikitext">{{list subpages|Pathoschild|User}}</syntaxhighlight>
{{list subpages|Pathoschild|User}}
{{list subpages|Pathoschild|User}}


==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==
* {{tl|subpages}} (link to subpage index)
* {{tl|subpages}} (link to subpage index)
* {{tl|user subpages}} (similar template with different formatting)
* {{tl|user subpages}} (similar template with different formatting)
* [[Special:PrefixIndex]]: the source of this information


<includeonly>
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
{{DEFAULTSORT:List subpages}}
{{DEFAULTSORT:List subpages}}
[[Category:Search templates]]
[[Category:Search templates]]
[[Category:Wikipedia formatting and function templates]]
[[Category:Wikipedia formatting templates]]
[[Category:Wikipedia subpage templates]]

<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[ja:Template:subpages]]

</includeonly>
}}</includeonly>

Latest revision as of 18:23, 15 October 2024

Usage

[edit]

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

[edit]
{{list subpages|Pathoschild|User}}

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

User:

Editing this template

[edit]

TemplateData

[edit]
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

See also

[edit]