Difference between revisions of "Template:Infobox rail line/doc"
imported>Tlustulimu m (interwiki) |
imported>PhiH (→Parameters: updated, headings) |
||
| (98 intermediate revisions by 37 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | {{ | + | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
| + | {{Lua|Module:Infobox|Module:InfoboxImage|Module:TemplatePar}} | ||
| − | + | == Usage == | |
| + | {{hatnote|See also: [[Template:Infobox rail line/doc/parameter list|full parameter list]]}} | ||
| − | == | + | {{tl|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. |
| + | {{tl|Infobox rail}} is used to create an [[Wikipedia:Infobox|infobox]] for articles about railway '''companies'''; i.e. the owner or operating entity. | ||
| + | |||
| + | {{Parameter names example | ||
| + | | name | ||
| + | | other_name | ||
| + | | native_name | ||
| + | | logo | ||
| + | | logo_width | ||
| + | | logo_alt | ||
| + | | image | ||
| + | | image_alt | ||
| + | | caption | ||
| + | | type | ||
| + | | system | ||
| + | | status | ||
| + | | locale | ||
| + | | coordinates | ||
| + | | start | ||
| + | | end | ||
| + | | continuesfrom | ||
| + | | continuesas | ||
| + | | connectinglines | ||
| + | | formerconnections | ||
| + | | stations | ||
| + | | routes | ||
| + | | daily_ridership | ||
| + | | ridership2 | ||
| + | | trainnumber | ||
| + | | linenumber | ||
| + | | planopen | ||
| + | | yearcommenced | ||
| + | | open | ||
| + | | close | ||
| + | | reopen | ||
| + | | lastextension | ||
| + | | yearcompleted | ||
| + | | event1label | ||
| + | | event1 | ||
| + | | event2label | ||
| + | | event2 | ||
| + | | event3label | ||
| + | | event3 | ||
| + | | owner | ||
| + | | operator | ||
| + | | character | ||
| + | | depot | ||
| + | | stock | ||
| + | | linelength = {{{linelength_km}}} | ||
| + | | tracklength = {{{tracklength_km}}} | ||
| + | | tracks | ||
| + | | gauge | ||
| + | | old_gauge | ||
| + | | load_gauge | ||
| + | | availability | ||
| + | | minradius | ||
| + | | racksystem | ||
| + | | routenumber | ||
| + | | electrification | ||
| + | | speed = {{{speed_km}}} | ||
| + | | signalling | ||
| + | | elevation = {{{elevation_m}}} | ||
| + | | maxincline | ||
| + | | racksystem | ||
| + | | aveinterstation | ||
| + | | website | ||
| + | | map | ||
| + | | map_name | ||
| + | | map_state | ||
| + | }} | ||
| + | <pre style="overflow: auto;"> | ||
| + | {{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 = | ||
| + | | tracks = | ||
| + | | gauge = {{Track gauge|sg|allk=on}} {{Track gauge|1000mm|allk=on}} {{Track gauge|42in|lk=on}} etc --> | ||
| + | | 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 = | ||
| + | }} | ||
| + | </pre> | ||
| + | {{clear}} | ||
| + | |||
| + | == Parameters == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Line 13: | Line 157: | ||
| <code>name</code> || No || Name of rail line; default:Article Name | | <code>name</code> || No || Name of rail line; default:Article Name | ||
|- | |- | ||
| − | | <code>color</code> || No || Color of rail line | + | | <code>other_name</code> || No || Alternative name of rail line |
| + | |- | ||
| + | | <code>native_name</code> || No || Non-English name of rail line | ||
| + | |- | ||
| + | | <code>native_name_lang</code> || No || ISO 639-2 code e.g. "fr" for French. If more than one, use {{tl|lang}} instead | ||
| + | |- | ||
| + | | <code>color</code> || No || Color of rail line (6-digit hex code without "#") | ||
|- | |- | ||
| <code>logo</code> || No || Filename of image for the logo | | <code>logo</code> || No || Filename of image for the logo | ||
| Line 28: | Line 178: | ||
|- | |- | ||
| <code>caption</code> || No || Caption of image | | <code>caption</code> || No || Caption of image | ||
| + | |- | ||
| + | | <code>status</code> || No || Status of rail line | ||
| + | |- | ||
| + | | <code>owner</code> || No || Owner of rail line | ||
| + | |- | ||
| + | | <code>linenumber</code> || No || Official number of the rail line. Not to be confused with the number of a service. | ||
| + | |- | ||
| + | | <code>elr</code> || No || [[Engineer's Line Reference]] | ||
| + | |- | ||
| + | | <code>locale</code> || No || City or region line is located | ||
| + | |- | ||
| + | | <code>coordinates</code> || No || Coordinates; use {{Tl|Coord}} with {{Para|display|inline,title}} | ||
| + | |- | ||
| + | | <code>start</code> || No || Name of starting station/junction | ||
| + | |- | ||
| + | | <code>end</code> || No || Name of ending station/junction | ||
| + | |- | ||
| + | | <code>stations</code> || No || Number of stations/stops | ||
| + | |- | ||
| + | ! colspan="3" | Service | ||
|- | |- | ||
| <code>type</code> || No || Type of transit system. Types ''may'' include (one or more): | | <code>type</code> || No || Type of transit system. Types ''may'' include (one or more): | ||
| Line 42: | Line 212: | ||
* [[Interurban]] | * [[Interurban]] | ||
|- | |- | ||
| − | | <code>system</code> || No || Name of transit system the | + | | <code>system</code> || No || Name of transit system the services on the line are part of (e.g. National Rail) |
|- | |- | ||
| − | | <code> | + | | <code>routes</code> || No || Service routes of rail line or number(s)/identifier(s) of set of trains with same service, usually seen in suburban trains. e.g. S7, IENA, 7, Line A. |
|- | |- | ||
| − | | <code> | + | | <code>routenumber</code> || No || Route number(s) indicated in timetables to identify the stretch of track, in Germany usually referred as ''Kursbuchstrecke'' |
|- | |- | ||
| − | | <code> | + | | <code>trainnumber</code> || No || Train number(s) running as shown in official timetables and printed on tickets. |
|- | |- | ||
| − | | <code> | + | | <code>operator</code> || No || Operator(s) of services on the line |
|- | |- | ||
| − | | <code> | + | | <code>depot</code> || No || Name of traction maintenance depot(s) of rail line |
|- | |- | ||
| − | | <code> | + | | <code>stock</code> || No || Types of rolling stock used on the rail line |
|- | |- | ||
| − | | <code> | + | | <code>daily_ridership</code> || No || Daily system ridership |
|- | |- | ||
| <code>ridership2</code> || No || Generic ridership field for non-daily values | | <code>ridership2</code> || No || Generic ridership field for non-daily values | ||
|- | |- | ||
| − | | | + | ! colspan="3" | History |
|- | |- | ||
| − | | <code> | + | | <code>yearcommenced</code> || No || Year construction commenced |
|- | |- | ||
| − | | <code> | + | | <code>planopen</code> || No || Date rail line planned opening |
|- | |- | ||
| − | | <code> | + | | <code>open</code> || No || Date rail line opened |
|- | |- | ||
| − | | <code> | + | | <code>yearcompleted</code> || No || Year construction was completed |
|- | |- | ||
| − | | <code> | + | | <code>close</code> || No || Date rail line closed |
|- | |- | ||
| − | | <code> | + | | <code>reopen</code> || No || Date rail line reopened after closure |
|- | |- | ||
| − | | | + | ! colspan="3" | Technical |
|- | |- | ||
| <code>linelength_km</code> || No || Length of the line length in kilometres: auto-converts to miles | | <code>linelength_km</code> || No || Length of the line length in kilometres: auto-converts to miles | ||
| Line 88: | Line 258: | ||
| <code>tracklength</code> || No || Use as an alternative to the auto-conversion parameters or for extra info | | <code>tracklength</code> || No || Use as an alternative to the auto-conversion parameters or for extra info | ||
|- | |- | ||
| − | | <code> | + | | <code>tracks</code> || No || Number of tracks |
|- | |- | ||
| − | | <code> | + | | <code>character</code> || No || Character of rail line – e.g. Fully elevated and grade-separated, or At-grade street running, or Underground subway, etc. |
|- | |- | ||
| − | | <code> | + | | <code>gauge</code> || No || [[Track gauge]] (use template {{tl|Track gauge}}) |
|- | |- | ||
| − | | <code> | + | | <code>old_gauge</code> || No || Old rail gauge (use template {{tl|Track gauge}}) |
| + | |- | ||
| + | | <code>load_gauge</code> || No || [[Loading gauge]] | ||
|- | |- | ||
| <code>minradius</code> || No || Minimum radius of curvature (use template:convert) | | <code>minradius</code> || No || Minimum radius of curvature (use template:convert) | ||
| Line 100: | Line 272: | ||
| <code>racksystem</code> || No || Rack system. Examples: [[Abt rack system|Abt]] or [[Strub rack system|Strub]], as the case may be. | | <code>racksystem</code> || No || Rack system. Examples: [[Abt rack system|Abt]] or [[Strub rack system|Strub]], as the case may be. | ||
|- | |- | ||
| − | | <code> | + | | <code>electrification</code> || No || Electrification system (e.g. [[Third rail]], [[Overhead catenary]]) and/or voltage |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| <code>speed_km/h</code> || No || Maximum or operating speed of the rail line in km/h: auto-converts to mph | | <code>speed_km/h</code> || No || Maximum or operating speed of the rail line in km/h: auto-converts to mph | ||
| Line 113: | Line 279: | ||
|- | |- | ||
| <code>speed</code> || No || Use as an alternative to the auto-conversion parameters or for extra info | | <code>speed</code> || No || Use as an alternative to the auto-conversion parameters or for extra info | ||
| + | |- | ||
| + | | <code>signalling</code> || No || System for [[railway signalling]] (block systems etc.) | ||
| + | |- | ||
| + | | <code>trainprotection</code> || No || [[Train protection system]] used on the line | ||
|- | |- | ||
| <code>elevation_m</code> || No || Highest elevation of the rail line in metres: auto-converts to feet | | <code>elevation_m</code> || No || Highest elevation of the rail line in metres: auto-converts to feet | ||
| Line 120: | Line 290: | ||
| <code>elevation</code> || No || Use as an alternative to the auto-conversion parameters or for extra info | | <code>elevation</code> || No || Use as an alternative to the auto-conversion parameters or for extra info | ||
|- | |- | ||
| − | | <code>website</code> || No || | + | | <code>mapcolour</code><br /><code>mapcolor</code> || No || The colour or color of the line on route maps; Use either <code>mapcolour</code> for colour or <code>mapcolor</code> for color, but not both |
| + | |- | ||
| + | | <code>mapcolourlink</code><br /><code>mapcolorlink</code> || No || The name of an article for wikilinking the word "map" in the <code>mapcolour</code> and <code>mapcolor</code> field label | ||
| + | |- | ||
| + | | <code>website</code> || No || URL of website. Raw URLS will be hyperlinked and displayed. External link wikilinking works as well. | ||
|- | |- | ||
| <code>map</code> || No || Map of line | | <code>map</code> || No || Map of line | ||
| Line 127: | Line 301: | ||
|- | |- | ||
| <code>map_state</code> || No || Shows or hides map. Use <code>show</code> or <code>collapsed</code> | | <code>map_state</code> || No || Shows or hides map. Use <code>show</code> or <code>collapsed</code> | ||
| + | |- | ||
| + | | <code>embedded</code> || No || Use to embed other infobox templates in this one | ||
|} | |} | ||
| + | ===Deprecated=== | ||
| + | * Deprecated (old names still function): | ||
| + | : {{!xt|ridership}} use {{xt|1=daily_ridership}} | ||
| + | : {{!xt|1=notrack}} use {{xt|1=tracks}} | ||
| + | : {{!xt|1=ra}} use {{xt|1=availability}} | ||
| + | : {{!xt|1=ogauge}} use {{xt|1=old_gauge}} | ||
| + | : {{!xt|1=lgauge}} use {{xt|1=load_gauge}} | ||
| + | : {{!xt|1=el}} use {{xt|1=electrification}} | ||
| + | |||
| + | == Examples == | ||
| − | == | + | === Basic === |
| − | + | {{Infobox rail line | |
| − | + | | name = Alpha Line | |
| − | | | + | | other_name = Line Alpha |
| − | + | | native_name = Le Alpha | |
| − | + | | native_name_lang = fr | |
| − | + | | color = 003399 | |
| − | + | | logo = South Korea subway logo.svg | |
| − | + | | logo_width = 75px | |
| − | + | | logo_alt = Subway logo demo | |
| − | + | | image = KORAIL EMU5000 6th.jpg | |
| − | + | | image_width = | |
| − | + | | image_alt = Example image of a line | |
| − | + | | caption = Image 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 | |
| − | + | | 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 = | |
| − | + | | gauge = {{Track gauge|impsg|al=on}} | |
| − | + | | electrification = | |
| − | + | | speed = | |
| − | + | | elevation = | |
| − | + | | map = [[Image:placeholder.png|200px|alt=Placeholder image]] | |
| − | | | + | | map_name = |
| − | + | | map_state = collapsed | |
| − | | | + | }} |
| − | + | <pre style="overflow:auto;"> | |
| − | + | {{Infobox rail line | |
| − | + | | name = Alpha Line | |
| − | + | | other_name = Line Alpha | |
| − | + | | native_name = Le Alpha | |
| − | + | | native_name_lang = fr | |
| − | + | | color = 003399 | |
| − | + | | logo = South Korea subway logo.svg | |
| − | + | | logo_width = 75px | |
| − | + | | logo_alt = South Korea subway logo, demo | |
| − | + | | image = KORAIL EMU5000 6th.jpg | |
| − | + | | image_width = | |
| − | }}</pre> | + | | image_alt = Example image of a line |
| + | | caption = Image 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 | ||
| + | | 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 = | ||
| + | | gauge = {{RailGauge|1435mm|lk=on}} | ||
| + | | electrification = | ||
| + | | speed = | ||
| + | | signalling = [[ERTMS]] | ||
| + | | elevation = | ||
| + | | map = [[Image:placeholder.png|200px|alt=Placeholder image]] | ||
| + | | map_name = | ||
| + | | map_state = collapsed | ||
| + | }} | ||
| + | </pre> | ||
| + | {{Clear}} | ||
| − | === | + | === Junction === |
{{Infobox rail line | {{Infobox rail line | ||
| − | + | | name = Cogload Junction | |
| − | + | | image = Cogload Junction 43130.jpg | |
| − | + | | image_width = | |
| − | + | | image_alt = | |
| − | + | | caption = A train from London via Castle Cary travels west. Note the photograph, due to the [[telephoto lens]], misleads the eye - this junction has a [[speed limit]] of 100mph! | |
| − | + | | type = | |
| − | + | | system = | |
| − | + | | status = | |
| − | + | | locale = [[Durston]], [[Somerset]], [[England]]<br />{{coord|51.04315|N|2.99773|W |format=dms |type:landmark_region:GB |display=inline,title}} | |
| − | + | | start = | |
| − | + | | end = | |
| − | + | | stations = | |
| − | + | | routes = | |
| − | + | | daily_ridership = | |
| − | + | | ridership2 = | |
| − | + | | planopen = | |
| − | + | | open = {{Start date|1906}} | |
| − | + | | event1label = Flyover built | |
| − | + | | event1 = 1931 | |
| − | + | | event2label = Signal box closed | |
| − | + | | event2 = 1986 | |
| − | + | | close = | |
| − | + | | owner = | |
| − | + | | operator = | |
| − | + | | character = | |
| − | + | | depot = | |
| − | + | | stock = | |
| − | + | | tracks = | |
| − | + | | gauge = {{RailGauge|1435mm|lk=on}} | |
| − | + | | minradius = | |
| − | + | | connectinglines = {{Plainlist| | |
| − | + | * [[Reading to Taunton line|Reading to Taunton]] | |
| − | + | * [[Bristol to Taunton Line|Bristol to Taunton]] | |
| − | |||
| − | |||
}} | }} | ||
| − | <pre style="overflow:auto;">{{Infobox rail line | + | | routenumber = |
| − | + | | linenumber = | |
| − | + | | electrification = | |
| − | + | | speed_mph = 100 | |
| − | + | | elevation_m = | |
| − | + | | elevation_ft = | |
| − | + | | elevation = | |
| − | + | }} | |
| − | + | <pre style="overflow:auto;"> | |
| − | + | {{Infobox rail line | |
| − | + | | name = Cogload Junction | |
| − | + | | image = Cogload Junction 43130.jpg | |
| − | + | | image_width = | |
| − | + | | image_alt = | |
| − | + | | caption = A train from London via Castle Cary travels west. Note the photograph, due to the [[telephoto lens]], misleads the eye - this junction has a [[speed limit]] of 100mph! | |
| − | + | | type = | |
| − | + | | system = | |
| − | + | | status = | |
| − | + | | locale = [[Durston]], [[Somerset]], [[England]]<br />{{coord|51.04315|N|2.99773|W |format=dms |type:landmark_region:GB |display=inline,title}} | |
| − | + | | start = | |
| − | + | | end = | |
| − | + | | stations = | |
| − | + | | routes = | |
| − | + | | ridership = | |
| − | + | | ridership2 = | |
| − | + | | planopen = | |
| − | + | | open = {{Start date|1906}} | |
| − | + | | event1label = Flyover built | |
| − | + | | event1 = 1931 | |
| − | + | | event2label = Signal box closed | |
| − | + | | event2 = 1986 | |
| − | + | | close = | |
| − | + | | owner = | |
| − | + | | operator = | |
| − | + | | character = | |
| − | + | | depot = | |
| + | | stock = | ||
| + | | strack = | ||
| + | | gauge = {{Track gauge|sg|allk=on}} | ||
| + | | minradius = | ||
| + | | connectinglines = {{Plainlist| | ||
| + | * [[Reading to Taunton line|Reading to Taunton]] | ||
| + | * [[Bristol to Taunton Line|Bristol to Taunton]] | ||
| + | }} | ||
| + | | routenumber = | ||
| + | | linenumber = | ||
| + | | electrification = | ||
| + | | speed_mph = 100 | ||
| + | | elevation_m = | ||
| + | | elevation_ft = | ||
| + | | elevation = | ||
}} | }} | ||
</pre> | </pre> | ||
| − | + | == Including a route diagram == | |
| − | + | A [[project:Route diagram template|Route diagram]] (based on template {{tl|BS-map}})) can be included via {{para|map}}. It can be composed right in this template (see first example), or it can be a complete template like {{para|1=map|2={{tlf|Needham Line}}}} (second example). | |
| − | |||
| − | + | ||
| + | Note that parameter {{para|inline}} must be set to a non-empty value, like <nowiki>{{BS-map|inline=yes}}</nowiki>. | ||
{| | {| | ||
| − | |||
|- | |- | ||
| + | | <pre>{{Infobox rail line | ||
| + | | map = | ||
| + | {{BS-map|inline=yes|map= | ||
| + | {{BS|KBHFa||London St Pancras}} | ||
| + | {{BS|LSTR||}} | ||
| + | {{BS|KBHFe||Paris Gare du Nord}} | ||
| + | }} | ||
| + | }}</pre> | ||
|{{Infobox rail line | |{{Infobox rail line | ||
| − | |map | + | | map = |
| − | | | + | {{BS-map|inline=yes|map= |
| + | {{BS|KBHFa||London St Pancras}} | ||
| + | {{BS|LSTR||}} | ||
| + | {{BS|KBHFe||Paris Gare du Nord}} | ||
| + | }} | ||
}} | }} | ||
| + | |- | ||
| + | | style="vertical-align:top"|<pre>{{Infobox rail line | ||
| + | | map = {{Needham Line}} | ||
| + | }}</pre> | ||
|{{Infobox rail line | |{{Infobox rail line | ||
| − | |map | + | | map = {{Needham Line}} |
| − | |||
}} | }} | ||
|} | |} | ||
| − | + | {{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} | |
| + | {{TemplateData header|noheader=1}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "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 {{Tl|Coord}} with {{Para|display|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 {{tl|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 {{tl|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 {{tl|Track gauge}})", | ||
| + | "type": "string", | ||
| + | "required": false}, | ||
| + | "availability": { | ||
| + | "label": "availability", | ||
| + | "description": "", | ||
| + | "type": "string", | ||
| + | "required": false}, | ||
| + | "racksystem": { | ||
| + | "label": "racksystem", | ||
| + | "description": "Rack system. Examples: [[Abt rack system|Abt]] or [[Strub rack system|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| _______________________________ = _\n}}\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" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
| + | {{collapse bottom}} | ||
| + | |||
| + | == Supporting template == | ||
| + | * {{tl|Infobox rail line/tracking}} | ||
| + | |||
| + | == Tracking categories == | ||
| + | Added by this template: | ||
| + | * {{clc|Pages using infobox rail line with unsupported parameters}} | ||
| + | Added by supporting template: | ||
| + | * {{clc|Infobox rail line tracked parameters}} | ||
| + | * {{clc|Pages with no gauge entered in Infobox rail line}} | ||
| + | |||
| + | == See also == | ||
| + | * [[Template:Infobox station]] for rail stations | ||
| + | * [[Template:Infobox NYCS]] for [[New York City Subway]] and [[Staten Island Railway]] stations | ||
| + | * [[Template:BS-daten]], a shim for the German Wikipedia rail line infobox | ||
| − | <includeonly> | + | <includeonly>{{sandbox other || |
| + | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Rail transport infobox templates|Rail line]] | [[Category:Rail transport infobox templates|Rail line]] | ||
| − | [[ | + | [[Category:Embeddable templates]] |
| − | + | [[Category:Templates that add a tracking category]] | |
| − | + | }}</includeonly> | |
| − | |||
| − | [[ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | </includeonly> | ||
Latest revision as of 12:42, 8 September 2020
| This is a documentation subpage for Template:Infobox rail line. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Contents
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.
Template:Parameter names example
{{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 =
| tracks =
| gauge = {{Track gauge|sg|allk=on}} {{Track gauge|1000mm|allk=on}} {{Track gauge|42in|lk=on}} etc -->
| 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 {{lang}} 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 |
status |
No | Status of rail line |
owner |
No | Owner of rail line |
linenumber |
No | Official number of the rail line. Not to be confused with the number of a service. |
elr |
No | Engineer's Line Reference |
locale |
No | City or region line is located |
coordinates |
No | Coordinates; use {{Coord}} with |display=inline,title
|
start |
No | Name of starting station/junction |
end |
No | Name of ending station/junction |
stations |
No | Number of stations/stops |
| Service | ||
type |
No | Type of transit system. Types may include (one or more):
|
system |
No | Name of transit system the services on the line are part of (e.g. National Rail) |
routes |
No | Service routes of rail line or number(s)/identifier(s) of set of trains with same service, usually seen in suburban trains. e.g. S7, IENA, 7, Line A. |
routenumber |
No | Route number(s) indicated in timetables to identify the stretch of track, in Germany usually referred as Kursbuchstrecke |
trainnumber |
No | Train number(s) running as shown in official timetables and printed on tickets. |
operator |
No | Operator(s) of services on the line |
depot |
No | Name of traction maintenance depot(s) of rail line |
stock |
No | Types of rolling stock used on the rail line |
daily_ridership |
No | Daily system ridership |
ridership2 |
No | Generic ridership field for non-daily values |
| History | ||
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 |
| Technical | ||
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 |
tracks |
No | Number of tracks |
character |
No | Character of rail line – e.g. Fully elevated and grade-separated, or At-grade street running, or Underground subway, etc. |
gauge |
No | Track gauge (use template {{Track gauge}}) |
old_gauge |
No | Old rail gauge (use template {{Track gauge}}) |
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 |
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 (block systems etc.) |
trainprotection |
No | Train protection system used on the line |
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 |
mapcolourmapcolor |
No | The colour or color of the line on route maps; Use either mapcolour for colour or mapcolor for color, but not both
|
mapcolourlinkmapcolorlink |
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
| Alpha Line | |||
|---|---|---|---|
![]() Image caption | |||
| Overview | |||
| Other name(s) | Line Alpha | ||
| Native name | Le Alpha | ||
| Status | Ceased operation | ||
| Locale | Newark | ||
| Termini | Station A Station M | ||
| Stations | 15 | ||
| Service | |||
| Type | Light rail | ||
| System | ABC Transit | ||
| Services | 1 | ||
| Operator(s) | BCT Transport | ||
| Daily ridership | 239,200 | ||
| History | |||
| Opened | June 22, 1904 | ||
| Closed | March 8, 1942 | ||
| Technical | |||
| Line length | 13.8 mi (22.2 km) | ||
| Track gauge | Template:Track gauge | ||
| |||
{{Infobox rail line
| name = Alpha Line
| other_name = Line Alpha
| native_name = Le Alpha
| native_name_lang = fr
| color = 003399
| logo = South Korea subway logo.svg
| logo_width = 75px
| logo_alt = South Korea subway logo, demo
| image = KORAIL EMU5000 6th.jpg
| image_width =
| image_alt = Example image of a line
| caption = Image 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
| 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 =
| gauge = {{RailGauge|1435mm|lk=on}}
| electrification =
| speed =
| signalling = [[ERTMS]]
| elevation =
| map = [[Image:placeholder.png|200px|alt=Placeholder image]]
| map_name =
| map_state = collapsed
}}
Junction
| Cogload Junction | |
|---|---|
![]() A train from London via Castle Cary travels west. Note the photograph, due to the telephoto lens, misleads the eye - this junction has a speed limit of 100mph! | |
| Overview | |
| Locale | Durston, Somerset, England Lua error: callParserFunction: function "#coordinates" was not found. |
| Connecting lines | |
| History | |
| Opened | 1906 |
| Flyover built | 1931 |
| Signal box closed | 1986 |
| Technical | |
| Track gauge | Template:RailGauge |
| Operating speed | 100 mph (160 km/h) |
{{Infobox rail line
| name = Cogload Junction
| image = Cogload Junction 43130.jpg
| image_width =
| image_alt =
| caption = A train from London via Castle Cary travels west. Note the photograph, due to the [[telephoto lens]], misleads the eye - this junction has a [[speed limit]] of 100mph!
| type =
| system =
| status =
| locale = [[Durston]], [[Somerset]], [[England]]<br />{{coord|51.04315|N|2.99773|W |format=dms |type:landmark_region:GB |display=inline,title}}
| start =
| end =
| stations =
| routes =
| ridership =
| ridership2 =
| planopen =
| open = {{Start date|1906}}
| event1label = Flyover built
| event1 = 1931
| event2label = Signal box closed
| event2 = 1986
| close =
| owner =
| operator =
| character =
| depot =
| stock =
| strack =
| gauge = {{Track gauge|sg|allk=on}}
| minradius =
| connectinglines = {{Plainlist|
* [[Reading to Taunton line|Reading to Taunton]]
* [[Bristol to Taunton Line|Bristol to Taunton]]
}}
| routenumber =
| linenumber =
| electrification =
| speed_mph = 100
| elevation_m =
| elevation_ft =
| elevation =
}}
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={{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
| map = {{Needham Line}}
}}
|
| |||||||||||||||||||||||
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox rail line an Infobox for rail lines
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Supporting template
Tracking categories
Added by this template:
Added by supporting template:
- Category:Infobox rail line tracked parameters (0)
- Category:Pages with no gauge entered in Infobox rail line (0)
See also
- Template:Infobox station for rail stations
- Template:Infobox NYCS for New York City Subway and Staten Island Railway stations
- Template:BS-daten, a shim for the German Wikipedia rail line infobox


