Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:List subpages: Difference between revisions

Template page
Arin Mara (talk | contribs)
Created a template that lists subpages of a page
 
Arin Mara (talk | contribs)
Removed parser extension tags for translation
 
Line 3: Line 3:
   |{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}}
   |{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}}
     |<!--T:1--> In this {{NAMESPACE}}space:
     |<!--T:1--> In this {{NAMESPACE}}space:
     |<!--T:2--> Pages with the prefix '<tvar name=1>{{{1|{{PAGENAME}}}}}</tvar>' in the '<tvar name=2>{{{2|{{SUBJECTSPACE}}}}}</tvar>' and '<tvar name=3>{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}</tvar>' namespaces:
     |<!--T:2--> Pages with the prefix '{{{1|{{PAGENAME}}}}}' in the '{{{2|{{SUBJECTSPACE}}}}}' and '{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}' namespaces:
   }}
   }}
}}}<!--
}}}<!--

Latest revision as of 14:54, 13 April 2022

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to show all subpages of a page.
Syntax
Type {{list subpages|<prefix>|<content namespace>|<caption>}} somewhere.
Parameters
prefix
Page name. Defaults to current page.
content namespace
Namespace name. Defaults to current namespace.
caption
Unknown
Sample output
{{list subpages|Arin Mara|User}}
gives...

Pages with the prefix 'Arin Mara' in the 'User' and 'User talk' namespaces:

See also
Visit Template:List subpages/doc to edit this text! (How does this work?) (Refresh this text - why?)