Template:Infobox rail line/doc

< Template:Infobox rail line

Please use Template:Infobox rail line freight for freight lines (includes historic data).

Parameter list and definitions

Name Parameter Required Definition
Infobox width box_width No Width of infobox, default: 25em; Note: use auto for automatic width
Name name No Name of rail line; default:Article Name
Color color No Color of rail line
Image image No Filename of image
Image width image_width No Size of image, default: 250px
Caption caption No Caption of image
Type type No Type of transit system. Types may include (one or more):
System system No Name of transit system the rail line is part of
Status status No Status of rail line
Locale locale No City or region transit system is located
Start terminus start No Name of starting terminal station
End terminus end No Name of ending terminal station
No. of stations stations No Number of stations/stops
Service routes routes No Service routes of rail line
Daily ridership ridership No Daily system ridership
Opened open No Date rail line opened
Closed close No Date rail line closed
Owner owner No Owner of rail line
Operator(s) operator No Operator of rail line
Character character No
Depot(s) depot No Name of traction maintenance depot(s) of rail line
Rolling stock stock No Types of rolling stock used on the rail line
Line length linelength No Line length (use {{convert}} to display both U.S. and metric units)
Track length tracklength No Track length (use {{convert}} to display both U.S. and metric units)
No. of tracks notrack No Number of tracks
Gauge gauge No Rail gauge (use template – see Category:Rail transport gauge templates)
Electrification el No Electrification system (e.g. Third rail, Overhead catenary) and/or voltage
Operating speed speed No Maximum or operating speed of the rail line (use {{convert|0|mph|km/h|abbr=on}} or {{convert|0|km/h|mph|abbr=on}} to display both U.S. and metric units))
Highest elevation elevation No Highest elevation of the rail line
Line map map No Map of line
Show/hide line map map_state No Shows or hides map. Use show or collapsed

Usage

Copy and paste

{{Infobox rail line
 | box_width   =
 | name        =
 | color       =
 | logo        =
 | logo_width  =
 | image       =
 | image_width =
 | caption     =
 | type        =
 | system      =
 | status      =
 | locale      =
 | start       =
 | end         =
 | stations    =
 | routes      =
 | ridership   =
 | open        =
 | close       =
 | owner       =
 | operator    =
 | character   =
 | depot       =
 | stock       =
 | linelength  = {{convert|0|mi|km|abbr=on}}
 | tracklength = {{convert|0|mi|km|abbr=on}}
 | notrack     =
 | gauge       =
 | el          =
 | speed       = {{convert|0|mph|km/h|abbr=on}}
 | elevation   =
 | map         =
 | map_state   = collapsed
}}

Example

{{Infobox rail line
 | name        = Alpha Line
 | color       = 003399
 | logo        = wiki.png
 | logo_width  = 100px
 | image       = placeholder.png
 | image_width =
 | caption     = Placeholder caption
 | type        = [[Light rail]]
 | system      = ABC Transit
 | status      = Ceased operation
 | locale      = [[Newark, New Jersey|Newark]]
 | start       = Station A
 | end         = Station M
 | stations    = 15
 | routes      = 1
 | ridership   = 239,200
 | open        = [[June 22]], [[1904]]
 | close       = [[March 8]], [[1942]]
 | owner       =
 | operator    = BCT Transport
 | character   =
 | depot       =
 | stock       =
 | linelength  = {{convert|13.8|mi|km|abbr=on}}
 | tracklength =
 | notrack     =
 | gauge       = {{RailGauge|sg|al=on|lk=on}}
 | el          =
 | speed       =
 | elevation   =
 | map         = [[Image:placeholder.png|200px]]
 | map_state   = collapsed
}}
100px
  Alpha Line
Placeholder caption
Overview
TypeLight rail
SystemABC Transit
StatusCeased operation
LocaleNewark
TerminiStation A
Station M
Stations15
Services1
Daily ridership239,200
Operation
OpenedJune 22, 1904
ClosedMarch 8, 1942
Operator(s)BCT Transport
Technical
Line length13.8 mi (22.2 km)
Track gaugeLua error in package.lua at line 80: module 'Module:Track gauge/data' not found.

Including WP:Route diagram template‎ in map parameter

There are reports that route map using WP:Route diagram template‎ included in the infobox "breaks apart" in browser such as Microsoft Internet Explorer like the left one. This issue doesn't exist under browser like Firefox or Opera by their default font preferences.

breaking rows fixed
Infobox rail line/doc
Route map
Hoboken
Christopher Street
9th Street
14th Street
23rd Street
33rd Street
NOTE: Service route denoted in dark red
Infobox rail line/doc
Route map
Hoboken
Christopher Street
9th Street
14th Street
23rd Street
33rd Street
NOTE: Service route denoted in dark red

To solve this row breaking issue, use template {{infobox rdt}} like this:

map = {{Infobox rdt|ROUTE DIAGRAM TEMPLATE NAME}}

If some of the row (not entirely) still breaks, possibly the infobox width is too short and forcing some of the text description within the route diagram template to‎ return. Increase the box_width parameter, or putting auto will solve this problem.