Template:List subpages: Difference between revisions

From Linguifex
Jump to navigation Jump to search
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}}}}}' and '{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}' namespaces
     |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}}}}}:{{{1|{{PAGENAME}}}}}
{{#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}}}}}:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]</td></tr></table>
   |<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

In this templatespace:

Template talk:

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

See also

ja:Template:subpages