Template:Infobox rail line/doc

Usage
Infobox rail line is used for railway lines, i.e. the physical trackage between two or more places; however, this template is also sometimes used on articles about both a company and a line (e.g. Romney, Hythe and Dymchurch Railway). It has no mandatory parameters. Infobox rail is used to create an infobox for articles about railway companies; i.e. the owner or operating entity. For rail services Infobox rail service is used.



Basic


Junction


Including a route diagram
A Route diagram (based on template BS-map)) 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 (second example).

Note that parameter inline must be set to a non-empty value, like.

{ "description": "an Infobox for rail lines", "params": { "box_width": { "label": "box_width", "description": "Width of infobox, default: 25em; Note: use auto for automatic width (nb long image captions will not wrap if auto is specified)", "type": "string", "required": false}, "name": { "label": "name", "description": "Name of rail line; default:Article Name", "type": "string", "required": false}, "color": { "label": "color", "description": "Color of rail line (6-digit hex code without #)", "type": "string", "required": false}, "color2": { "label": "color2", "description": "Secondary color of rail line (6-digit hex code without #)", "type": "string", "required": false}, "logo": { "label": "logo", "description": "Filename of image for the logo", "type": "string", "required": false}, "logo_width": { "label": "logo_width", "description": "Size of logo, default: 200px", "type": "string", "required": false}, "logo_alt": { "label": "logo_alt", "description": "Alt text for logo, for visually impaired readers; see WP:ALT. This should be present if logo= is present.", "type": "string", "required": false}, "logo2": { "label": "logo2", "description": "Filename of image for a second logo", "type": "string", "required": false}, "logo_width2": { "label": "logo_width2", "description": "Size of the second logo, default: 200px", "type": "string", "required": false}, "logo_alt2": { "label": "logo_alt2", "description": "Alt text for the second logo, for visually impaired readers; see WP:ALT. This should be present if logo2= is present.", "type": "string", "required": false}, "image": { "label": "image", "description": "Filename of image", "type": "string", "required": false}, "image_width": { "label": "image_width", "description": "Size of image, default: 250px", "type": "string", "required": false}, "image_alt": { "label": "image_alt", "description": "Alt text for image. This should be present if image= is present.", "type": "string", "required": false}, "caption": { "label": "caption", "description": "Caption of image", "type": "string", "required": false}, "connectinglines": { "label": "connectinglines", "description": "", "type": "string", "required": false}, "formerconnections": { "label": "formerconnections", "description": "", "type": "string", "required": false}, "continuesas": { "label": "continuesas", "description": "", "type": "string", "required": false}, "continuesfrom": { "label": "continuesfrom", "description": "", "type": "string", "required": false}, "coordinates": { "label": "coordinates", "description": "Coordinates; use Coord with inline,title", "type": "string", "required": false}, "end": { "label": "end", "description": "Name of ending terminal station", "type": "string", "required": false}, "linenumber": { "label": "linenumber", "description": "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.", "type": "string", "required": false}, "locale": { "label": "locale", "description": "City or region transit system is located", "type": "string", "required": false}, "mapcolor": { "label": "mapcolor", "description": "The colour or color of the line on route maps; Use either mapcolour for colour or mapcolor for color, but not both", "type": "string", "required": false}, "mapcolorlink": { "label": "mapcolorlink", "description": "The name of an article for wikilinking the word 'map' in the mapcolour and mapcolor field label", "type": "string", "required": false}, "mapcolour": { "label": "mapcolour", "description": "The colour or color of the line on route maps; Use either mapcolour for colour or mapcolor for color, but not both", "type": "string", "required": false}, "mapcolourlink": { "label": "mapcolourlink", "description": "The name of an article for wikilinking the word 'map' in the mapcolour and mapcolor field label", "type": "string", "required": false}, "native_name": { "label": "native_name", "description": "Non-English name of rail line", "type": "string", "required": false}, "native_name_lang": { "label": "native_name_lang", "description": "ISO 639-2 code e.g. 'fr' for French. If more than one, use lang instead", "type": "string", "required": false}, "other_name": { "label": "other_name", "description": "Alternative name of rail line", "type": "string", "required": false}, "daily_ridership": { "label": "daily_ridership", "description": "Daily system ridership", "type": "string", "required": false}, "ridership2": { "label": "ridership2", "description": "Generic ridership field for non-daily values", "type": "string", "required": false}, "routes": { "label": "routes", "description": "Service routes of rail line", "type": "string", "required": false}, "start": { "label": "start", "description": "Name of starting terminal station", "type": "string", "required": false}, "stations": { "label": "stations", "description": "Number of stations/stops", "type": "string", "required": false}, "status": { "label": "status", "description": "Status of rail line", "type": "string", "required": false}, "system": { "label": "system", "description": "Name of transit system the rail line is part of", "type": "string", "required": false}, "trainnumber": { "label": "trainnumber", "description": "Train number(s) running as shown in official timetables and printed on tickets.", "type": "string", "required": false}, "type": { "label": "type", "description": "Type of transit system. Types may include (one or more): High-speed rail; Heavy rail; Commuter rail – use in lieu of 'Regional rail,' 'Commuter train,' etc.; Rapid transit – use in lieu of 'Metro' or 'Subway'; Light rail; Tram – use in lieu of 'Trolley' or 'Streetcar'; Bus; Bus rapid transit; Monorail; People mover; Interurban", "type": "string", "required": false}, "website": { "label": "website", "description": "URL of website. Raw URLS will be hyperlinked and displayed. External link wikilinking works as well.", "type": "string", "required": false}, "character": { "label": "character", "description": "Character of rail line – e.g. Fully elevated and grade-separated, or At-grade street running, or Underground subway, etc.", "type": "string", "required": false}, "close": { "label": "close", "description": "Date rail line closed", "type": "string", "required": false}, "conductionsystem": { "label": "conductionsystem", "description": "", "type": "string", "required": false}, "depot": { "label": "depot", "description": "Name of traction maintenance depot(s) of rail line", "type": "string", "required": false}, "lastextension": { "label": "lastextension", "description": "", "type": "string", "required": false}, "planopen": { "label": "planopen", "description": "Date rail line planned opening", "type": "string", "required": false}, "open": { "label": "open", "description": "Date rail line opened", "type": "string", "required": false}, "operator": { "label": "operator", "description": "Operator(s) of rail line", "type": "string", "required": false}, "owner": { "label": "owner", "description": "Owner of rail line", "type": "string", "required": false}, "reopen": { "label": "reopen", "description": "Date rail line reopened after closure", "type": "string", "required": false}, "stock": { "label": "stock", "description": "Types of rolling stock used on the rail line", "type": "string", "required": false}, "yearcommenced": { "label": "yearcommenced", "description": "Year construction commenced", "type": "string", "required": false}, "yearcompleted": { "label": "yearcompleted", "description": "Year construction was completed", "type": "string", "required": false}, "event1label": { "label": "event1label", "description": "", "type": "string", "required": false}, "event1": { "label": "event1", "description": "", "type": "string", "required": false}, "event2label": { "label": "event2label", "description": "", "type": "string", "required": false}, "event2": { "label": "event2", "description": "", "type": "string", "required": false}, "event3label": { "label": "event3label", "description": "", "type": "string", "required": false}, "event3": { "label": "event3", "description": "", "type": "string", "required": false}, "aveinterstation": { "label": "aveinterstation", "description": "", "type": "string", "required": false}, "electrification": { "label": "electrification", "description": "Electrification system (e.g. Third rail, Overhead catenary) and/or voltage", "type": "string", "required": false}, "elevation": { "label": "elevation", "description": "Use as an alternative to the auto-conversion parameters or for extra info", "type": "string", "required": false}, "elevation_ft": { "label": "elevation_ft", "description": "Highest elevation of the rail line in feet: auto-converts to metres", "type": "string", "required": false}, "elevation_m": { "label": "elevation_m", "description": "Highest elevation of the rail line in metres: auto-converts to feet", "type": "string", "required": false}, "gauge": { "label": "gauge", "description": "Track gauge (use template Track gauge)", "type": "string", "required": false}, "load_gauge": { "label": "load_gauge", "description": "Loading gauge", "type": "string", "required": false}, "linelength": { "label": "linelength", "description": "Use as an alternative to the auto-conversion parameters or for extra info", "type": "string", "required": false}, "linelength_footnotes": { "label": "linelength_footnotes", "description": "", "type": "string", "required": false}, "linelength_km": { "label": "linelength_km", "description": "Length of the line length in kilometres: auto-converts to miles", "type": "string", "required": false}, "linelength_mi": { "label": "linelength_mi", "description": "Length of the line length in miles: auto-converts to kilometres", "type": "string", "required": false}, "maxincline": { "label": "maxincline", "description": "", "type": "string", "required": false}, "minradius": { "label": "minradius", "description": "Minimum radius of curvature (use template:convert)", "type": "string", "required": false}, "minradius_ft": { "label": "minradius_ft", "description": "", "type": "string", "required": false}, "minradius_m": { "label": "minradius_m", "description": "", "type": "string", "required": false}, "old_gauge": { "label": "old_gauge", "description": "Old rail gauge (use template Track gauge)", "type": "string", "required": false}, "availability": { "label": "availability", "description": "", "type": "string", "required": false}, "racksystem": { "label": "racksystem", "description": "Rack system. Examples: Abt or Strub, as the case may be.", "type": "string", "required": false}, "routenumber": { "label": "routenumber", "description": "Route number(s) indicated in timetables to identify the stretch of track, in Germany usually referred as Kursbuchstrecke", "type": "string", "required": false}, "speed": { "label": "speed", "description": "Use as an alternative to the auto-conversion parameters or for extra info", "type": "string", "required": false}, "speed_km/h": { "label": "speed_km/h", "description": "Maximum or operating speed of the rail line in km/h: auto-converts to mph", "type": "string", "required": false}, "speed_mph": { "label": "speed_mph", "description": "Maximum or operating speed of the rail line in mph: auto-converts to km/h", "type": "string", "required": false}, "tracklength": { "label": "tracklength", "description": "Use as an alternative to the auto-conversion parameters or for extra info", "type": "string", "required": false}, "tracklength_footnotes": { "label": "tracklength_footnotes", "description": "", "type": "string", "required": false}, "tracklength_km": { "label": "tracklength_km", "description": "Length of the track length in kilometres: auto-converts to miles", "type": "string", "required": false}, "tracklength_mi": { "label": "tracklength_mi", "description": "Length of the track length in miles: auto-converts to kilometres", "type": "string", "required": false}, "tracks": { "label": "tracks", "description": "Number of tracks", "type": "string", "required": false}, "signalling": { "label": "signalling", "description": "System for railway signalling", "type": "string", "required": false}, "embedded": { "label": "embedded", "description": "Use to embed other infobox templates in this one", "type": "string", "required": false}, "map": { "label": "map", "description": "Map of line", "type": "string", "required": false}, "map_state": { "label": "map_state", "description": "Shows or hides map. Use show or collapsed", "type": "string", "required": false}, "map_name": { "label": "map_name", "description": "", "type": "string", "required": false} },	"format": "\n", "paramOrder": [ "box_width", "name", "color", "color2", "logo", "logo_width", "logo_alt", "logo2", "logo_width2", "logo_alt2", "image", "image_width", "image_alt", "caption", "other_name", "native_name", "native_name_lang", "type", "system", "status", "locale", "coordinates", "start", "end", "continuesfrom", "continuesas", "connectinglines", "formerconnections", "stations", "routes", "daily_ridership", "ridership2", "trainnumber", "linenumber", "mapcolor", "mapcolourlink", "mapcolorlink", "mapcolour", "website", "yearcommenced", "planopen", "open", "lastextension", "yearcompleted", "close", "reopen", "owner", "operator", "conductionsystem", "character", "depot", "stock", "event1label", "event1", "event2label", "event2", "event3label", "event3", "linelength_km", "linelength_mi", "linelength", "linelength_footnotes", "tracklength_km", "tracklength_mi", "tracklength", "tracklength_footnotes", "tracks", "gauge", "old_gauge", "load_gauge", "availability", "minradius_m", "minradius_ft", "minradius", "electrification", "speed_km/h", "speed_mph", "speed", "signalling", "elevation_m", "elevation_ft", "elevation", "maxincline", "racksystem", "routenumber", "aveinterstation", "embedded", "map", "map_state", "map_name" ] }

Supporting template

 * Infobox rail line/tracking

Tracking categories
Added by this template: Added by supporting template: