Template:Infobox rail line/doc

From Minecart Rapid Transit Wiki
Jump to navigation Jump to search

Originally sourced from https://en.wikipedia.org/wiki/Template:Infobox_rail_line

Usage

{{{name}}}
[[File:{{{logo}}}|{{{logo_width}}}|alt={{{logo_alt}}}]]
[[File:{{{image}}}|265x265px|alt={{{image_alt}}}]]
{{{caption}}}
Other name(s){{{other_name}}}
Native name{{{native_name}}}
Status{{{status}}}
Owner{{{owner}}}
Line number{{{linenumber}}}
Locale{{{locale}}}
Termini{{{start}}}
{{{end}}}
Stations{{{stations}}}
Website{{{website}}}
Service
Type{{{type}}}
System{{{system}}}
Services{{{routes}}}
Route number{{{routenumber}}}
Operator(s){{{operator}}}
Depot(s){{{depot}}}
Rolling stock{{{stock}}}
Daily ridership{{{daily_ridership}}}
Ridership{{{ridership2}}}
History
Commenced{{{yearcommenced}}}
Planned opening{{{planopen}}}
Opened{{{open}}}
Completed{{{yearcompleted}}}
{{{event1label}}}{{{event1}}}
{{{event2label}}}{{{event2}}}
{{{event3label}}}{{{event3}}}
Closed{{{close}}}
Technical
Line length{{{linelength_km}}}
Track length{{{tracklength_km}}}
Number of tracks{{{tracks}}}
Character{{{character}}}
Rack system{{{racksystem}}}
Track gauge{{{gauge}}}
Old gauge{{{old_gauge}}}
Loading gauge{{{load_gauge}}}
Minimum radius{{{minradius}}}
Electrification{{{electrification}}}
Operating speed{{{speed_km}}}
Signalling{{{signalling}}}
Highest elevation{{{elevation_m}}}
{{{map_name}}}
{{{map}}}
{{Infobox rail line
| box_width        = 
| name             = 
| other_name       = 
| native_name      = 
| native_name_lang = 
| color            = 
| logo             =  
| logo_width       = 
| logo_alt         = 
| image            =  
| image_width      = 
| image_alt        = 
| caption          = 
| type             = 
| system           = 
| status           = 
| locale           = 
| start            = 
| end              = 
| stations         = 
| routes           = 
| daily_ridership  = 
| ridership2       = 
| planopen         = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| open             = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| yearcommenced    = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| yearcompleted    = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| close            = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| event1label      = 
| event1           = 
| event2label      = 
| event2           = 
| event3label      = 
| event3           = 
| owner            = 
| operator         = 
| character        = 
| depot            = 
| stock            = 
| linelength_km    = 
| linelength_mi    = 
| linelength       = 
| tracklength_km   = 
| tracklength_mi   = 
| tracklength      = 
| length           =
| tracks           = 
| gauge            = <!-- {{Track gauge|sg|allk=on}} -->
| old_gauge        = 
| load_gauge       = 
| minradius        = 
| racksystem       = 
| routenumber      = 
| linenumber       = 
| electrification  = 
| speed_km/h       = 
| speed_mph        = 
| speed            = 
| signalling       =
| elevation_m      = 
| elevation_ft     = 
| elevation        = 
| website          = 
| map              = 
| map_name         = map_name
| map_state        = uncollapsed
| embedded         = 
}}

Parameters

