Template:Infobox station/doc

< Template:Infobox station
Revision as of 21:54, 13 March 2019 by Maltropia (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template may be used for rail, tram, bus, and intermodal transport stations.

Usage

{{{name}}}

{{{native_name}}}
{{{type}}}
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}]]
{{{caption}}}
Other names{{{other_name}}}
Location{{{address}}}
{{{borough}}}
{{{country}}}
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Elevation{{{elevation}}}
Owned by{{{owned}}}
Operated by{{{operator}}}
Line(s){{{lines}}}
Distance{{{distance}}}
Platforms{{{platforms}}}
Tracks{{{tracks}}}
Train operators{{{train_operators}}}
Bus routes{{{bus_routes}}}
Bus stands{{{bus_stands}}}
Bus operators{{{bus_operators}}}
Connections{{{connections}}}
Construction
Structure type{{{structure}}}
Depth{{{depth}}}
Platform levels{{{levels}}}
Parking{{{parking}}}
Bicycle facilities{{{bicycle}}}
Disabled access{{{disabled}}}
Architect{{{architect}}}
Architectural style{{{architectural_style}}}
Other information
Status{{{status}}}
Station code{{{code}}}
IATA code{{{iata}}}
Fare zone{{{zone}}}
Classification{{{classification}}}
Website{{{website}}}
History
Opened{{{opened}}}
Opening{{{opening}}}
Closed{{{closed}}}
Rebuilt{{{rebuilt}}}
Electrified{{{electrified}}}
Previous names{{{former}}}
Original company{{{original}}}
Pre-grouping{{{pregroup}}}
Post-grouping{{{postgroup}}}
Pre-nationalisation{{{prenational}}}
Key dates
{{{years}}}{{{events}}}
{{{years1}}}{{{events1}}}
{{{years11}}}{{{events11}}}
Traffic
Passengers ({{{pass_year}}}){{{passengers}}} Steady 0% ({{{pass_system}}})
Rank{{{pass_rank}}}
{{{mpassengers}}}
Services
  {{{services}}}  
Other services
  {{{other_services}}}  
{{{embedded}}}
{{{nrhp}}}
{{{map_name}}}
{{{route_map}}}
Location
Lua error in Module:Location_map at line 408: Malformed coordinates value.

Railway stations

{{Infobox station
| name                = 
| native_name         = 
| native_name_lang    = 
| symbol_location     = 
| symbol              = 
| type                = 
| image               = 
| alt                 = 
| caption             = 
| address             = 
| borough             = 
| country             = 
| coordinates         = <!-- {{coord|latitude|N/S|longitude|E/W|display=inline,title}} -->
| owned               = 
| operator            = 
| line                = 
| distance            = 
| platforms           = 
| tracks              = 
| train_operators     = 
| connections         = 
| structure           = 
| parking             = 
| bicycle             = 
| disabled            = 
| code                = 
| zone                = 
| website             = 
| opened              = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| closed              = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| passengers          = 
| pass_year           = 
| pass_rank           = 
| services            = 
| other_services      = 
}}

Bus stations

{{Infobox station
| name                = 
| name_lang           = 
| native_name         = 
| native_name_lang    = 
| symbol_location     = 
| symbol              = 
| type                = 
| image               = 
| alt                 = 
| caption             = 
| address             = 
| borough             = 
| country             = 
| coordinates         = <!-- {{coord|latitude|N/S|longitude|E/W|display=inline,title}} -->
| owned               = 
| operator            = 
| bus_stands          = 
| bus_operators       = 
| bus_routes          = 
| connections         = 
| structure           = 
| parking             = 
| bicycle             = 
| disabled            = 
| code                = 
| zone                = 
| website             = 
| opened              = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| closed              = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| passengers          = 
| pass_year           = 
| pass_rank           = 
}}

Parameters

Descriptions

Name

name
name
name_lang
ISO 639-1 code or IETF language tag (for name); e.g. fr for French.
native_name
name in local language. If more than one, separate using {{Plain list}}
native_name_lang
ISO 639-1 code or IETF language tag (for native_name); e.g. fr for French. If more than one, use {{lang}} instead
other_name
current alternative name(s)
custom_header
custom header
mlanguage
insert a language module, e.g. {{Infobox Korean name}}. For best display results, set |child=yes.

