Template:Hamburg rail

From blackwiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

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 "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

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

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

ParameterDescriptionTypeStatus
Line S1lineS1

no description

Stringoptional
Line S11lineS11

no description

Stringoptional
Line S2lineS2

no description

Stringoptional
Line S21lineS21

no description

Stringoptional
Line S3lineS3

no description

Stringoptional
Line S31lineS31

no description

Stringoptional
Line U1lineU1

no description

Stringoptional
Line U2lineU2

no description

Stringoptional
Line U3lineU3

no description

Stringoptional
Line U4lineU4

no description

Stringoptional

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Hamburg rail|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Hamburg rail|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Hamburg rail|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.