Template:A-Z multipage list: Difference between revisions
Appearance
Content deleted Content added
align the TOC links in the center of the box to match the heading |
<templatestyles src="A-Z multipage list/styles.css"/> |
||
| Line 1: | Line 1: | ||
{{TOC top|title={{{title|[[{{#if:1|{{{1}}}}}]]}}}|align={{{align|}}}|primary={{{primary|}}}}} |
<templatestyles src="A-Z multipage list/styles.css"/>{{TOC top|title={{{title|[[{{#if:1|{{{1}}}}}]]}}}|align={{{align|}}}|primary={{{primary|}}}}} |
||
{{#switch:{{{format}}}|()=<div style="text-align: center;"> |
{{#switch:{{{format}}}|()=<div style="text-align: center;"> |
||
{{A-Z multipage list/item|1={{#if:{{{t1|}}}|{{#ifexist:{{#if:1|{{{1}}}}} ({{{t1}}})| [[{{#if:1|{{{1}}}}} ({{{t1}}})|{{{t1}}}]]}} }} |
{{A-Z multipage list/item|1={{#if:{{{t1|}}}|{{#ifexist:{{#if:1|{{{1}}}}} ({{{t1}}})| [[{{#if:1|{{{1}}}}} ({{{t1}}})|{{{t1}}}]]}} }} |
||
Latest revision as of 20:55, 31 January 2024
| This template uses TemplateStyles: |
Usage
{{A-Z multipage list|Main list article name}}
By default, the subpages are assumed to be named Main list article name: A ... Main list article name: Z. To change this to a different format, use the format parameter. For example, if the subpages are named Main list article name (A) ... Main list article name (Z), use
{{A-Z multipage list|format=()|Main list article name}}
Adding additional subpages
To add additional subpages to the top of the list, use |t1= and |t2=.
To add additional subpages to the bottom of the list, use |b1= and |b2=.
Adding addition links
To add more links at the bottom of the list, use |footer=.
Alignment
Use |align= to change the default alignment.
Title
Use |title= to override the default title.