Template:List subpages/doc
This is a documentation subpage for Template:List subpages. It contains usage information, categories, and other content that is not part of the original template page. |
This template lists all pages in a given namespace and prefix (User:Pathoschild is used on this page as an example). All parameters are optional, and default to the current page name, namespace, and corresponding talk space. If a different content namespace is provided but not a talk namespace, it will (accurately) guess it by appending " talk".
{{List subpages}} {{List subpages|prefix}} {{List subpages|prefix|content namespace}} {{List subpages|prefix|content namespace|talk namespace}}
TemplateData
[edit]TemplateData for List subpages
This template lists all pages in a given namespace and prefix.
Parameter | Description | Type | Status | |
---|---|---|---|---|
prefix | 1 | The prefix to list pages with, without namespace (e.g. “Pathoschild” to list pages beginning with “User:Pathoschild” and “User talk:Pathoschild”), by default the current page name without namespace | Line | optional |
content namespace | 2 | The content namespace to list (e.g. “User” to list pages beginning with “User:Pathoschild” and “User talk:Pathoschild”), by default the current namespace for content pages and its corresponding content namespace for talk pages | Line | optional |
talk namespace | 3 | The talk namespace to list, by default the talk namespace corresponding to the content namespace | Line | optional |