Template:A-Z multipage list and Template:A-Z multipage list/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
m (1 revision)
 
(Change)
 
Line 1: Line 1:
{{TOC top|title={{{title|[[{{{1}}}]]}}}|align={{{align|}}}}}
{{TOC top|title=[[{{{1}}}]]}}
{{#switch:{{{format}}}|()=
{{#switch:{{{format}}}|()={{#ifexist:{{{1}}} (A)|
* {{#if:{{{t1|}}}|{{#ifexist:{{{1}}} ({{{t1}}})| [[{{{1}}} ({{{t1}}})|{{{t1}}}]]}} }}
* [[{{{1}}} (A)|A]]|A}} {{#ifexist:{{{1}}} (B)|
* {{#if:{{{t2|}}}|{{#ifexist:{{{1}}} ({{{t2}}})| [[{{{1}}} ({{{t2}}})|{{{t2}}}]]}} }}
* [[{{{1}}} (B)|B]]|B}} {{#ifexist:{{{1}}} (C)|
* {{#ifexist:{{{1}}} (!$@)| [[{{{1}}} (!$@)|!$@]]}}
* [[{{{1}}} (C)|C]]|C}} {{#ifexist:{{{1}}} (D)|
* {{#ifexist:{{{1}}} (0–9)| [[{{{1}}} (0–9)|0–9]]}}
* [[{{{1}}} (D)|D]]|D}} {{#ifexist:{{{1}}} (E)|
* {{#ifexist:{{{1}}} (A)| [[{{{1}}} (A)|A]]|A}}
* [[{{{1}}} (E)|E]]|E}} {{#ifexist:{{{1}}} (F)|
* {{#ifexist:{{{1}}} (B)| [[{{{1}}} (B)|B]]|B}}
* [[{{{1}}} (F)|F]]|F}} {{#ifexist:{{{1}}} (G)|
* {{#ifexist:{{{1}}} (C)| [[{{{1}}} (C)|C]]|C}}
* [[{{{1}}} (G)|G]]|G}} {{#ifexist:{{{1}}} (H)|
* {{#ifexist:{{{1}}} (D)| [[{{{1}}} (D)|D]]|D}}
* [[{{{1}}} (H)|H]]|H}} {{#ifexist:{{{1}}} (I)|
* {{#ifexist:{{{1}}} (E)| [[{{{1}}} (E)|E]]|E}}
* [[{{{1}}} (I)|I]]|I}} {{#ifexist:{{{1}}} (J)|
* {{#ifexist:{{{1}}} (F)| [[{{{1}}} (F)|F]]|F}}
* [[{{{1}}} (J)|J]]|J}} {{#ifexist:{{{1}}} (K)|
* {{#ifexist:{{{1}}} (G)| [[{{{1}}} (G)|G]]|G}}
* [[{{{1}}} (K)|K]]|K}} {{#ifexist:{{{1}}} (L)|
* {{#ifexist:{{{1}}} (H)| [[{{{1}}} (H)|H]]|H}}
* [[{{{1}}} (L)|L]]|L}} {{#ifexist:{{{1}}} (M)|
* {{#ifexist:{{{1}}} (I)| [[{{{1}}} (I)|I]]|I}}
* [[{{{1}}} (M)|M]]|M}} {{#ifexist:{{{1}}} (N)|
* {{#ifexist:{{{1}}} (J)| [[{{{1}}} (J)|J]]|J}}
* [[{{{1}}} (N)|N]]|N}} {{#ifexist:{{{1}}} (O)|
* {{#ifexist:{{{1}}} (K)| [[{{{1}}} (K)|K]]|K}}
* [[{{{1}}} (O)|O]]|O}} {{#ifexist:{{{1}}} (P)|
* {{#ifexist:{{{1}}} (L)| [[{{{1}}} (L)|L]]|L}}
* [[{{{1}}} (P)|P]]|P}} {{#ifexist:{{{1}}} (Q)|
* {{#ifexist:{{{1}}} (M)| [[{{{1}}} (M)|M]]|M}}
* [[{{{1}}} (Q)|Q]]|Q}} {{#ifexist:{{{1}}} (R)|
* {{#ifexist:{{{1}}} (N)| [[{{{1}}} (N)|N]]|N}}
* [[{{{1}}} (R)|R]]|R}} {{#ifexist:{{{1}}} (S)|
* {{#ifexist:{{{1}}} (O)| [[{{{1}}} (O)|O]]|O}}
* [[{{{1}}} (S)|S]]|S}} {{#ifexist:{{{1}}} (T)|
* {{#ifexist:{{{1}}} (P)| [[{{{1}}} (P)|P]]|P}}
* [[{{{1}}} (T)|T]]|T}} {{#ifexist:{{{1}}} (U)|
* {{#ifexist:{{{1}}} (Q)| [[{{{1}}} (Q)|Q]]|Q}}
* [[{{{1}}} (U)|U]]|U}} {{#ifexist:{{{1}}} (V)|
* {{#ifexist:{{{1}}} (R)| [[{{{1}}} (R)|R]]|R}}
* [[{{{1}}} (V)|V]]|V}} {{#ifexist:{{{1}}} (W)|
* {{#ifexist:{{{1}}} (S)| [[{{{1}}} (S)|S]]|S}}
* [[{{{1}}} (W)|W]]|W}} {{#ifexist:{{{1}}} (X)|
* {{#ifexist:{{{1}}} (T)| [[{{{1}}} (T)|T]]|T}}
* [[{{{1}}} (X)|X]]|X}} {{#ifexist:{{{1}}} (Y)|
* {{#ifexist:{{{1}}} (U)| [[{{{1}}} (U)|U]]|U}}
* [[{{{1}}} (Y)|Y]]|Y}} {{#ifexist:{{{1}}} (Z)|
* {{#ifexist:{{{1}}} (V)| [[{{{1}}} (V)|V]]|V}}
* [[{{{1}}} (Z)|Z]]|Z}}|:|#default={{#ifexist:{{{1}}}: A|
* {{#ifexist:{{{1}}} (W)| [[{{{1}}} (W)|W]]|W}}
* [[{{{1}}}: A|A]]|A}} {{#ifexist:{{{1}}}: B|
* {{#ifexist:{{{1}}} (X)| [[{{{1}}} (X)|X]]|X}}
* [[{{{1}}}: B|B]]|B}} {{#ifexist:{{{1}}}: C|
* {{#ifexist:{{{1}}} (Y)| [[{{{1}}} (Y)|Y]]|Y}}
* [[{{{1}}}: C|C]]|C}} {{#ifexist:{{{1}}}: D|
* {{#ifexist:{{{1}}} (Z)| [[{{{1}}} (Z)|Z]]|Z}}
* [[{{{1}}}: D|D]]|D}} {{#ifexist:{{{1}}}: E|
* {{#if:{{{b1|}}}|{{#ifexist:{{{1}}} ({{{b1}}})| [[{{{1}}} ({{{b1}}})|{{{b1}}}]]}} }}
* [[{{{1}}}: E|E]]|E}} {{#ifexist:{{{1}}}: F|
* {{#if:{{{b2|}}}|{{#ifexist:{{{1}}} ({{{b2}}})| [[{{{1}}} ({{{b2}}})|{{{b2}}}]]}} }}
* [[{{{1}}}: F|F]]|F}} {{#ifexist:{{{1}}}: G|
{{{footer|}}}
* [[{{{1}}}: G|G]]|G}} {{#ifexist:{{{1}}}: H|
|:|#default=
* [[{{{1}}}: H|H]]|H}} {{#ifexist:{{{1}}}: I|
* {{#if:{{{t1|}}}|{{#ifexist:{{{1}}}: {{{t1}}}| [[{{{1}}}: {{{t1}}}|{{{t1}}}]]}} }}
* [[{{{1}}}: I|I]]|I}} {{#ifexist:{{{1}}}: J|
* {{#if:{{{t2|}}}|{{#ifexist:{{{1}}}: {{{t2}}}| [[{{{1}}}: {{{t2}}}|{{{t2}}}]]}} }}
* [[{{{1}}}: J|J]]|J}} {{#ifexist:{{{1}}}: K|
* {{#ifexist:{{{1}}} (0–9)| [[{{{1}}}: 0–9|0–9]]}}
* [[{{{1}}}: K|K]]|K}} {{#ifexist:{{{1}}}: L|
* {{#ifexist:{{{1}}}: A| [[{{{1}}}: A|A]]|A}}
* [[{{{1}}}: L|L]]|L}} {{#ifexist:{{{1}}}: M|
* {{#ifexist:{{{1}}}: B| [[{{{1}}}: B|B]]|B}}
* [[{{{1}}}: M|M]]|M}} {{#ifexist:{{{1}}}: N|
* {{#ifexist:{{{1}}}: C| [[{{{1}}}: C|C]]|C}}
* [[{{{1}}}: N|N]]|N}} {{#ifexist:{{{1}}}: O|
* {{#ifexist:{{{1}}}: D| [[{{{1}}}: D|D]]|D}}
* [[{{{1}}}: O|O]]|O}} {{#ifexist:{{{1}}}: P|
* {{#ifexist:{{{1}}}: E| [[{{{1}}}: E|E]]|E}}
* [[{{{1}}}: P|P]]|P}} {{#ifexist:{{{1}}}: Q|
* {{#ifexist:{{{1}}}: F| [[{{{1}}}: F|F]]|F}}
* [[{{{1}}}: Q|Q]]|Q}} {{#ifexist:{{{1}}}: R|
* {{#ifexist:{{{1}}}: G| [[{{{1}}}: G|G]]|G}}
* [[{{{1}}}: R|R]]|R}} {{#ifexist:{{{1}}}: S|
* {{#ifexist:{{{1}}}: H| [[{{{1}}}: H|H]]|H}}
* [[{{{1}}}: S|S]]|S}} {{#ifexist:{{{1}}}: T|
* {{#ifexist:{{{1}}}: I| [[{{{1}}}: I|I]]|I}}
* [[{{{1}}}: T|T]]|T}} {{#ifexist:{{{1}}}: U|
* {{#ifexist:{{{1}}}: J| [[{{{1}}}: J|J]]|J}}
* [[{{{1}}}: U|U]]|U}} {{#ifexist:{{{1}}}: V|
* {{#ifexist:{{{1}}}: K| [[{{{1}}}: K|K]]|K}}
* [[{{{1}}}: V|V]]|V}} {{#ifexist:{{{1}}}: W|
* {{#ifexist:{{{1}}}: L| [[{{{1}}}: L|L]]|L}}
* [[{{{1}}}: W|W]]|W}} {{#ifexist:{{{1}}}: X|
* {{#ifexist:{{{1}}}: M| [[{{{1}}}: M|M]]|M}}
* [[{{{1}}}: X|X]]|X}} {{#ifexist:{{{1}}}: Y|
* {{#ifexist:{{{1}}}: N| [[{{{1}}}: N|N]]|N}}
* [[{{{1}}}: Y|Y]]|Y}} {{#ifexist:{{{1}}}: Z|
* {{#ifexist:{{{1}}}: O| [[{{{1}}}: O|O]]|O}}
* [[{{{1}}}: Z|Z]]|Z}} }}{{#if:{{{top|}}}|
* {{#ifexist:{{{1}}}: P| [[{{{1}}}: P|P]]|P}}
* [[#top|Top]]}}
* {{#ifexist:{{{1}}}: Q| [[{{{1}}}: Q|Q]]|Q}}
{{TOC bottom}}<noinclude>{{doc|content=
* {{#ifexist:{{{1}}}: R| [[{{{1}}}: R|R]]|R}}
 
* {{#ifexist:{{{1}}}: S| [[{{{1}}}: S|S]]|S}}
==Usage==
* {{#ifexist:{{{1}}}: T| [[{{{1}}}: T|T]]|T}}
 
* {{#ifexist:{{{1}}}: U| [[{{{1}}}: U|U]]|U}}
<pre style="overflow:auto">
* {{#ifexist:{{{1}}}: V| [[{{{1}}}: V|V]]|V}}
{{A-Z multipage list|Main list article name}}
* {{#ifexist:{{{1}}}: W| [[{{{1}}}: W|W]]|W}}
</pre>
* {{#ifexist:{{{1}}}: X| [[{{{1}}}: X|X]]|X}}
 
* {{#ifexist:{{{1}}}: Y| [[{{{1}}}: Y|Y]]|Y}}
By default, the subpages are assumed to be named <code>Main list article name: A</code> ... <code>Main list article name: Z</code>.  To change this to a different format, use the <code>format</code> parameter.  For example, if the subpages are named <code>Main list article name (A)</code> ... <code>Main list article name (Z)</code>, use
* {{#ifexist:{{{1}}}: Z| [[{{{1}}}: Z|Z]]|Z}}
 
* {{#if:{{{b1|}}}|{{#ifexist:{{{1}}}: {{{b1}}}| [[{{{1}}}: {{{b1}}}|{{{b1}}}]]}} }}
<pre style="overflow:auto">
* {{#if:{{{b2|}}}|{{#ifexist:{{{1}}}: {{{b2}}}| [[{{{1}}}: {{{b2}}}|{{{b2}}}]]}} }}
{{A-Z multipage list|format=()|Main list article name}}
{{{footer|}}}
</pre>
}}
 
* {{#if:{{{top|}}}| [[#top|Top]]}}
 
{{TOC bottom}}<noinclude>{{documentation}}<!-- place category and language links on the /dco sub-page, not here --></noinclude>
[[Category:Wikipedia table of contents templates|{{PAGENAME}}]]
[[Category:List templates|{{PAGENAME}}]]
}}</noinclude>