Station symbols

symbol_location
The code of location of the station; first parameter of {{Rail-interchange}}
symbol
Symbol reference of the primary operator or network; second parameter of {{Rail-interchange}}
symbol_locationn
The code of location of the station; first parameter of {{Rail-interchange}}. Not needed if identical to symbol_location (symbol_locationn from 2 to 6)
symboln
Symbol reference of a secondary operator or network; second parameter of {{Rail-interchange}} (symboln from 2 to 6)

Overview

type
Transit system name and type of rail station (rapid transit, light rail, tram, commuter rail and/or regional rail); e.g. SEPTA rapid transit and tram station; Metrolink commuter rail station; San Diego Transit light rail station; RTA rapid transit station
style
Refers to an external 'style' template (see external style template for details). Leave blank if you do not have this.
image
Image of the station
image_upright
Adjust the size of the image as a ratio
alt
Image alt text; see WP:ALT
caption
Caption to be placed under the image of the station
address
Street address of the station
borough
Country administrative subdivisions
country
Country; this is displayed inline and used with {{coord}} when present. Must be in a format recognized by {{ISO 3166 code}}.
coordinates
Geographic coordinates. Use {{coord}} with display=inline,title; for example: {{coord|dd|mm|ss|N/S|dd|mm|ss|E/W|display=inline,title}}. (See the {{Coord}} documentation for more information.) type:railwaystation is automatically added, unless a different type is specified in the optional unnamed parameter after the coordinate values.
elevation
MSL elevation
distance
The distance from a set point on the line, to this station
owned
Station owner name
operator
Station operator name
line
List of lines (physical infrastructure) that the station is on. Use {{Plainlist}}. Named services should go below.
platforms
Information on the type of platform(s) at the station
tracks
Number of tracks at the station
train_operators
List of train operating companies (TOCs) that serve the station. Use {{Plainlist}}
bus_stands
number of bus stands at the station
bus_operators
bus operators serving the station
bus_routes
number of bus routes serving the station
connections
Connecting services that serve the station such as bus

Construction

structure
Type of station structure (underground, at-grade, or elevated)
depth
The depth of the primary platform below ground level
levels
Number of levels of platforms at the station (use only if more than one exists; mezzanine/entrance levels are not included)
parking
Information on station's parking facilities
bicycle
Information on station's bicycle facilities
disabled
What special facilities does the station have for people with disabilities
architect
Architect of the station
architectural_style
Architectural style, e.g. Baroque

Other information

status
Generic station status field, e.g. Unstaffed
code
Agency station code (used on tickets/reservations, etc.)
iata
IATA airport code
zone
Fare zone station is located in
classification
Station national classification
website
Web address of the station; use {{URL}}

History

opened
Date station originally opened
opening
Date station will be opening, if not open yet
closed
Date station closed, either temporarily or permanently, along with reason for closing (for presently closed stations only)
rebuilt
Date station last received a rebuild
former
Previous station name(s)
electrified
Date station was electrified, if not previously at date of opening
years
Date or year of an event (continue with yearsn from 1 to 11)
events
Event that occurred on that date (continue with eventsn from 1 to 11)

Traffic

passengers
Number of passengers using the station. In the reference, please make it clear if this figure is per day, per year, etc.
pass_year
Year passenger information was gathered
pass_percent
Percentage increase or decrease in usage
pass_system
System the passengers are using
pass_rank
Rank by passenger traffic of the station compared to total number of stations within the system, e.g. 115 out of 421
mpassengers
Allows display of multiple passenger totals using {{Rail pass box}}

Services

services
Allows inclusion of the s-rail/s-line boxes for named services. (Do not use {{s-start}} and {{s-end}} templates.)
services_collapsible
If set to 1, yes or collapsible, makes the S-line boxes hidden (by default) in a dropdown and adds a show/hide button to the Services header
services_state
If set to expanded, makes services shown by default if services_collapsible is enabled

Other Services