Parameter Required Definition
box_width No Width of infobox, default: 25em; Note: use auto for automatic width (nb long image captions will not wrap if |box_width=auto is specified)
name No Name of rail line; default:Article Name
other_name No Alternative name of rail line
native_name No Non-English name of rail line
native_name_lang No ISO 639-2 code e.g. "fr" for French. If more than one, use instead
color No Color of rail line (6-digit hex code without "#")
logo No Filename of image for the logo
logo_width No Size of logo, default: 200px
logo_alt No Alt text for logo, for visually impaired readers; see WP:ALT. This should be present if "logo=" is present.
image No Filename of image
image_width No Size of image, default: 250px
image_alt No Alt text for image. This should be present if "image=" is present.
caption No Caption of image
type No Type of transit system. Types may include (one or more):
system No Name of transit system the rail line is part of
status No Status of rail line
locale No City or region transit system is located
coordinates No Coordinates; use with |display=inline,title
start No Name of starting terminal station
end No Name of ending terminal station
stations No Number of stations/stops
routes No Service routes of rail line
daily_ridership No Daily system ridership
ridership2 No Generic ridership field for non-daily values
yearcommenced No Year construction commenced
planopen No Date rail line planned opening
open No Date rail line opened
yearcompleted No Year construction was completed
close No Date rail line closed
reopen No Date rail line reopened after closure
owner No Owner of rail line
operator No Operator(s) of rail line
character No Character of rail line – e.g. Fully elevated and grade-separated, or At-grade street running, or Underground subway, etc.
depot No Name of traction maintenance depot(s) of rail line
stock No Types of rolling stock used on the rail line
linelength_km No Length of the line length in kilometres: auto-converts to miles
linelength_mi No Length of the line length in miles: auto-converts to kilometres
linelength No Use as an alternative to the auto-conversion parameters or for extra info
tracklength_km No Length of the track length in kilometres: auto-converts to miles
tracklength_mi No Length of the track length in miles: auto-converts to kilometres
tracklength No Use as an alternative to the auto-conversion parameters or for extra info
length No Length of the route, not track-specific
tracks No Number of tracks
gauge No Track gauge (use template )
old_gauge No Old rail gauge (use template )
load_gauge No Loading gauge
minradius No Minimum radius of curvature (use template:convert)
racksystem No Rack system. Examples: Abt or Strub, as the case may be.
electrification No Electrification system (e.g. Third rail, Overhead catenary) and/or voltage
trainnumber No Train number(s) running as shown in official timetables and printed on tickets.
routenumber No Route number(s) indicated in timetables to identify the stretch of track, in Germany usually referred as Kursbuchstrecke
linenumber No Line number(s). Identifier(s) of set of trains with same service, usually seen in suburban trains. e.g. S7, IENA, 7, Line A. Not to be confused with the technical track.
speed_km/h No Maximum or operating speed of the rail line in km/h: auto-converts to mph
speed_mph No Maximum or operating speed of the rail line in mph: auto-converts to km/h
speed No Use as an alternative to the auto-conversion parameters or for extra info
signalling No System for railway signalling
elevation_m No Highest elevation of the rail line in metres: auto-converts to feet
elevation_ft No Highest elevation of the rail line in feet: auto-converts to metres
elevation No Use as an alternative to the auto-conversion parameters or for extra info
mapcolour
mapcolor
No The colour or color of the line on route maps; Use either mapcolour for colour or mapcolor for color, but not both
mapcolourlink
mapcolorlink
No The name of an article for wikilinking the word "map" in the mapcolour and mapcolor field label
website No URL of website. Raw URLS will be hyperlinked and displayed. External link wikilinking works as well.
map No Map of line
map_name No Title of map; default: Route map
map_state No Shows or hides map. Use show or collapsed
embedded No Use to embed other infobox templates in this one

Deprecated

  • Deprecated (old names still function):
ridership use daily_ridership
notrack use tracks
ra use availability
ogauge use old_gauge
lgauge use load_gauge
el use electrification

Examples

Basic

Blue Line
Subway logo demo
File:Metro line.jpg
Image caption
Other name(s)Line Blue
Native nameEl Asul
StatusCeased operation
LocaleCityville
TerminiStation A
Station M
Stations15
Service
TypeLight rail
SystemABC Transit
Services1
Operator(s)BCT Transport
Daily ridership239,200
History
OpenedJune 22, 1904
ClosedMarch 8, 1942
Route map
Placeholder image
{{Infobox rail line
| name =  Blue Line
| other_name  = Line Blue
| native_name = El Asul
| native_name_lang = es
| color       = blue
| logo        = WMATA Blue.svg
| logo_width  = 75px
| logo_alt    = Subway logo demo
| image       = metro_line.jpg
| image_width =
| image_alt   = Example image of a line
| caption     = Image caption
| type        = Light rail
| system      = ABC Transit
| status      = Ceased operation
| locale      = Cityville
| start       = Station A
| end         = Station M
| stations    = 15
| routes      = 1
| daily_ridership   = 239,200
| open        = June 22, 1904
| close       = March 8, 1942
| owner       =
| operator    = BCT Transport
| character   =
| depot       =
| stock       =
| linelength_mi = 13.8
| tracklength =
| tracks      =
| electrification =
| speed       =
| elevation   =
| map         = [[Image:placeholder.png|200px|alt=Placeholder image]]
| map_name    =
| map_state   = collapsed
}}

Alternate

Including a route diagram

A Route diagram (based on template )) can be included via |map=. It can be composed right in this template (see first example), or it can be a complete template like |map={{Needham Line}} (second example).


Note that parameter |inline= must be set to a non-empty value, like {{BS-map|inline=yes}}.

{{Infobox rail line
| map =
{{BS-map|inline=yes|map=
{{BS|KBHFa||London St Pancras}}
{{BS|LSTR||}}
{{BS|KBHFe||Paris Gare du Nord}}
}}
}}
Infobox rail line/doc
Route map
London St Pancras
Paris Gare du Nord
{{Infobox rail line
| map = {{Needham Line}}
}}
Infobox rail line/doc
Route map
South StationAmtrakBoston National RailRed Line (MBTA)
Fairmount, Greenbush,
and Old Colony Lines
Back BayAmtrakBoston National RailOrange Line (MBTA)
Framingham/Worcester Line
RugglesOrange Line (MBTA)
Forest HillsOrange Line (MBTA)
Providence/Stoughton Line
and Franklin Line
Roslindale Village
Bellevue
Highland
West Roxbury
Former route to Dedham
Hersey
Needham Junction
Mills Branch (closed 1967)
Needham Center
Needham Yard
Needham Heights
Former route to Newton Highlands


Supporting template

Tracking categories

Added by this template:

Added by supporting template:

See also