Template:Hamburg rail

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

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 "lineS31" 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=
|lineS11=
|lineS2=
|lineS21=
|lineS3=
|lineS31=
|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[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.

{{Hamburg rail|lineS1=|lineS11=|lineS2=|lineS21=|lineS3=|lineS31=|lineU1=|lineU2=|lineU3=|lineU4=}}

Full template[edit]

This is what the contents of the full template with every line displayed looks like:

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.

Template parameters
Parameter Description Type Status
Line S1 lineS1

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line S11 lineS11

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line S2 lineS2

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line S21 lineS21

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line S3 lineS3

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line S31 lineS31

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line U1 lineU1

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line U2 lineU2

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line U3 lineU3

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line U4 lineU4

no description

Default
empty
Example
empty
Auto value
empty
string optional

How to manage this template's initial visibility
To manage this template's visibility when it first appears, add the parameter:

|state=collapsed to show the template in its collapsed state, i.e. hidden apart from its titlebar – e.g. {{Hamburg rail |state=collapsed}}
|state=expanded to show the template in its expanded state, i.e. fully visible – e.g. {{Hamburg rail |state=expanded}}
|state=autocollapse to show the template in its collapsed state but only if there is another template of the same type on the page – e.g. {{Hamburg rail |state=autocollapse}}

Unless set otherwise (see the |state= parameter in the template's code), the template's default state is autocollapse.