Template:Hamburg rail: Difference between revisions
added lines |
null edit |
||
Line 1: | Line 1: | ||
{{Navbox |
{{Navbox |
||
|name = Hamburg rail |
|name = Hamburg rail |
||
|title = <!-- [[File:U-Bahn.svg|15px]] [[File:S-Bahn-Logo.svg|17px]] --> [[Transport in Hamburg|Rapid transit and commuter rail]] in [[Hamburg]] |
|title = <!-- [[File:U-Bahn.svg|15px]] [[File:S-Bahn-Logo.svg|17px]] --> [[Transport in Hamburg|Rapid transit and commuter rail]] in [[Hamburg]] |
Revision as of 21:45, 30 May 2017
Usage
This template selectively displays the stations of various Hamburg U-Bahn and Hamburg S-Bahn lines in a navbox. To select which lines are displayed, use the parameters "lineS1" through "lineS5" and "lineU1" through "lineU4". Give each parameter a value to make that line display, and leave the parameter unset to make the line stay hidden. For example,
{{Hamburg rail
|lineS1=
|lineS2=
|lineS3=
|lineS5=
|lineU1=
|lineU2=yes
|lineU3=
|lineU4=yes
}}
displays:
If adding new lines to this template, please ensure that List of Hamburg U-Bahn stations or List of Hamburg S-Bahn stations are updated to match. The list pages include a copy of this template, and is also linked from the title bar of this template.
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.
{{Hamburg rail|lineS1=|lineS2=|lineS3=|lineS5=|lineU1=|lineU2=|lineU3=|lineU4=}}
Full template
This is what the contents of the full template with every line displayed looks like:
Collapsed vs expanded
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:
{{Hamburg rail|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Hamburg rail|state=expanded}}
will show the template expanded, i.e. fully visible.
This template shows the Hamburg rail navbox at the bottom of the page, showing the appropriate lines and stations. The value "yes" should be used for whichever line runs through the station.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Line S1 | lineS1 | no description | String | optional |
Line S2 | lineS2 | no description | String | optional |
Line S3 | lineS3 | no description | String | optional |
Line S5 | lineS5 | no description | String | optional |
Line U1 | lineU1 | no description | String | optional |
Line U2 | lineU2 | no description | String | optional |
Line U3 | lineU3 | no description | String | optional |
Line U4 | lineU4 | no description | String | optional |