Template:Infobox station/sandbox: Difference between revisions
data |
use sandbox for Module:Adjacent stations |
||
(47 intermediate revisions by 5 users not shown) | |||
Line 3: | Line 3: | ||
| bodyclass = vcard ib-station |
| bodyclass = vcard ib-station |
||
| autoheaders = yes |
| autoheaders = yes |
||
| headerstyle = {{#invoke:Adjacent stations|style|subheader|{{{style|}}}|{{{style2|}}}}} |
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}} |
||
| headerclass = notheme |
|||
| above = {{#if:{{{cta_header|}}}{{{custom_header|}}}|{{{custom_header|{{{cta_header}}}}}}|<div style="display: table; width: 100%; border-collapse: collapse"><div class="ib-station-name">{{Br separated entries |
| above = {{#if:{{{cta_header|}}}{{{custom_header|}}}|{{{custom_header|{{{cta_header}}}}}}|<div style="display: table; width: 100%; border-collapse: collapse"><div class="ib-station-name">{{Br separated entries |
||
Line 15: | Line 16: | ||
-->{{#if:{{{symbol_location5|}}}{{{symbol5|}}}|+{{{symbol_location5|}}}\{{{symbol5|}}}\}}<!-- |
-->{{#if:{{{symbol_location5|}}}{{{symbol5|}}}|+{{{symbol_location5|}}}\{{{symbol5|}}}\}}<!-- |
||
-->{{#if:{{{symbol_location6|}}}{{{symbol6|}}}|+{{{symbol_location6|}}}\{{{symbol6|}}}\}}}}}}</div>}} |
-->{{#if:{{{symbol_location6|}}}{{{symbol6|}}}|+{{{symbol_location6|}}}\{{{symbol6|}}}\}}}}}}</div>}} |
||
| abovestyle = {{#invoke:Adjacent stations|style|header|{{{style|}}}|{{{style2|}}}}} |
| abovestyle = {{#invoke:Adjacent stations/sandbox|style|header|{{{style|}}}|{{{style2|}}}}} |
||
| aboveclass = notheme |
|||
| subheader = {{{type|}}} |
| subheader = {{{type|}}} |
||
Line 172: | Line 174: | ||
| rowcellstyle75 = padding: 0 |
| rowcellstyle75 = padding: 0 |
||
| data76 = {{#if:{{{route_map|}}}| |
| data76 = {{#if:{{{route_map|}}}{{{map_name|}}}| |
||
{{ infobox |
{{ infobox |
||
| bodystyle = {{Subinfobox bodystyle}} |
| bodystyle = {{Subinfobox bodystyle}} |
||
| bodyclass = collapsible {{{map_state|}}} |
| bodyclass = collapsible {{{map_state|}}} |
||
| headerstyle = {{#invoke:Adjacent stations|style|subheader|{{{style|}}}|{{{style2|}}}}} |
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}} |
||
| headerclass = notheme |
|||
| header1 = {{#if:{{{map_name|}}}|<div style="margin:0 3.5em">{{{map_name}}}</div>|<div style="margin:0 3.5em">{{#ifeq:{{#invoke:String|find|{{{route_map}}}|[[Template:Railway track legend|Legend]]}}|0|Route map|Track layout}}</div>}} |
| header1 = {{#if:{{{map_name|}}}|<div style="margin:0 3.5em">{{{map_name}}}</div>|<div style="margin:0 3.5em">{{#ifeq:{{#invoke:String|find|{{{route_map}}}|[[Template:Railway track legend|Legend]]}}|0|Route map|Track layout}}</div>}} |
||
| data2 = {{{route_map}}} |
| data2 = {{{route_map}}} |
||
}}}} |
}}}} |
||
| data77 = {{#if:{{{map_type|}}}{{{mapframe|}}}{{{map_image|}}}| |
|||
| header77 = Location |
|||
{{ infobox |
|||
| data78 = |
|||
| bodystyle = {{Subinfobox bodystyle}} |
|||
| bodyclass = collapsible {{{location_state|}}} |
|||
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}} |
|||
| headerclass = notheme |
|||
| header1 = <div style="margin:0 3.5em">Location</div> |
|||
| data2 = |
|||
{{#if:{{{map_type|}}} |
{{#if:{{{map_type|}}} |
||
|{{#if:{{{coordinates|}}}{{#switch:{{#property:P625}}|unknown value|=|#default=1}} |
|{{#if:{{{coordinates|}}}{{#switch:{{#property:P625}}|unknown value|=|#default=1}} |
||
Line 201: | Line 210: | ||
| {{#if:{{{map_image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|}}}|upright={{if empty|{{{map_image_upright|}}}|{{{image_upright|}}}|1.35}}|alt={{{map_alt|}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.2em 0;">{{{map_caption}}}</div>|}}|}} |
| {{#if:{{{map_image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|}}}|upright={{if empty|{{{map_image_upright|}}}|{{{image_upright|}}}|1.35}}|alt={{{map_alt|}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.2em 0;">{{{map_caption}}}</div>|}}|}} |
||
}} |
}} |
||
| |
| data3 = {{#invoke:Infobox mapframe|auto|mapframe-marker={{#switch:{{#invoke:wd|property|P31}} |
||
|{{label|Q494829}}=bus |
|{{label|Q494829}}=bus |
||
|{{label|Q55488}}=rail |
|{{label|Q55488}}=rail |
||
Line 207: | Line 216: | ||
|{{label|Q2175765}}=rail-light |
|{{label|Q2175765}}=rail-light |
||
}}}} |
}}}} |
||
| |
| data4 = {{#invoke:Infobox mapframe|autocaption}} |
||
}} |
|||
}} |
|||
| data79 = {{#if:{{{footnotes|}}}| |
|||
| header81 = Notes |
|||
{{ infobox |
|||
⚫ | |||
| bodystyle = {{Subinfobox bodystyle}} |
|||
| bodyclass = collapsible {{{footnotes_state|}}} |
|||
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}} |
|||
| headerclass = notheme |
|||
| header1 = {{#if:{{{footnotes|}}}|<div style="margin:0 3.5em">Notes</div>}} |
|||
⚫ | |||
}}{{Main other| |
}}{{Main other| |
||
{{#if:{{{local_authority|}}}|[[Category:Articles using Infobox station with local_authority]]}}<!-- |
{{#if:{{{local_authority|}}}|[[Category:Articles using Infobox station with local_authority]]}}<!-- |
||
Line 217: | Line 234: | ||
-->{{#if:{{{type|}}}|{{#ifeq:{{#invoke:String|find|{{{type}}}|<}}{{#invoke:String|find|{{{type}}}|''}}|00||[[Category:Articles using Infobox station with markup inside type]]}}{{#ifeq:{{#invoke:String|find|{{lc:{{{type}}}}}|[file:}}{{#invoke:String|find|{{lc:{{{type}}}}}|[image:}}|00||[[Category:Articles using Infobox station with images inside type]]}}}}}}<!-- |
-->{{#if:{{{type|}}}|{{#ifeq:{{#invoke:String|find|{{{type}}}|<}}{{#invoke:String|find|{{{type}}}|''}}|00||[[Category:Articles using Infobox station with markup inside type]]}}{{#ifeq:{{#invoke:String|find|{{lc:{{{type}}}}}|[file:}}{{#invoke:String|find|{{lc:{{{type}}}}}|[image:}}|00||[[Category:Articles using Infobox station with images inside type]]}}}}}}<!-- |
||
-->{{#if:{{{opened|}}}{{{start|}}}{{{opening|}}}{{{starting|}}}||{{main other|[[Category:Pages with no open date in Infobox station]]}}}}<!-- |
-->{{#if:{{{opened|}}}{{{start|}}}{{{opening|}}}{{{starting|}}}||{{main other|[[Category:Pages with no open date in Infobox station]]}}}}<!-- |
||
-->{{#invoke:Parameter validation|validateparams|module_options = Module:Parameter validation/default config}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox station with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox station]] with unknown parameter "_VALUE_"|ignoreblank=y| accessible | ADA | address | alt | AlternativeMap | architect | architectural_style | bicycle | borough | tram_operators | tram_routes | bus_operators | bus_routes | bus_stands | caption | classification | closed | code | number | connections | coordinates | country | cta_header | custom_header | depth | disabled | distance | electrified | elevation | embedded | end | ending | events | events1 | events2 | events3 | events4 | events5 | events6 | events7 | events8 | events9 | events10 | events11 | events12 | footnotes | former | grid_name | grid_position | iata | image | image_caption | image_upright | levels | line | lines | local_authority | manager | map_alt | map_caption | map_dot_label | map_image | map_image_upright | map_label_position | map_name | map_overlay | map_size | map_state | map_type | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-coordinates | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher | mapframe-height | mapframe-width | mlanguage | mpassengers | name | name_lang | native_name | native_name_lang | nrhp | opened | opening | operator | original | other | other_name | other_services | other_services_collapsible | other_services_header | other_services2 | other_services2_collapsible | other_services2_header | owned | owner | parking | pass_percent | pass_rank | pass_system | pass_year | passengers | platform | platforms | postgroup | pregroup | prenational | pushpin_outside | rebuilt | route_map | routes | services | services_collapsible | start | starting | status | structure | style | style2 | symbol | symbol_location | symbol_location2 | symbol_location3 | symbol_location4 | symbol_location5 | symbol_location6 | symbol2 | symbol3 | symbol4 | symbol5 | symbol6 | tracks | train_operators | transit_authority | type | web | website | years | years1 | years2 | years3 | years4 | years5 | years6 | years7 | years8 | years9 | years10 | years11 | years12 | zone }}<!-- |
-->{{#invoke:Parameter validation|validateparams|module_options = Module:Parameter validation/default config}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox station with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox station]] with unknown parameter "_VALUE_"|ignoreblank=y| accessible | ADA | address | alt | AlternativeMap | architect | architectural_style | bicycle | borough | tram_operators | tram_routes | bus_operators | bus_routes | bus_stands | caption | classification | closed | code | number | connections | coordinates | country | cta_header | custom_header | depth | disabled | distance | electrified | elevation | embedded | end | ending | events | events1 | events2 | events3 | events4 | events5 | events6 | events7 | events8 | events9 | events10 | events11 | events12 | footnotes | footnotes_state | former | grid_name | grid_position | iata | image | image_caption | image_upright | levels | line | lines | local_authority | location_state | manager | map_alt | map_caption | map_dot_label | map_image | map_image_upright | map_label_position | map_name | map_overlay | map_size | map_state | map_type | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-coordinates | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher | mapframe-height | mapframe-width | mlanguage | mpassengers | name | name_lang | native_name | native_name_lang | nrhp | opened | opening | operator | original | other | other_name | other_services | other_services_collapsible | other_services_header | other_services2 | other_services2_collapsible | other_services2_header | owned | owner | parking | pass_percent | pass_rank | pass_system | pass_year | passengers | platform | platforms | postgroup | pregroup | prenational | pushpin_outside | rebuilt | route_map | routes | services | services_collapsible | start | starting | status | structure | style | style2 | symbol | symbol_location | symbol_location2 | symbol_location3 | symbol_location4 | symbol_location5 | symbol_location6 | symbol2 | symbol3 | symbol4 | symbol5 | symbol6 | tracks | train_operators | transit_authority | type | web | website | years | years1 | years2 | years3 | years4 | years5 | years6 | years7 | years8 | years9 | years10 | years11 | years12 | zone }}<!-- |
||
-->{{#invoke:check for deprecated parameters|check |
-->{{#invoke:check for deprecated parameters|check |
||
|category=[[Category:Pages using infobox station with deprecated parameters|_VALUE_]] |
|category=[[Category:Pages using infobox station with deprecated parameters|_VALUE_]] |
Latest revision as of 10:25, 29 September 2024
Infobox station/sandbox |
---|
This is the template sandbox page for Template:Infobox station (diff). See also the companion subpage for test cases. |
This template is used on approximately 56,000 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. |
This template uses Lua: |
This template uses TemplateStyles: |
This template may be used for rail, tram, bus, and intermodal transport stations.
Usage
[edit]{{{name}}} {{{native_name}}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{{type}}} | ||||||||
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}]] | ||||||||
General information | ||||||||
Other names | {{{other_name}}} | |||||||
Location | {{{address}}} {{{borough}}} {{{country}}} | |||||||
Coordinates | 0°N 0°E / 0°N 0°E | |||||||
{{{grid_name}}} | {{{grid_position}}} | |||||||
Elevation | {{{elevation}}} | |||||||
Owned by | {{{owned}}} | |||||||
Operated by | {{{operator}}} | |||||||
Managed by | {{{manager}}} | |||||||
Transit authority | {{{transit_authority}}} | |||||||
Line(s) | {{{line}}} | |||||||
Distance | {{{distance}}} | |||||||
Platforms | {{{platforms}}} | |||||||
Tracks | {{{tracks}}} | |||||||
Train operators | {{{train_operators}}} | |||||||
Tram routes | {{{tram_routes}}} | |||||||
Tram operators | {{{tram_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}}} | |||||||
Accessible | {{{accessible}}} | |||||||
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}}} | |||||||
{{{years12}}} | {{{events12}}} | |||||||
Passengers | ||||||||
{{{pass_year}}} | {{{passengers}}} 0% ({{{pass_system}}}) | |||||||
Rank | {{{pass_rank}}} | |||||||
{{{mpassengers}}} | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{{embedded}}} | ||||||||
{{{nrhp}}} | ||||||||
| ||||||||
| ||||||||
|
Railway stations
[edit]{{Infobox station
| name =
| name_lang =
| native_name =
| native_name_lang =
| symbol =
| symbol_location =
| type =
| image =
| alt =
| caption =
| other_name =
| address =
| borough =
| country =
| coordinates = <!-- {{coord|latitude|N/S|longitude|E/W|display=inline,title}} -->
| grid_name =
| grid_position =
| elevation =
| owned =
| operator =
| manager =
| transit_authority =
| line =
| distance =
| platforms =
| tracks =
| train_operators =
| connections =
| structure =
| depth =
| levels =
| parking =
| bicycle =
| accessible =
| architect =
| architectural_style =
| status =
| code =
| iata =
| zone =
| classification =
| website =
| opened = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| opening =
| closed = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| rebuilt =
| electrified =
| former =
| original =
| pregroup =
| postgroup =
| prenational =
| years =
| events =
| passengers =
| pass_system =
| pass_year =
| pass_percent =
| pass_rank =
| services =
| other_services =
| other_services_collapsible =
| other_services_header =
| other_services2 =
| other_services2_collapsible =
| other_services2_header =
| footnotes =
| mapframe = yes
| mapframe-custom = {{Maplink|frame=yes|plain=yes|frame-align=center|frame-width=300|frame-height=180|zoom=12|type=point|marker=rail}}
}}
Bus stations
[edit]{{Infobox station
| name =
| name_lang =
| native_name =
| native_name_lang =
| symbol =
| symbol_location =
| type =
| image =
| alt =
| caption =
| other_name =
| address =
| borough =
| country =
| coordinates = <!-- {{coord|latitude|N/S|longitude|E/W|display=inline,title}} -->
| grid_name =
| grid_position =
| elevation =
| owned =
| operator =
| manager =
| transit_authority =
| line =
| distance =
| bus_routes =
| bus_stands =
| bus_operators =
| connections =
| structure =
| depth =
| levels =
| parking =
| bicycle =
| accessible =
| architect =
| architectural_style =
| status =
| code =
| iata =
| zone =
| classification =
| website =
| opened = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| opening =
| closed = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| rebuilt =
| former =
| original =
| pregroup =
| postgroup =
| prenational =
| years =
| events =
| passengers =
| pass_system =
| pass_year =
| pass_percent =
| pass_rank =
| services =
| other_services =
| other_services_collapsible =
| other_services_header =
| other_services2 =
| other_services2_collapsible =
| other_services2_header =
| footnotes =
| mapframe = yes
| mapframe-custom = {{Maplink|frame=yes|plain=yes|frame-align=center|frame-width=300|frame-height=180|zoom=12|type=point|marker=bus}}
}}
Parameters
[edit]Descriptions
[edit]Name
[edit]- 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
[edit]- 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)
Overview
[edit]- 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.
- grid_name
- Name of regional grid
- grid_position
- Position on regional grid (typically using a regional grid template)
- elevation
- MSL elevation
- owned
- Station owner name
- operator
- Station operator name, if different from manager
- manager
- Station manager name, if different from operator
- transit_authority
- Local transit authority
- line
- List of lines (physical infrastructure) that the station is on. Use {{Plainlist}}. Named services should go below. Alias is lines.
- distance
- The distance from a set point on the line, to this station
- platforms
- Information on the type of platform(s) at the station, alias is platform.
- tracks
- Number of tracks at the station
- train_operators
- List of train operating companies (TOCs) that serve the station. Use {{Plainlist}}
- tram_routes
- tram routes serving the station
- tram_operators
- tram operators serving the station
- bus_routes
- number of bus routes serving the station
- bus_stands
- number of bus stands at the station
- bus_operators
- bus operators serving the station
- connections
- Connecting services that serve the station such as bus
Construction
[edit]- 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
- accessible
- Whether the station is accessible to all, e.g. an elevator to platforms
- architect
- Architect of the station
- architectural_style
- Architectural style, e.g. Baroque
Other information
[edit]- status
- Generic station status field, e.g. Unstaffed
- code
- Agency station code (used on tickets/reservations, etc.)
- iata
- IATA railway station code
- zone
- Fare zone station is located in
- classification
- Station national classification
- website
- Web address of the station; use {{URL}}
- footnotes
- General footnotes
History
[edit]- 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
- electrified
- Date station was electrified, if not previously at date of opening
- former
- Previous station name(s)
- original
- Original company name
- pregroup
- For UK stations: pre-grouping company name (before 1922 for Great Western Railway group, before 1923 for other groups)
- postgroup
- For UK stations: post-grouping company name (period 1922/1923 to 1947)
- prenational
- Pre-nationalisation for non-UK stations
- years
- Date or year of an event (continue with yearsn from 1 to 12)
- events
- Event that occurred on that date (continue with eventsn from 1 to 12)
Traffic
[edit]- passengers
- Number of passengers using the station. In the reference, please make it clear if this figure is per day, per year, etc.
- pass_system
- System the passengers are using
- pass_year
- Year passenger information was gathered
- pass_percent
- Percentage increase or decrease in usage
- 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
[edit]- services
- Allows inclusion of the Template:Adjacent stations boxes for named services.
- services_collapsible
- If set to
1
,yes
orcollapsible
, makes the boxes hidden (by default) in a dropdown and adds a show/hide button to the Services header
Other services
[edit]- 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
orcollapsible
, 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.
Location
[edit]- 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
[edit]- 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=
andborough=
parameters. This can be overridden by specifyingregion:XX
orregion: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
[edit]This template supports mapframes. Parameter instructions:
- Basic parameters:
- 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=
. Default: coordinates from Wikidata{{Coord|12.34|N|56.78|E}}
- 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 toinverse
. Default: not specified - mapframe-point – Turn off display of point feature by setting to
none
. Force point marker to be displayed by setting toon
. 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 country (P17),P131
for located in the administrative territorial entity (P131)). Default: not specified - mapframe-switcher – set to
auto
orgeomasks
orzooms
to enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto
– 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.geomasks
– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms
– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3
), "zoomed out" is1
, and "zoomed midway" is the average
- mapframe-shape – Turn off display of shape feature by setting to
- 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
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: automatically determined by the instance of (P31) value on Wikidata, if available
- Can also be set to
blank
to override any default marker symbol
- Can also be set to
- 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 module
[edit]An external style module, typically a subpage of Module:Adjacent stations, may be used to allow the modification of display parameters. (The obsolete {{S-line}} and related templates are still used for a few articles.) The |style=
parameter is used to specify the name of the module subpage where the styling is defined; use the name of the subpage after the "/" as the value for the |style=
parameter. For example, |style=BART
will use the Module:Adjacent stations/BART module subpage. Module:Adjacent stations provides links and styling for many transportation-related templates.
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 that have a Module:Adjacent stations subpage 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 stored in Module:Adjacent stations/Amtrak.
Embedding other infoboxes
[edit]The |embedded=
or |nrhp=
parameters can be used to embed another infobox with such capability like {{infobox designation list}} and {{infobox NRHP}}.
Old parameters
[edit]Obsolete / Unsupported
[edit]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
[edit]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
[edit]This first example shows the infobox of Sinanju Station with the Korean names:
Sinanju Ch'ŏngnyŏn Station | |
---|---|
Korean name | |
Hangul | 신안주청년역 |
Hanja | |
Revised Romanization | Sinanju-cheongnyeonyeok |
McCune–Reischauer | Sinanju-ch'ŏngnyŏnyŏk |
General information | |
Location | Anju, South Pyongan Province North Korea |
Line(s) | P'yŏngŭi Line Kaech'ŏn Line |
{{Infobox station
| name = Sinanju Ch'ŏngnyŏn Station
| mlanguage = {{Infobox Korean name|child=yes
| hangul = 신안주청년역
| hanja = {{linktext|新|安|州|青|年|驛}}
| mr = Sinanju-ch'ŏngnyŏnyŏk
| rr = Sinanju-cheongnyeonyeok
}}
| image = Sinanju Chongnyon Station.jpg
| 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 station article uses {{Adjacent stations}}
in the |services=
parameter, and the external style template:
Paso Robles, CA | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
General information | |||||||||||||
Location | 800 Pine Street Paso Robles, California 93446 | ||||||||||||
Coordinates | 35°37′22″N 120°41′16″W / 35.6227°N 120.6878°W | ||||||||||||
Owned by | City of Paso Robles | ||||||||||||
Line(s) | Coast Line | ||||||||||||
Platforms | 1 side platform | ||||||||||||
Tracks | 1 | ||||||||||||
Connections | Amtrak Thruway, RTA Route 9, Paso Express, MST Route 83, Orange Belt Stages | ||||||||||||
Other information | |||||||||||||
Station code | PRB | ||||||||||||
History | |||||||||||||
Original company | Southern Pacific | ||||||||||||
Passengers | |||||||||||||
2015 | 12,149 0.69% (Amtrak) | ||||||||||||
Services | |||||||||||||
| |||||||||||||
| |||||||||||||
|
{{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
[edit]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
[edit]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
[edit]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
[edit]When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.
Tracking categories
[edit]- Category:Articles using Infobox station with a broken location map (0)
- Category:Articles using Infobox station with local authority (0)
- Category:Articles using Infobox station with markup inside name (8,146)
- Category:Articles using Infobox station with links or images inside name (4,894)
- Category:Articles using Infobox station with markup inside type (1,631)
- Category:Articles using Infobox station with images inside type (2,942)
- Category:Pages with no open date in Infobox station (17,889)
- Category:Pages using infobox station with deprecated parameters (31)
- Category:Pages using infobox station with unknown parameters (74)
- Category:Pages using infobox station with a non-child infobox (0)
- Category:Pages using infobox station with duplicate parameters (0)
TemplateData
[edit]TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
See a monthly parameter usage report for Template:Infobox station in articles based on its TemplateData.
TemplateData for Infobox station Displays an infobox for a rail, bus, tram or intermodal station.
|
Subtemplates
[edit]See also
[edit]- {{Infobox train}}
- {{Infobox rail line}}
- {{Infobox rail service}}
- {{Infobox locomotive}}
- {{Infobox New York City Subway station}} for New York City Subway and Staten Island Railway stations