Template:List subpages: Difference between revisions
Jump to navigation
Jump to search
Chrysophylax (talk | contribs) m (1 revision: Subpage listing) |
No edit summary |
||
Line 2: | Line 2: | ||
{{{caption | {{{caption | ||
|{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}} | |{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}} | ||
|In this {{NAMESPACE}}space | |In this {{lcfirst:{{NAMESPACE}}}}space | ||
|Pages with the prefix '{{{1|{{PAGENAME}}}}}' in the '{{{2|{{SUBJECTSPACE | |Pages with the prefix '{{{1|{{PAGENAME}}}}}' in the '{{if empty|{{{2|}}}|{{SUBJECTSPACE}}}}' and '{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}' namespaces | ||
}}: | }}: | ||
}}}<!-- | }}}<!-- | ||
--><div style="margin-bottom:-1px; padding:0.1em; border-bottom:1px solid #CCC; font-size:0.9em;"> | -->{{#ifeq:{{YesNo-No|{{{no subject namespace|}}}}}|no|<div style="margin-bottom:-1px; padding:0.1em; border-bottom:1px solid #CCC; font-size:0.9em;"> | ||
{{{2|{{SUBJECTSPACE}}}}}:{{#ifexist:{{{2|{{SUBJECTSPACE}}}}}:{{{1|{{PAGENAME}}}}} | {{{2|{{SUBJECTSPACE}}}}}:{{#ifexist:{{{2|{{SUBJECTSPACE}}}}}:{{{1|{{PAGENAME}}}}} | ||
|<table><tr><td>[[{{{2|{{SUBJECTSPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]</td></tr></table> | |<table><tr><td>[[{{{2|{{SUBJECTSPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]</td></tr></table> | ||
}}{{Special:Prefixindex/{{{2|{{SUBJECTSPACE}}}}}:{{{1|{{PAGENAME}}}}}/}} | }}{{Special:Prefixindex/{{{2|{{SUBJECTSPACE}}}}}:{{{1|{{PAGENAME}}}}}/}} | ||
</div> | </div>|}} | ||
<div style="padding:2px; font-size:0.9em;">{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{#ifexist:{{{2|{{TALKSPACE | {{#ifeq:{{YesNo-No|{{{no talk namespace|}}}}}|no|<div style="padding:2px; font-size:0.9em;">{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{#ifexist:{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{{1|{{PAGENAME}}}}} | ||
|<table><tr><td>[[{{{2|{{TALKSPACE | |<table><tr><td>[[{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]</td></tr></table> | ||
}}{{Special:Prefixindex/{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{{1|{{PAGENAME}}}}}/}} | }}{{Special:Prefixindex/{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{{1|{{PAGENAME}}}}}/}} | ||
</div></div><noinclude> | </div>|}}</div><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:07, 10 December 2023
- The following documentation is located at Template:List subpages/doc. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Wikibooks has a book on the topic of: Template:AutoTOC |
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|Pathoschild|User}}
Pages with the prefix 'Pathoschild' in the 'User' and 'User talk' namespaces:
User:
User talk:
Editing this template
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. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
See also
{{subpages}}
(link to subpage index){{user subpages}}
(similar template with different formatting)