Template:List subpages View history

(Copied template from Wikipedia)
 
(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

In this Templatespace:

Template talk:
Documentation icon Template documentation[view] [edit] [history] [purge]
When this template is placed on a talk page, it does not include the proper headings for the namespace, but does correctly show the pages in the primary and talk namespaces for the namespace in which it is located.

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

The above documentation is transcluded from Template:List subpages/doc.
Please add categories to the /doc subpage.
Subpages of this template.