other_services
Allows inclusion of the s-rail/s-line boxes for former and/or future services. (Do not use {{s-start}} and {{s-end}} templates.)
other_services_header
Set the header of this section (defaults to Other services)
other_services_collapsible
If set to 1, yes or collapsible, makes the S-line boxes hidden (by default) in a dropdown and adds a show/hide button to the Services header
other_services_state
If set to expanded, makes services shown by default if services_collapsible is enabled

Location

map_type, map_overlay, AlternativeMap, map_alt, map_caption, map_size, map_dot_label, map_label_position
Allows inclusion of an image of the station location on a map (see map and coordinates for details)
route_map
Allows inclusion of route diagram
map_state
Determines route map state ("expanded" or "collapsed").

Map and coordinates

  • The location map uses the value of the |coordinates= parameter. It was previously necessary to use individual parameters for latitude and longitude, but the format was obsoleted by an RfC in August 2016 (see Help:Coordinates in infoboxes).
  • The ISO 3166-1 alpha-2 or ISO 3166-2 region code can often be determined automatically, based on the country= and borough= parameters. This can be overridden by specifying region:XX or region:XX-ABC in the unnamed parameter after the coordinate values.
{{Infobox station
...
| coordinates         = <!-- {{Coord}} template -->
| map_type            = <!-- Location from Location map. -->
| map_overlay         = <!-- Overlay image file name, to be placed on top of the main map. Should have the same border coordinates. -->
| AlternativeMap      = <!-- Alternative map file name (changes background map, border coordinates are determined based on the map name); this is only recommended for use in templates. -->
| map_alt             = <!-- Alternative text for map image, see [[WP:ALT]] -->
| map_caption         = <!-- Map caption; for no caption leave it blank; if the parameter is omitted then the caption will be "Marker text (location map name)" -->
| map_size            = <!-- Width of map -->
| map_dot_label       = <!-- Text to be displayed next to dot on map image -->
| map_label_position  = <!-- Override automatic label positioning; valid values are left, right, top, bottom, or none -->
...
}}

External style template

An external style template may be used to allow the modification of display parameters. This can be the same template that is used in conjunction with Template:S-line, but may be a different template. The |style= parameter is used to specify the name of the template where the styling is defined; the template's name must end with the word "style", but this word must be omitted from the |style= parameter. For example, |style=Amtrak will use the {{Amtrak style}} template.

Parameter Description
name_format Formatting the station name in Infobox station
thcolor Font color for table headings in Infobox station
thbgcolor Background color for table headings in Infobox station

For systems which have an Adjacent stations module defined the |style2= parameter may be used to specify a sub-style within that system. For example, |style2=Amtrak old used with |style=Amtrak will return the pre-Acela Amtrak heritage colors from Module:Adjacent stations/Amtrak.

Embedding other infoboxes

The embedded= parameter can be used to embed another infobox with such capability like {{designation list}} and {{infobox NRHP}}.

Old parameters

Obsolete / Unsupported

The following parameters have been obsoleted and will no longer function:

  • baggage_check – Whether bags can be checked
  • facilities – generic facilities parameter; use more specific parameters where possible
  • gates – Type (or presence) of ticket barriers/ gates
  • image_size – Size in pixels of the image of the station
  • local_authority – Local authority or council covering the station
  • map
  • map dot label
  • Melway
  • pte
  • reopened
  • reopening
  • smartcardname – name of any smartcard(s) that are or will be available at the station
  • smartcardstatus – "Yes" if smart card is available, or a date (or other information) if available in the future (see Union (TTC) for an example)
  • station_type
  • travelcentre – Whether there is a travel advice centre

Deprecated

The following parameters are deprecated and may be removed in the future:

  • ADA – If any text is placed here a universal symbol for accessibility will appear
  • map_locator – Allows inclusion of an image of the station location on a map, using {{Location map}} or another method directly
Korean name

Examples

This first example shows the infobox of Sinanju Station with the Korean names:

