Template:Delhi & NCR Metro stations/doc
This is a documentation subpage for Template:Delhi & NCR Metro stations. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template selectively displays the stations of various Delhi Metro lines, as well as their respective depots and operators in a navbox. To select which lines are displayed, use the parameters |purple line=
, |green line=
, |yellow line=
, |pink line=
, |blue line=
, |orange line=
and |golden line=
. Give each parameter any value to make that line display, and leave the parameter unset to make the line stay hidden. For example,
{{Delhi & NCR Metro stations|red line=yes|airport express=yes}}
displays:
If adding new lines to this template, please ensure that List of Delhi 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
[edit]To display the full template with every line, use the parameter |all=
by setting it to any value:
{{Delhi & NCR Metro stations|all=yes}}
This gives:
Blank declaration
[edit]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.
{{Delhi Metro line(s)
|red line =
|yellow line =
|blue line =
|green line =
|violet line =
|airport express =
|pink line =
|magenta line =
|grey line =
|golden line =
|all =
}}
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:
{{Delhi & NCR Metro stations|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Delhi & NCR Metro stations|state=expanded}}
will show the template expanded, i.e. fully visible.