This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
insert a language module, e.g. {{Infobox Korean name}}. For best display results, set |child=yes.
Station symbols
symbol
Symbol reference of the primary operator or network; second parameter of {{Rail-interchange}}
symbol_location
The code of location of the station; first parameter of {{Rail-interchange}}
symboln
Symbol reference of a secondary operator or network; second parameter of {{Rail-interchange}} (symboln from 2 to 6)
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)
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.
grid_name
Name of regional grid
grid_position
Position on regional grid (typically using a regional grid template)
If set to 1, yes or collapsible, makes the boxes hidden (by default) in a dropdown and adds a show/hide button to the Services header
Other services
other_services
Allows inclusion of the Template:Adjacent stations boxes for additional services. Goes up to other_services2.
other_services_collapsible
If set to 1, yes or collapsible, makes the boxes hidden (by default) in a dropdown and adds a show/hide button to the Services header. Goes up to other_services2_collapsible.
other_services_header
Set the header of this section (defaults to Other services). Goes up to other_services2_header.
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 -->
...
}}
Mapframes
This template supports mapframes. Parameter instructions:
mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
mapframe-caption – Caption for the map. Default: blank (or if |mapframe-geomask= is set, "Location in geomask's label")
mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, the subsequent mapframe parameters will be ignored. Default: not specified
mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default:item for current page
mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g. |coord={{Coord|12.34|N|56.78|E}}. Default:coordinates from Wikidata
mapframe-wikidata – Set to yes to show shape/line features from the wikidata item, if any, when |coord= is set. Default:not specified
Customise which features are displayed:
mapframe-shape – Turn off display of shape feature by setting to none. Use an inverse shape (geomask) instead of a regular shape by setting to inverse. Default:not specified
mapframe-point – Turn off display of point feature by setting to none. Force point marker to be displayed by setting to on. Default:not specified
mapframe-line – Turn off display of line feature by setting to none. Default:not specified
mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for ਦੇਸ਼ (P17), P131 for ਪ੍ਰਸ਼ਾਸਨਿਕ ਵਿਭਾਗ ਵਿੱਚ ਸਥਿਤ (P131)). Default: automatically determined by the ਦਾ/ਦੀ ਉਦਾਹਰਨ (P31) value on Wikidata, if available
mapframe-switcher – set to auto or geomasks or zooms to enable Template:Switcher-style switching between multiple mapframes. Default:not specified
auto – switch geomasks found in ਥਾਂ (P276) and ਪ੍ਰਸ਼ਾਸਨਿਕ ਵਿਭਾਗ ਵਿੱਚ ਸਥਿਤ (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.
geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average
Other optional parameters:
mapframe-frame-width or mapframe-width – Frame width. Default: 270
mapframe-frame-height or mapframe-height – Frame height. Default: 200
mapframe-shape-fill – Color used to fill shape features. Default: #606060
mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.5
mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". Default: 5
Can also be set to blank to override any default marker symbol
mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 2
mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.5
mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default:not specified
mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default:derived from item coordinates
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=DB-IC will use the {{DB-IC 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= or |nrhp= parameters can be used to embed another infobox with such capability like {{infobox 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
iso_region
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_image – Allows inclusion of an image of the station location on a map (only use when a mapframe or a location map is not appropriate).
Examples
This first example shows the infobox of Sinanju Station with the Korean names:
Lua error in package.lua at line 80: module 'Module:Adjacent stations/Amtrak' not found.
Former services
Lua error in package.lua at line 80: module 'Module:Adjacent stations/Southern Pacific Railroad' not found.
ਸਥਾਨ
{{Infobox station| style = Amtrak
| name = Paso Robles, CA
| image = Paso Robles Train Station.jpg
| caption = Paso Robles train station in 2012
| address = 800 Pine Street<br/>[[Paso Robles, California]] 93446
| coordinates ={{coord|35.6227|-120.6878|region:US-CA|display=inline}}| mapframe = yes
| mapframe-zoom = 14
| line =[[Coast Line (UP)|Coast Line]]<!-- the physical "line" is not the same as "services" which are detailed below -->| connections =[[Amtrak Thruway]], [[San Luis Obispo Regional Transit Authority|RTA]] Route 9, [[List of small Southern California transit agencies#Paso Express|Paso Express]], [[Monterey Salinas Transit|MST]] Route 83, [[Orange Belt Stages]]| platform = 1 [[side platform]]| tracks = 1
| passengers = 12,149
| pass_year = 2015
| pass_percent = 0.69
| pass_system = Amtrak
| original =[[Southern Pacific]]| code = PRB
| owned = City of Paso Robles
| services ={{Adjacent stations|system=Amtrak|line=Coast Starlight|left=Salinas|right=San Luis Obispo|to-left=Seattle|to-right=Los Angeles}}| other_services_header = Former services
| other_services_collapsible = yes
| other_services ={{Adjacent stations|system1=Southern Pacific Railroad|line1=Coast Line|left1=Wellsona|right1=Atscadero}}}}
Microformat
The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article 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.
Symbol reference of the primary operator or network
String
optional
Symbol Location
symbol_location
The code of location of the station
String
optional
Type
type
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 (California)|Metrolink commuter rail station; San Diego Transit light rail station; Greater Cleveland Regional Transit Authority|RTA rapid transit station
String
optional
Image
image
Image of the station
File
optional
image_upright
image_upright
Can be used to adjust the size of the image as a ratio
String
optional
alt
alt
Image alt text; see WP:ALT
String
optional
Caption
captionimage_caption
Caption to be placed under the image of the station
String
optional
mlanguage
mlanguage
Can be used to insert a language module
Example
{{Infobox Korean name}}
ਫਰਮਾ
optional
Address
address
Street address of the station
String
suggested
Administrative subdivision
borough
Country administrative subdivision or borough
String
optional
Country
country
Country where station is located
String
optional
Coordinates
coordinates
Geographic coordinates, using {{coord}}
ਫਰਮਾ
optional
Elevation
elevation
Elevation above mean sea level
String
optional
Owned
owned
Station owner name
String
optional
Manager
manager
Manager of station. Cannot be used in conjunction with owned.
Unknown
optional
operator
operator
Station operator name
String
optional
Transit authority
transit_authority
no description
Unknown
optional
lines
linesline
List of lines that the station is on. Use {{Plainlist}}
String
optional
distance
distance
The distance from a set point on the line, to this station
String
optional
platforms
platformsplatform
Information on the type of platform(s) at the station
String
optional
tracks
tracks
Number of tracks at the station
String
optional
Train operators
train_operators
List of train operating companies (TOCs) that serve the station. Use {{Plainlist}}
String
optional
Tram routes
tram_routes
tram routes serving the station
String
optional
Tram operators
tram_operators
tram operators serving the station
String
optional
Bus routes
bus_routesroutes
number of bus routes serving the station
String
optional
Bus stands
bus_stands
Number of bus stands (bays, slips) at the station
Number
optional
bus_operators
bus_operators
bus operators serving the station
String
optional
Connections
connectionsother
Connecting services that serve the station such as bus routes
String
optional
Structure
structure
Type of station structure (underground, at-grade, or elevated)
Suggested values
At-gradeBelow-gradeElevatedEmbankmentUnderground
String
optional
depth
depth
The depth of the primary platform below ground level
String
optional
levels
levels
Number of levels of platforms at the station (use only if more than one exists; mezzanine/entrance levels are not included)
String
optional
parking
parking
Information on station's parking facilities
String
optional
bicycle
bicycle
Information on station's bicycle facilities
String
optional
Accessible
accessibleADAdisabled
Is the station accessible?
String
optional
Architect
architect
Architect of the station
String
optional
Architectural style
architectural_style
Architectural style, e.g. Baroque
String
optional
status
status
Generic station status field, e.g. Unstaffed
String
optional
code
code
Agency station code (used on tickets/reservations, etc.)
String
optional
IATA code
iata
IATA airport code when issued as part of an agreement between airlines and rail lines
String
optional
Zone
zone
Fare zone station is located in
String
optional
classification
classification
Station national classification
String
optional
Website
websiteweb
Web address of the station using the {{URL}} template. Do not include the leading www. unless the URL will not resolve without it.
Example
{{URL|railroad.com/station}}
String
optional
Date opened
openedstart
Date station originally opened, use the {{Start date}} template
Example
{{Start date|YYYY|MM|DD|df=y}}
String
optional
Date opening
openingstarting
Date station will be opening, if not open yet
String
optional
Date closed
closedendending
Date station closed, either temporarily or permanently, along with reason for closing (for presently closed stations only)
String
optional
Year rebuilt
rebuilt
Year(s) station received a rebuild
String
optional
Date electrified
electrified
Date station was electrified, if not previously at date of opening. Do not list the electrification system.
String
optional
Previous names
former
Previous station name(s)
String
optional
Original company
original
Original company name
String
optional
Pre-grouping company
pregroup
For UK stations: pre-grouping company name (before 1922 for Great Western Railway group, before 1923 for other groups)
String
optional
Post-grouping company
postgroup
For UK stations: post-grouping company name (period 1922/1923 to 1947)
String
optional
Pre-nationalization company
prenational
Pre-nationalisation for non-UK stations
String
optional
years
years
no description
String
optional
events
events
no description
String
optional
years1
years1
no description
String
optional
events1
events1
no description
String
optional
years2
years2
no description
String
optional
events2
events2
no description
String
optional
years3
years3
no description
String
optional
events3
events3
no description
String
optional
years4
years4
no description
String
optional
events4
events4
no description
String
optional
years5
years5
no description
String
optional
events5
events5
no description
String
optional
years6
years6
no description
String
optional
events6
events6
no description
String
optional
years7
years7
no description
String
optional
events7
events7
no description
String
optional
years8
years8
no description
String
optional
events8
events8
no description
String
optional
years9
years9
no description
String
optional
events9
events9
no description
String
optional
years10
years10
no description
String
optional
events10
events10
no description
String
optional
years11
years11
no description
String
optional
events11
events11
no description
String
optional
years12
years12
no description
Unknown
optional
events12
events12
no description
Unknown
optional
Passengers module
mpassengers
Child infobox containing passenger statistics using {{Rail pass box}}
ਫਰਮਾ
optional
passengers
passengers
no description
String
optional
pass_system
pass_system
no description
String
optional
pass_year
pass_year
no description
String
optional
pass_percent
pass_percent
no description
String
optional
pass_rank
pass_rank
no description
String
optional
services
services
no description
String
optional
services_collapsible
services_collapsible
no description
String
optional
other_services
other_services
no description
String
optional
other_services_header
other_services_header
no description
ਮੂਲ ਰੂਪ
Other services
String
optional
other_services_collapsible
other_services_collapsible
no description
String
optional
other_services2
other_services2
no description
String
optional
other_services2_header
other_services2_header
no description
ਮੂਲ ਰੂਪ
Other services
String
optional
other_services2_collapsible
other_services2_collapsible
no description
String
optional
embedded
embedded
no description
String
optional
nrhp
nrhp
no description
String
optional
route_map
route_map
no description
String
optional
Show mapframe map
mapframe
Specify yes or no to show or hide the map, overriding the default
ਮੂਲ ਰੂਪ
no
Example
yes
String
suggested
Mapframe caption
mapframe-caption
Caption for the map. If mapframe-geomask is set, then the default is "Location in <<geomask's label>>"
String
optional
Custom mapframe
mapframe-custom
Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored.
Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.
ਮੂਲ ਰੂਪ
(coordinates from Wikidata)
Example
{{Coord|12.34|N|56.78|E}}
ਫਰਮਾ
optional
Mapframe shapes from Wikidata
mapframe-wikidata
et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter
Example
yes
String
optional
Mapframe point feature
mapframe-point
Override display of mapframe point feature. Turn off display of point feature by setting to "none". Force point marker to be displayed by setting to "on"
String
optional
Mapframe shape feature
mapframe-shape
Override display of mapframe shape feature. Turn off by setting to "none". Use an inverse shape (geomask) instead of a regular shape by setting to "inverse"
String
optional
Mapframe width
mapframe-frame-widthmapframe-width
Frame width in pixels
ਮੂਲ ਰੂਪ
270
Number
optional
Mapframe height
mapframe-frame-heightmapframe-height
Frame height in pixels
ਮੂਲ ਰੂਪ
200
Number
optional
Mapframe shape fill
mapframe-shape-fill
Color used to fill shape features
ਮੂਲ ਰੂਪ
#606060
String
optional
Mapframe shape fill opacity
mapframe-shape-fill-opacity
Opacity level of shape fill, a number between 0 and 1
ਮੂਲ ਰੂਪ
0.5
Number
optional
Mapframe stroke color
mapframe-stroke-colormapframe-stroke-colour
Color of line features, and outlines of shape features
ਮੂਲ ਰੂਪ
#ff0000
String
optional
Mapframe stroke width
mapframe-stroke-width
Width of line features, and outlines of shape features
ਮੂਲ ਰੂਪ
5
Number
optional
Mapframe marker
mapframe-marker
Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options
Example
museum
String
optional
Mapframe marker color
mapframe-marker-colormapframe-marker-colour
Background color for the marker
ਮੂਲ ਰੂਪ
#5E74F3
String
optional
Mapframe geomask
mapframe-geomask
Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)
Opacity level of fill outside geomask features, a number between 0 and 1
ਮੂਲ ਰੂਪ
0.5
Number
optional
Mapframe zoom
mapframe-zoom
Set the zoom level, from "1" to "18", to used if the zoom level cannot be determined automatically from object length or area
ਮੂਲ ਰੂਪ
10
Example
12
Number
optional
Mapframe length (km)
mapframe-length_km
Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area
Number
optional
Mapframe length (mi)
mapframe-length_mi
Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area
Number
optional
Mapframe area (km^2)
mapframe-area_km2
Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area
Number
optional
Mapframe area (mi^2)
mapframe-area_mi2
Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area
Number
optional
Mapframe frame coordinates
mapframe-frame-coordinatesmapframe-frame-coord
Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}
Example
{{Coord|12.35|N|56.71|E}}
ਫਰਮਾ
optional
Mapframe switcher
mapframe-switcher
Set to "auto" or "geomasks" or "zooms" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average.
String
optional
Map image
map_image
Image of a map showing the location of the station
File
optional
map_image_upright
map_image_upright
Can be used to adjust the size of the map image as a ratio
String
optional
map_state
map_state
no description
String
optional
map_name
map_name
no description
String
optional
map_type
map_type
no description
String
optional
AlternativeMap
AlternativeMap
no description
String
optional
map_alt
map_alt
no description
String
optional
map_overlay
map_overlay
no description
String
optional
map_dot_label
map_dot_label
no description
String
optional
map_label_position
map_label_position
no description
String
optional
map_caption
map_caption
no description
String
optional
map_size
map_size
no description
String
optional
grid_name
grid_name
Name of regional grid (used as label)
Unknown
optional
grid_position
grid_position
Coordinates in regional grid
Unknown
optional
symbol2
symbol2
no description
Unknown
optional
symbol_location2
symbol_location2
no description
Unknown
optional
Connections (via param 'other')
Connections (via param 'other')
Same as para "connections", using its alias "other"