Kentsmith9 (talk | contribs) (Copied template from Wikipedia) |
Kentsmith9 (talk | contribs) (Test to display main namespace) |
||
Line 3: | Line 3: | ||
|{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}} | |{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}} | ||
|In this {{NAMESPACE}}space | |In this {{NAMESPACE}}space | ||
|Pages with the prefix '{{{1|{{PAGENAME}}}}}' in the '{{{2|{{SUBJECTSPACE}}}}}' and '{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}' namespaces | |Pages with the prefix '{{{1|{{PAGENAME}}}}}' in the <!-- | ||
-->{{#if:{{{2|{{SUBJECTSPACE}}}}}|'{{{2|{{SUBJECTSPACE}}}}}'|'Main'<!-- | |||
-->}} and '{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}' namespaces | |||
}}: | }}: | ||
}}}<!-- | }}}<!-- |
Latest revision as of 15:53, 9 March 2014
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|North Carolina|main}}
Pages with the prefix 'North Carolina' in the 'main' and 'main talk' namespaces:
main:
main talk:
See also
- {{subpages}} (link to subpage index)
- {{user subpages}} (similar template with different formatting)
The above documentation is transcluded from Template:List subpages/doc. Please add categories to the /doc subpage. Subpages of this template. |