Template:Mumbai Metro navbox
Usage
This template selectively displays the stations of various Mumbai Metro lines, as well as their respective depots and operators in a navbox. To select which lines are displayed, use the parameters |line 1=
, |line 2=
, |line 3=
, |line 4=
, |line 5=
, |line 6=
, |line 7=
, |line 8=
, |line 9=
, |line 10=
, |line 11=
, |line 12=
, |line 13=
and |line 14=
. Give each parameter any value to make that line display, and leave the parameter unset to make the line stay hidden. For example,
<syntaxhighlight lang="wikitext">
</syntaxhighlight>displays:
If adding new lines to this template, please ensure that List of Mumbai Metro stations is updated to match. The list page includes a copy of this template, showing all of the lines, and is also linked from the title bar of this template.
Full template
To display the full template with every line, use the parameter |all=
by setting it to any value:
This gives:
Blank declaration
You can copy and paste this blank template for use, inserting a value for each of the lines that's to be displayed and either deleting or leaving unset the lines that aren't to be displayed. <syntaxhighlight lang="wikitext"> Template:Mumbai Metro line(s)</syntaxhighlight>
This template's initial visibility currently defaults to autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
- <syntaxhighlight lang="wikitext" inline="1">{{Mumbai Metro navbox|state=collapsed}}</syntaxhighlight> will show the template collapsed, i.e. hidden apart from its title bar.
- <syntaxhighlight lang="wikitext" inline="1">{{Mumbai Metro navbox|state=expanded}}</syntaxhighlight> will show the template expanded, i.e. fully visible.