Template:Infobox rail line/doc

From blackwiki
< Template:Infobox rail line
Revision as of 20:08, 21 August 2009 by imported>Peter Horn (→‎Copy and paste: + | route number=)
Jump to navigation Jump to search

Template:Template doc page viewed directly

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
Logo logo No Filename of image for the logo
Logo width logo_width No Size of logo, default: 200px
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
Reopened reopen No Date rail line reopened after closure
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 {{mi to km}} or {{km to mi}} to display both U.S. and metric units, alternatively 1 km (0.6 mi) or 1 mi (1.6 km))
Track length tracklength No Track length (use {{mi to km}} or {{km to mi}} to display both U.S. and metric units, alternatively 1 km (0.6 mi) or 1 mi (1.6 km))
No. of tracks notrack No Number of tracks
Gauge gauge No Rail gauge (use template – see Category:Rail transport gauge templates)
Old gauge ogauge No Old rail gauge (use template – see Category:Rail transport gauge templates)
Minimum radius of curvature minradius No Minimum radius of curvature (use template:convert)
Rack system racksystem No Examples: Abt or Strub, as the case may be.
Electrification el No Electrification system (e.g. Third rail, Overhead catenary) and/or voltage
Train Number(s) trainnumber No Train numbers running as shown in official timetables and printed on tickets.
Route Number(s) routenumber No Number indicated in timetables to identify the stretch of track, in Germany usually referred as Kursbuchstrecke
Line Number(s) linenumber No Identifier of set of trains with same service, usually seen in suburban trains. eg. S7, IENA, 7, Line A. Not to be confused with the technical track.
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
Website website No Website
Map map No Map of line
Map title map_name No Title of map; default: Route map
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  = {{mi to km|0|abbr=yes|precision=2|wiki=yes}}
 | tracklength = {{mi to km|0|abbr=yes|precision=2|wiki=yes}}
 | notrack     =
 | gauge       =
 | old gauge   =
 | minradius   =
 | racksystem  =
 | route number=
 | el          =
 | speed       = {{convert|0|mph|km/h|abbr=on}}
 | elevation   =
 | website     =
 | 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  = {{mi to km|13.8|abbr=yes|precision=2|wiki=yes}}
 | tracklength =
 | notrack     =
 | gauge       = {{RailGauge|sg|al=on|lk=on}}
 | radius      = {{convert|20|m|ft|1|lk=on|abbr=on}}
 | el          =
 | speed       =
 | elevation   =
 | map         = [[Image:placeholder.png|200px]]
 | map_name    =
 | map_state   = collapsed
}}
Alpha Line
100px
Placeholder.png
Placeholder caption
Overview
StatusCeased operation
LocaleNewark
TerminiStation A
Station M
Stations15
Service
TypeLight rail
SystemABC Transit
Services1
Operator(s)BCT Transport
History
OpenedJune 22, 1904
ClosedMarch 8, 1942
Technical
Line lengthTemplate:Mi to km
Track gaugeTemplate:RailGauge
Route map
Placeholder.png

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 7 like the left one. This issue doesn't exist under browser like IE8, Firefox or Opera by their default font and margin preferences.

breaking rows fixed
Template:PAGENAMEBASE
Route map
Template:Needhammap
Template:PAGENAMEBASE
Route map

Use template {{infobox rdt}} if break occurs on every row:

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

If some of the row of route map made with WP:ROUTE set (not entirely) breaks apart, 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.