Sinanju Ch'ŏngnyŏn Station
Sinanju Chongnyon Station.jpg
Korean name
Hangul
신안주청년역
Hanja
Revised RomanizationSinanju-cheongnyeonyeok
McCune–ReischauerSinanju-ch'ŏngnyŏnyŏk
General information
LocationAnju, South Pyongan Province
North Korea
Line(s)P'yŏngŭi Line
Kaech'ŏn Line
{{Infobox station 
| name          = Sinanju Ch'ŏngnyŏn Station
| hangul        = 신안주청년역
| hanja         = {{linktext|新|安|州|青|年|驛}}
| mr            = Sinanju-ch'ŏngnyŏnyŏk
| rr            = Sinanju-cheongnyeonyeok
| image         = Sinanju Chongnyon Station.jpg
| image_caption = 
| borough       = [[Anju, South Pyongan|Anju]], [[South Pyongan Province]]
| country       = North Korea
| coordinates   = 
| line          = [[Pyongui Line|P'yŏngŭi Line]]<br />[[Kaechon Line|Kaech'ŏn Line]]
}}

This second example from the Paso Robles (Amtrak station) article uses {{S-line}} in the |services= parameter, and the external style template:

Paso Robles
Paso Robles Train Station.jpg
Location800 Pine Street
Paso Robles, California 93446
Owned byCity of Paso Robles
Line(s)Coast Line
Platforms1 side platform
Tracks1
Services
Preceding station   BSicon LOGO Amtrak2.svg Amtrak   Following station
toward Seattle
Coast Starlight
toward Los Angeles
{{Infobox station
| style        = Amtrak
| name         = Paso Robles
| image        = Paso Robles Train Station.jpg
| address      = 800 Pine Street<br />[[Paso Robles, California]] 93446
| line         = [[Coast Line (UP)|Coast Line]]
| platform     = 1 side platform
| tracks       = 1
| owned        = City of Paso Robles
| services     =
{{s-rail|title=Amtrak}}
{{s-line|system=Amtrak|line=Coast Starlight|previous=Salinas|next=San Luis Obispo|type=R|type2=R}}
}}

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

Tracking categories

See also

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for Infobox station

Displays an infobox for a rail, bus, tram or intermodal station.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the station

Stringsuggested
Name languagename_lang

ISO 639-1 code (for name)

Stringoptional
Native namenative_name

Name in local language

Stringoptional
Native name languagenative_name_lang

ISO 639-1 code (for native_name)

Stringoptional
Alternative name(s)other_name

Current alternative name(s)

Stringoptional
Style templatestyle

Refers to an external 'style' template

Stringoptional
Custom headercustom_header

no description

Stringoptional
Symbolsymbol

Symbol reference of the primary operator or network

Stringoptional
Symbol Locationsymbol_location

The code of location of the station

Stringoptional
Typetype

Transit system name and type of rail station (rapid transit, light rail, tram, commuter rail and/or regional rail)

Example
Southeastern Pennsylvania Transportation Authority|SEPTA rapid transit and tram station; Metrolink (Southern California)|Metrolink commuter rail station; San Diego Transit light rail station; Greater Cleveland Regional Transit Authority|RTA rapid transit station
Stringoptional
Imageimage

Image of the station

Fileoptional
image_uprightimage_upright

Can be used to adjust the size of the image as a ratio

Stringoptional
altalt

Image alt text; see WP:ALT

Stringoptional
Captioncaption image_caption

Caption to be placed under the image of the station

Stringoptional
mlanguagemlanguage

Can be used to insert a language module

Example
{{Infobox Korean name}}
Templateoptional
Hangulhangul

Korean name in Hangul

Stringoptional
Hanjahanja

Korean name in Hanja

Stringoptional
McCune–Reischauermr

McCune–Reischauer romanization of the name

Stringoptional
Revised Romanizationrr

The Revised Romanization of the name

Stringoptional
Addressaddress

Street address of the station

Stringsuggested
Administrative subdivisionborough

Country administrative subdivision or borough

Stringoptional
Countrycountry

Country where station is located

Stringoptional
Coordinatescoordinates

Geographic coordinates, using {{coord}}

Templateoptional
Elevationelevation

Elevation above mean sea level

Stringoptional
ownedowned

Station owner name

Stringoptional
operatoroperator

Station operator name

Stringoptional
lineslines line

List of lines that the station is on. Use {{Plainlist}}

Stringoptional
distancedistance

