Template:List subpages: Difference between revisions
From Black Cat Studios
Jump to navigationJump to search
en>Aseleste (edit: template: from Special:Permalink/1024588911) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="border:1px solid #CCC;"> | <noinclude> | ||
<languages /> | |||
</noinclude><div style="border:1px solid #CCC;"> | |||
{{{caption | {{{caption | ||
|{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}} | |{{#ifeq:{{{2|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}|{{FULLPAGENAME}} | ||
|In this | |<translate><!--T:1--> In this {{NAMESPACE}}space:</translate> | ||
|Pages with the prefix '{{{1|{{PAGENAME}}}}}' in the ' | |<translate><!--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:</translate> | ||
}} | }} | ||
}}}<!-- | }}}<!-- | ||
--> | --><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}}}}}/}} | }} | ||
</div> | {{Special:Prefixindex/{{{2|{{SUBJECTSPACE}}}}}:{{{1|{{PAGENAME}}}}}/}} | ||
</div> | |||
<div style="padding:2px; font-size:0.9em;">{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{#ifexist:{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{{1|{{PAGENAME}}}}} | |||
|<table><tr><td>[[{{#if:{{{2|}}}|{{{2}}} talk|{{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}}}}}/}} | }} | ||
</div>|}}</ | {{Special:Prefixindex/{{#if:{{{2|}}}|{{{2}}} talk|{{TALKSPACE}}}}:{{{1|{{PAGENAME}}}}}/}} | ||
{{ | </div></div><noinclude> | ||
{{Documentation|content= | |||
{{Intricate template}} | |||
<translate> | |||
== Usage == <!--T:3--> | |||
</translate> | |||
<translate><!--T:4--> This template lists all pages in a given namespace and prefix (see [[<tvar name=1>#Example</tvar>|Example]]).</translate> | |||
<translate><!--T:5--> All parameters are optional, and default to the current page name, namespace, and corresponding talk space.</translate> | |||
<pre>{{List subpages|prefix|content namespace|caption=Foo}}</pre> | |||
{{anchor|Example}} | |||
<translate> | |||
== Example == <!--T:6--> | |||
</translate> | |||
<pre>{{list subpages|Ollieinc|User}}</pre> | |||
{{list subpages|Ollieinc|User}} | |||
<translate> | |||
==See also== <!--T:7--> | |||
</translate> | |||
* {{tl|subpages}} - <translate><!--T:8--> link to subpage index</translate> | |||
[[Category:Search templates{{#translation:}}]] | |||
[[Category:Formatting templates{{#translation:}}]] | |||
}} | |||
</noinclude> | </noinclude> |
Latest revision as of 02:29, 20 June 2023
<languages />
Template documentation
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. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
<translate>
Usage
</translate> <translate> This template lists all pages in a given namespace and prefix (see [[<tvar name=1>#Example</tvar>|Example]]).</translate> <translate> All parameters are optional, and default to the current page name, namespace, and corresponding talk space.</translate>
{{List subpages|prefix|content namespace|caption=Foo}}
<translate>
Example
</translate>
{{list subpages|Ollieinc|User}}
<translate> Pages with the prefix '<tvar name=1>Ollieinc</tvar>' in the '<tvar name=2>User</tvar>' and '<tvar name=3>User talk</tvar>' namespaces:</translate>
User:
User talk:
<translate>
See also
</translate>
- {{subpages}} - <translate> link to subpage index</translate>
[[Category:Search templates{{#translation:}}]] [[Category:Formatting templates{{#translation:}}]]