Template:List subpages/doc: Difference between revisions
Appearance
Content deleted Content added
m Moving Category:Wikipedia utility templates to Category:Wikipedia formatting templates per Wikipedia:Categories for discussion/Log/2024 August 19#Category:Wikipedia utility templates |
|||
(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 |
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. |
||
< |
<syntaxhighlight lang="wikitext">{{List subpages|prefix|content namespace|caption=Foo}}</syntaxhighlight> |
||
==Example== |
==Example== |
||
< |
<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 |
[[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
This is a documentation subpage for Template:List subpages. It may contain usage information, categories and other content that is not part of the original template page. |
Wikibooks has a book on the topic of: Template:AutoTOC
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:
- Pathoschild/AOL proxy talk pages
- Pathoschild/Blocked users
- Pathoschild/Blocked users/001
- Pathoschild/Blocked users/002
- Pathoschild/Blocked users/003
- Pathoschild/Blocked users/004
- Pathoschild/Blocked users/005
- Pathoschild/Blocked users/006
- Pathoschild/Blocked users/header
- Pathoschild/Blocked users/template
- Pathoschild/Commission de consultation sur les pratiques d'accommodement reliées aux différences culturelles
- Pathoschild/Double-standard fallacy
- Pathoschild/Help/Template special effects
- Pathoschild/Projects/Template substitution
- Pathoschild/Sandbox
- Pathoschild/Sandbox4
- Pathoschild/Sandbox5
- Pathoschild/Template:Deprecated removed
- Pathoschild/Template:Extlink
- Pathoschild/Template:History
- Pathoschild/Template:Oldid
- Pathoschild/Template:Project
- Pathoschild/Template:Unsigned
- Pathoschild/Template:User page header
- Pathoschild/Template:Wikilink
- Pathoschild/Temporary userspaces
- Pathoschild/Verifications
- Pathoschild/common.js
- Pathoschild/regex.js
- Pathoschild/script/MOSNUM dates.js
- Pathoschild/script/MOSNUM utils.js
- Pathoschild/t/link
User talk:
Pathoschild |
Editing this template
[edit]This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Prefix | 1 | no description
| Page name | optional |
Content namespace | 2 | no description
| String | optional |
Caption | caption | no description | Unknown | optional |
See also
[edit]- {{subpages}} (link to subpage index)
- {{user subpages}} (similar template with different formatting)
- Special:PrefixIndex: the source of this information