The distance from a set point on the line, to this station

Stringoptional
platformsplatforms platform

Information on the type of platform(s) at the station

Stringoptional
trackstracks

Number of tracks at the station

Stringoptional
Train operatorstrain_operators

List of train operating companies (TOCs) that serve the station. Use {{Plainlist}}

Templateoptional
bus_routesbus_routes routes

no description

Stringoptional
bus_standsbus_stands

number of bus stands at the station

Numberoptional
bus_operatorsbus_operators

bus operators serving the station

Stringoptional
connectionsconnections other

no description

Stringoptional
structurestructure

no description

Stringoptional
depthdepth

no description

Stringoptional
levelslevels

no description

Stringoptional
parkingparking

no description

Stringoptional
bicyclebicycle

no description

Stringoptional
disableddisabled ADA

What special facilities does the station have for people with disabilities

Stringoptional
architectarchitect

no description

Stringoptional
architectural_stylearchitectural_style

no description

Stringoptional
statusstatus

no description

Stringoptional
codecode

Agency station code (used on tickets/reservations, etc.)

Stringoptional
iataiata

no description

Stringoptional
zonezone

no description

Stringoptional
classificationclassification

no description

Stringoptional
websitewebsite web

no description

Stringoptional
openedopened start

no description

Stringoptional
openingopening starting

no description

Stringoptional
closedclosed end ending

no description

Stringoptional
rebuiltrebuilt

no description

Stringoptional
electrifiedelectrified

no description

Stringoptional
Previous namesformer

no description

Stringoptional
Original companyoriginal

no description

Stringoptional
Pre-grouping companypregroup

no description

Stringoptional
Post-grouping companypostgroup

no description

Stringoptional
Pre-nationalization companyprenational

no description

Stringoptional
yearsyears

no description

Stringoptional
eventsevents

no description

Stringoptional
years1years1

no description

Stringoptional
events1events1

no description

Stringoptional
years2years2

no description

Stringoptional
events2events2

no description

Stringoptional
years3years3

no description

Stringoptional
events3events3

no description

Stringoptional
years4years4

no description

Stringoptional
events4events4

no description

Stringoptional
years5years5

no description

Stringoptional
events5events5

no description

Stringoptional
years6years6

no description

Stringoptional
events6events6

no description

Stringoptional
years7years7

no description

Stringoptional
events7events7

no description

Stringoptional
years8years8

no description

Stringoptional
events8events8

no description

Stringoptional
years9years9

no description

Stringoptional
events9events9

no description

Stringoptional
years10years10

no description

Stringoptional
events10events10

no description

Stringoptional
years11years11

no description

Stringoptional
events11events11

no description

Stringoptional
Passengers modulempassengers

Child infobox containing passenger statistics using {{Rail pass box}}

Templateoptional
passengerspassengers

no description

Stringoptional
pass_systempass_system

no description

Stringoptional
pass_yearpass_year

no description

Stringoptional
pass_percentpass_percent

no description

Stringoptional
pass_rankpass_rank

no description

Stringoptional
servicesservices

no description

Stringoptional
services_collapsibleservices_collapsible

no description

Stringoptional
services_stateservices_state

no description

Stringoptional
other_servicesother_services

no description

Stringoptional
other_services_headerother_services_header

no description

Stringoptional
other_services_collapsibleother_services_collapsible

no description

Stringoptional
other_services_stateother_services_state

no description

Stringoptional
embeddedembedded

no description

Stringoptional
nrhpnrhp

no description

Stringoptional
route_maproute_map

no description

Stringoptional
map_statemap_state

no description

Stringoptional
map_namemap_name

no description

Stringoptional
map_typemap_type

no description

Stringoptional
map_locatormap_locator

no description

Stringoptional
AlternativeMapAlternativeMap

no description

Stringoptional
map_altmap_alt

no description

Stringoptional
map_overlaymap_overlay

no description

Stringoptional
map_dot_labelmap_dot_label

no description

Stringoptional
map_label_positionmap_label_position

no description

Stringoptional
map_captionmap_caption

no description

Stringoptional
map_sizemap_size

no description

Stringoptional
local_authoritylocal_authority

no description

Stringoptional