Difference between revisions of "Template:Infobox public transit/doc"

From blackwiki
Jump to navigation Jump to search
imported>Biomedeng
(→‎Parameter list and definitions: update to include second image parameters)
imported>PhiH
(add {{{stock|}}})
 
(153 intermediate revisions by 71 users not shown)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
{{Documentation subpage}}
'''This infobox is mainly for rail transit systems. For a specific line within a rail system, or for a rail system with only one line, please use {{tl|Infobox rail line}}. For [[transit bus]]-only systems, please use {{tl|Infobox Bus transit}}.'''
+
<!-- Place categories at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
==Parameter list and definitions==
+
{{Lua|Module:Check for unknown parameters}}
 +
{{Parameter names example | name | image | imagesize | alt | caption | image2 | imagesize2 | alt2 | caption2 | image3 | imagesize3 | alt3 | caption3 | native_name | owner | area served | locale | transit_type | lines | line_number | start | end | stations | daily_ridership = {{{daily_ridership}}}<br/>''or:'' {{{ridership}}} | annual_ridership | chief_executive | headquarters | website | began_operation | operation_will_start | ended_operation | operator | marks | host | character | stock | vehicles | train_length | headway | system_length | notrack | track_gauge | ogauge | minimum_radius_of_curvature | el | average_speed | top_speed | map | map_name }}
 +
 
 +
This infobox is mainly for rail transit systems. For a specific service within a rail system, or for a rail system with only one route, {{tl|Infobox rail service}} may be a better choice. For railway lines, please use {{tl|Infobox rail line}} instead. For [[transit bus]]-only systems, consider using {{tl|Infobox bus transit}}.
 +
 
 +
==Usage==
 +
<pre style="overflow:auto;">
 +
{{Infobox public transit
 +
| box_width                  =
 +
| name                        =
 +
| image                      =
 +
| alt                        =
 +
| imagesize                  =
 +
| caption                    =
 +
| image2                      =
 +
| alt2                        =
 +
| imagesize2                  =
 +
| caption2                    =
 +
| image3                      =
 +
| alt3                        =
 +
| imagesize3                  =
 +
| caption3                    =
 +
| native_name                = <!-- use {{lang}} -->
 +
| owner                      =
 +
| area served                =
 +
| locale                      =
 +
| transit_type                =
 +
| lines                      =
 +
| line_number                =
 +
| start                      =
 +
| end                        =
 +
| stations                    =
 +
| daily_ridership            =
 +
| annual_ridership            =
 +
| chief_executive            = <!-- or | key_people = -->
 +
| headquarters                =
 +
| website                    =
 +
| began_operation            =
 +
| operation_will_start        =
 +
| ended_operation            =
 +
| operator                    =
 +
| marks                      =
 +
| host                        =
 +
| character                  =
 +
| stock                      =
 +
| vehicles                    =
 +
| train_length                =
 +
| headway                    =
 +
| system_length              = <!-- {{convert|0|mi|km|abbr=on}} -->
 +
| notrack                    =
 +
| track_gauge                = <!-- {{Track gauge|sg|allk=on}} -->
 +
| ogauge                      = <!-- {{Track gauge|sg|allk=on}} -->
 +
| minimum_radius_of_curvature = <!-- {{convert|0|ft|0|in|mm|0}} -->
 +
| el                          =
 +
| average_speed              = <!-- {{convert|0|mph|km/h|abbr=on}} -->
 +
| top_speed                  = <!-- {{convert|0|mph|km/h|abbr=on}} -->
 +
| map                        =
 +
| map_name                    =
 +
| map_state                  = <!-- show or collapsed -->
 +
}}
 +
</pre>
 +
{{clear}}
 +
 
 +
==Parameters==
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Name || Parameter || Required || Definition
+
! Parameter || Required || Description
 +
|-
 +
| <code>box_width</code> || No || Width of infobox, default:22em; Note: use <code>auto</code> for automatic width
 +
|-
 +
| <code>name</code> || No || Name of transit system; default: PAGENAME
 +
|-
 +
| <code>image</code> || No || Filename of image for the header (typically a logo, but photo can be used if no logo is available)
 +
|-
 +
| <code>alt</code> || No || Description of image for those who cannot see it (see [[WP:ALT|alt text]]).
 +
|-
 +
| <code>imagesize</code> || No || Size of image defined above; default:200px
 +
|-
 +
| <code>caption</code> || No || Caption for the first image
 +
|-
 +
| <code>image2</code> || No || Filename of second image for the header (allows for use of a picture if the logo was used for the first image parameter)
 +
|-
 +
| <code>alt2</code> || No || Description of image for those who cannot see it.
 +
|-
 +
| <code>imagesize2</code> || No || Size of second image defined above; default:200px
 +
|-
 +
| <code>caption2</code> || No || Caption for the first image or both
 
|-
 
|-
| Name || <code>name</code> || style="color: #ff0000;" | Yes || Name of transit system
+
| <code>image3</code> || No || Filename of third image for the header
 
|-
 
|-
| Image || <code>image</code> || No || Filename of image for the header (typically a logo, but photo can be used if no logo is available)
+
| <code>alt3</code> || No || Description of third for those who cannot see it.
 
|-
 
|-
| Image size || <code>imagesize</code> || No || Size of image defined above
+
| <code>imagesize3</code> || No || Size of third image defined above; default:200px
 
|-
 
|-
| Image || <code>image2</code> || No || Filename of second image for the header (allows for use of a picture if the logo wass used for the first image parameter)
+
| <code>caption3</code> || No || Caption for the third image (or all three)
 
|-
 
|-
| Image size || <code>imagesize2</code> || No || Size of second image defined above
+
| <code>native_name</code> || No || Name of the system in its native language (the place's official languages(s))
 
|-
 
|-
| Locale || <code>locale</code> || style="color: #ff0000;" | Yes || City or region transit system is located
+
| <code>owner</code> || No || Owner of transit system (if different than operator; if publicly owned, list that and its stock ticker)
 
|-
 
|-
| Transit type || <code>transit_type</code> || style="color: #ff0000;" | Yes || Type of transit system.  Types ''may'' include (one or more):
+
| <code>area served</code> || No ||  
*[[Regional rail]] – use in lieu of "Commuter 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]]
 
 
|-
 
|-
| System length || <code>system_length</code> || No || System length (use {{tl|mi to km}} or {{tl|km to mi}} to display both [[United States customary units|U.S.]] and [[metric system|metric]] units)
+
| <code>locale</code> || style="color: #ff0000;" | Yes || City or region transit system is located
 
|-
 
|-
| Began operation || <code>began_operation</code> || No || Date system operations began
+
| <code>transit_type</code> || style="color: #ff0000;" | Yes || Type of transit system. Types ''may'' include (one or more):
 +
* [[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]]
 +
or other types of transit. This includes [[Bicycle sharing system]]s which their infoboxes use this template.
 
|-
 
|-
| Ended operation || <code>ended_operation</code> || No || Date system operations ended
+
| <code>lines</code> || No || Number of lines/routes
 
|-
 
|-
| Lines || <code>lines</code> || No || Number of lines/routes
+
| <code>line_number</code> || No || Line number(s) or route number(s)
 
|-
 
|-
| Vehicles || <code>vehicles</code> || No || Number of transit vehicles
+
| <code>start</code> || No || Name of the start of the system/line
 
|-
 
|-
| Stations || <code>stations</code> || No || Number of stations/stops
+
| <code>end</code> || No|| Name of the end of the system/line
 
|-
 
|-
| Daily ridership || <code>ridership</code> || No || Daily system ridership
+
| <code>stations</code> || No || Number of stations/stops
 +
For bicycle share system: This is the number of station areas, not the number of bicycle docks. Ignore this if it is a dockless system.
 
|-
 
|-
| [[Rail gauge|Track gauge]] || <code>track_gauge</code> || No || Track gauge (use template – see [[:Category:Rail transport gauge templates]])
+
| <code>daily_ridership</code><br /> or: <code>ridership</code> || No || Daily system ridership
 
|-
 
|-
| [[Reporting mark]]s || <code>marks</code> || No || Reporting marks of transit operator
+
| <code>annual_ridership</code> || No || Annual system ridership
 
|-
 
|-
| Operator || <code>operator</code> || No || Operator of transit system (typically a subsidiary of the system's owner)
+
| <code>chief_executive</code> || No || Chief executive of the operator
 
|-
 
|-
| Owner || <code>owner</code> || No || Owner of transit system (if different than operator)
+
| <code>headquarters</code> || No || Location of the operator's headquarters (address and city)
 
|-
 
|-
 +
| <code>website</code> || No || Website http address
 +
|-
 +
| <code>began_operation</code> || No || Date system operations began
 +
|-
 +
| <code>operation_will_start</code> || No || Date system operations will start in the future
 +
|-
 +
| <code>ended_operation</code> || No || Date system operations ended
 +
|-
 +
| <code>operator(s)</code> || No || Operator of transit system (typically a subsidiary of the system's owner)
 +
|-
 +
| <code>marks</code> || No || Reporting marks of transit operator
 +
|-
 +
| <code>host</code> || No || Reporting marks or names of railroad companies that own trackage that the transit system uses. Leave blank if system owns all right-of-ways, but add system's own mark if it is mixed between ''owned by system'' and ''trackage rights assigned to system''.
 +
|-
 +
| <code>character</code> || No || Character of system or route – e.g. At-grade street running, or Fully elevated and grade-separated, or Underground subway, etc.
 +
|-
 +
| <code>stock</code> || No || [[Rolling stock]] used
 +
|-
 +
| <code>vehicles</code> || No || Number of transit vehicles (or bicycles for bicycle share)
 +
|-
 +
| <code>train_length</code> || No || Number of traincars or coaches per trainset
 +
|-
 +
| <code>headway</code> || No || Time between trains on the same track
 +
|-
 +
| <code>system_length</code> || No || System length, otherwise known as [[network length (transport)#Route length|route length]] (use <nowiki>{{convert|5|mi|km}}</nowiki> or <nowiki>{{convert|5|km|mi}}</nowiki> to display both [[United States customary units|U.S.]] and [[metric system|metric]] units)
 +
|-
 +
| <code>notrack</code> || No || Number of tracks on the lines the system uses
 +
|-
 +
| <code>track_gauge</code> || No || Track gauge (use template {{tl|Track gauge}})
 +
|-
 +
| <code>ogauge</code> || No || Old track gauge (use template {{tl|Track gauge}})
 +
|-
 +
| <code>minimum_radius_of_curvature</code> || No || (use template {{tl|convert}})
 +
|-
 +
| <code>el</code> || No || [[Overhead lines]] or [[Third rail]], [[Voltage]], AC or DC, etc.
 +
|-
 +
| <code>average_speed</code> || No || Average speed (if known; use <nowiki>{{convert|0|mph|km/h|abbr=on}} or {{convert|0|km/h|mph|abbr=on}}</nowiki> to display both [[United States customary units|U.S.]] and [[metric system|metric]] units))
 +
|-
 +
| <code>top_speed</code> || No || Top speed (if known; use {{tl|convert}} similar to average speed)
 +
|-
 +
| <code>map</code> || No || Map of line
 +
|-
 +
| <code>map_name</code> || No || Title of map; default: System map
 +
|-
 +
| <code>map_state</code> || No || Shows or hides map. Use <code>show</code> or <code>collapsed</code>
 
|}
 
|}
  
==Usage==
+
==Example==
=== Copy and paste ===
+
{{Infobox public transit
<pre>{{Infobox Public transit
+
| name                 = Sochi Light Metro
|name =  
+
| image               = Coat_of_Arms_of_Sochi_(Krasnodar_krai).png
|image =  
+
| imagesize           = 150 px
|imagesize =  
+
| caption              = Bombardier Spacium train mockup
|locale =  
+
| owner                = City of Sochi
|transit_type =  
+
| locale              = [[Sochi]], [[Russia]]
|began_operation =  
+
| transit_type        = [[Medium capacity system|Light Metro]]
|ended_operation =  
+
| lines                = 3
|system_length =  
+
| stations            = 24
|lines =  
+
| operation_will_start = 2013
|vehicles =
+
| system_length        = {{convert|86.4|km|mi|abbr=on}}
|stations =  
+
| track_gauge         = {{Track gauge|1520mm|allk=on}}
|ridership =  
+
| map                  = {{Sochi Light Metro route diagram}}
|track_gauge =
+
| map_state            = collapsed
|reporting marks =  
+
}}
|operator =  
 
|owner =
 
}}</pre>
 
  
=== Example ===
+
An example from the [[Sochi Light Metro]] rapid transit system:
An example from the [[Port Authority Trans-Hudson]] rapid transit system:
+
<pre style="overflow:auto;">
{|style="background-color:transparent;"
+
{{Infobox public transit
|valign=top width=300px|
+
| name                 = Sochi Light Metro
<pre>{{Infobox Public transit
+
| image               = Coat_of_Arms_of_Sochi_(Krasnodar_krai).png
|name = PATH
+
| imagesize           = 150 px
|image = placeholder.png
+
| caption              = Bombardier Spacium train mockup
|imagesize = 200 px
+
| owner                = City of Sochi
|locale = Northern [[New Jersey]] and [[Manhattan]], [[New York]]
+
| locale               = [[Sochi]], [[Russia]]
|transit_type = [[Rapid transit]]
+
| transit_type         = [[Medium capacity system|Light Metro]]
|began_operation = [[1908]]
+
| lines               = 3
|system_length = {{mi to km|13.8|abbr=yes|precision=2|wiki=yes}}
+
| stations             = 24
|lines = 4
+
| operation_will_start = 2013
|stations = 13
+
| system_length        = {{convert|86.4|km|mi|abbr=on}}
|ridership = 239,200
+
| track_gauge          = {{Track gauge|1520mm|allk=on}}
|track_gauge = {{standard gauge}} ([[standard gauge]])
+
| map                  = {{Sochi Light Metro route diagram}}
|marks = PATH; formerly HDM
+
| map_state            = collapsed
|operator=Port Authority Trans-Hudson
 
|owner = [[Port Authority of New York and New Jersey]]
 
}}</pre>
 
|
 
{{Infobox Public transit
 
|name = PATH
 
|image = placeholder.png
 
|imagesize = 200 px
 
|locale = [[Newark, New Jersey|Newark]] / [[Hudson County, New Jersey|Hudson County]], [[New Jersey]] and [[Manhattan]], [[New York]]
 
|transit_type = [[Rapid transit]]
 
|began_operation = [[1908]]
 
|system_length = {{mi to km|13.8|abbr=yes|precision=2|wiki=yes}}
 
|lines = 4
 
|stations = 13
 
|ridership = 239,200
 
|track_gauge = {{standard gauge}} ([[standard gauge]])
 
|marks = PATH; formerly HDM
 
|operator=Port Authority Trans-Hudson
 
|owner = [[Port Authority of New York and New Jersey]]
 
 
}}
 
}}
|}
+
</pre>
 +
 
 +
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 <code>auto</code> will solve this problem.
 +
{{clear}}
 +
 
 +
== Tracking category ==
 +
* {{clc|Public transit articles with unsupported infobox fields}}
 +
 
 +
== TemplateData ==
 +
{{Collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
 +
{{TemplateData header|noheader=1}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"box_width": {
 +
"label": "Infobox width",
 +
"description": "The width of the infobox. Use 'auto' for automatic width.",
 +
"type": "string",
 +
"default": "22em",
 +
"example": "500px"
 +
},
 +
"name": {
 +
"label": "Name",
 +
"description": "The transit system's name.",
 +
"type": "string",
 +
"default": "PAGENAME"
 +
},
 +
"image": {
 +
"label": "First image",
 +
"description": "Image for the header, such as the system's logo, or a photograph.",
 +
"type": "wiki-file-name",
 +
"suggested": true
 +
},
 +
"imagesize": {
 +
"label": "Size of first image",
 +
"description": "Size of the first image, if provided.",
 +
"type": "string",
 +
"default": "200px",
 +
"suggested": true
 +
},
 +
"alt": {
 +
"label": "Alternative text for first image",
 +
"description": "Description of content of the first image, read aloud by screen readers.",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"caption": {
 +
"label": "First image caption",
 +
"description": "Caption of the first image, if provided.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"image2": {
 +
"label": "Second image",
 +
"description": "An additional image for the header.",
 +
"type": "wiki-file-name"
 +
},
 +
"imagesize2": {
 +
"label": "Size of second image",
 +
"description": "Size of the second image, if provided.",
 +
"type": "string",
 +
"default": "200px"
 +
},
 +
"alt2": {
 +
"label": "Alternative text for second image",
 +
"description": "Description of content of the second image, read aloud by screen readers.",
 +
"type": "string"
 +
},
 +
"caption2": {
 +
"label": "Second image caption",
 +
"description": "Caption of the second image, if provided.",
 +
"type": "content"
 +
},
 +
"image3": {
 +
"label": "Third image",
 +
"description": "A third image for the header.",
 +
"type": "wiki-file-name"
 +
},
 +
"imagesize3": {
 +
"label": "Size of third image",
 +
"description": "Size of the third image, if provided.",
 +
"type": "string",
 +
"default": "200px"
 +
},
 +
"alt3": {
 +
"label": "Alternative text for third image",
 +
"description": "Description of content of the third image, read aloud by screen readers.",
 +
"type": "string"
 +
},
 +
"caption3": {
 +
"label": "Third image caption",
 +
"description": "Caption of the third image, if provided.",
 +
"type": "content"
 +
},
 +
"native_name": {
 +
"label": "Native name",
 +
"description": "The name of the system in its local language, if not English. Consider using {{lang}}.",
 +
"type": "string"
 +
},
 +
"owner": {
 +
"label": "Owner(s)",
 +
"description": "The owner(s) of the system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"area served": {
 +
"label": "Area(s) served",
 +
"description": "The area(s) in the specified 'locale' the system serves. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"locale": {
 +
"type": "content",
 +
"label": "Locale",
 +
"description": "The smallest single administrative territorial entity that the complete system serves. May be wikilinked.",
 +
"suggested": true
 +
},
 +
"transit_type": {
 +
"type": "content",
 +
"label": "Transit type(s)",
 +
"description": "The type(s) of the transit system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]). May be wikilinked.",
 +
"suggested": true
 +
},
 +
"lines": {
 +
"label": "Number of lines/routes",
 +
"description": "The number of lines/routes that are part of the system. Does not apply to bicycle-sharing systems.",
 +
"type": "number"
 +
},
 +
"line_number": {
 +
"label": "Line/Route number(s)",
 +
"description": "A list of the lines/routes that are part of the system, for number-based systems with a small number of lines/routes. Delimit with commas. May be wikilinked.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
                "start": {
 +
"label": "Start",
 +
"description": "The name of the system (or line)'s start.",
 +
"example": "empty",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
                "end": {
 +
"label": "End",
 +
"description": "The name of the system (or line)'s start.",
 +
"example": "empty",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"stations": {
 +
"label": "Number of stations/stops",
 +
"description": "The total number of stations or stops in the system. For bike-share systems, this is not the number of bicycle docks.",
 +
"type": "number",
 +
"suggested": true
 +
},
 +
"daily_ridership": {
 +
"aliases": [
 +
"ridership"
 +
],
 +
"label": "Daily ridership",
 +
"description": "The average daily patronage of the system, if available.",
 +
"type": "content"
 +
},
 +
"annual_ridership": {
 +
"label": "Annual ridership",
 +
"description": "The annual patronage of the system. Specify the time interval of the data.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"chief_executive": {
 +
"aliases": [
 +
"key_people"
 +
],
 +
"label": "Chief executive(s)",
 +
"description": "The chief executive(s) or key people of the system's administration. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]). May be wikilinked.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"headquarters": {
 +
"label": "Location of headquarters",
 +
"description": "The address of the administration's headquarters. May be wikilinked.",
 +
"type": "content"
 +
},
 +
"website": {
 +
"label": "Website",
 +
"description": "The URL of the operator's website, using wiki syntax.",
 +
"type": "url",
 +
"suggested": true
 +
},
 +
"began_operation": {
 +
"label": "Opening date (past)",
 +
"description": "The date, however incomplete, of the system's first day of operations. Use 'operation_will_start' for future dates. The use of {{Start date and age}} is recommended, unless the date is a bound/limit (e.g. before April 1907).",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"operation_will_start": {
 +
"label": "Expected opening date (future)",
 +
"description": "The date of the system's expected first day of operations. The use of {{Start date and age}} is recommended.",
 +
"type": "content"
 +
},
 +
"ended_operation": {
 +
"label": "Closing date",
 +
"description": "The date, however incomplete, of the system's last day of operations. The use of {{End date and age}} is recommended, unless the date is a bound/limit (e.g. before April 1907).",
 +
"type": "content"
 +
},
 +
"operator": {
 +
"label": "Operator(s)",
 +
"description": "The operator(s) of the system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"marks": {
 +
"label": "Reporting mark(s)",
 +
"description": "The reporting mark(s) for each operator. Only applies to rail systems in some countries.",
 +
"type": "string"
 +
},
 +
"host": {
 +
"label": "Host railroad(s)",
 +
"description": "The name(s) or reporting mark(s) of the companies owning the rail infrastructure used by the system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]). Ignore if the system owns the entire network.",
 +
"type": "content"
 +
},
 +
"character": {
 +
"label": "Character",
 +
"description": "A brief description of the system's structure.",
 +
"example": "At-grade [[street running]]",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"vehicles": {
 +
"label": "Number of vehicles",
 +
"description": "Total number of vehicles in the system for commuter service.",
 +
"type": "number",
 +
"suggested": true
 +
},
 +
"train_length": {
 +
"label": "Number of sections per vehicle",
 +
"description": "The number of sections (traincars, coaches or bogies) per vehicle. Does not apply to bicycle-sharing systems. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).",
 +
"type": "content"
 +
},
 +
"headway": {
 +
"label": "Headway or service frequency",
 +
"description": "The amount of time between vehicles on the same track. Does not apply to bicycle-sharing system or when used in an article for a system with multiple lines/routes.",
 +
"type": "content"
 +
},
 +
"system_length": {
 +
"label": "System (route) length",
 +
"description": "Total length of all routes in the system. Sections where multiple lines overlap are only counted once. Consider using {{convert}}. Does not apply to bicycle-sharing systems.",
 +
"type": "content"
 +
},
 +
"notrack": {
 +
"label": "Number of tracks",
 +
"description": "The number of tracks on the line the system uses. Does not apply to bus or bicycle-sharing systems.",
 +
"type": "number"
 +
},
 +
"track_gauge": {
 +
"label": "Track gauge",
 +
"description": "The track gauge used by the rail system. Consider using {{track gauge}}. Does not apply to bus or bicycle-sharing systems.",
 +
"type": "content"
 +
},
 +
"ogauge": {
 +
"label": "Former track gauge",
 +
"description": "The former track gauge used by the rail system. Consider using {{track gauge}}. Does not apply to bus or bicycle-sharing systems.",
 +
"type": "content"
 +
},
 +
"minimum_radius_of_curvature": {
 +
"label": "Minimum curve radius",
 +
"description": "The minimum curve radius used by the system. Consider using {{convert}}. Does not apply to bus or bicycle-sharing systems.",
 +
"type": "content"
 +
},
 +
"el": {
 +
"label": "Electrification system",
 +
"description": "The electrification system for transit systems using electricity. If the power source is the mains, specify the voltage, current type (direct or alternating) and delivery method. If the power source is from a battery, just state 'battery'. May be wikilinked.",
 +
"example": "600 [[Volt|V]] [[Direct current|DC]] [[overhead line|overhead]]",
 +
"type": "content"
 +
},
 +
"average_speed": {
 +
"label": "Average speed",
 +
"description": "The average speed of vehicles in the system. Does not apply to bicycle-sharing systems.",
 +
"type": "content"
 +
},
 +
"top_speed": {
 +
"label": "Maximum speed",
 +
"description": "The maximum speed of vehicles in the system. Does not apply to bicycle-sharing systems.",
 +
"type": "content"
 +
},
 +
"map": {
 +
"label": "Map",
 +
"description": "A map of the system. This could be one generated from {{routemap}}, or could be an image file (if this is the case, wiki syntax is required).",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"map_state": {
 +
"label": "Default state of map",
 +
"description": "The initial state of the map, if specified, when the page is loaded. Use 'show' to expand and 'collapsed' to collapse.",
 +
"type": "string",
 +
"default": "show",
 +
"suggested": true
 +
},
 +
"map_name": {
 +
"label": "Map header",
 +
"description": "The header of the map section of the infobox. May be wikilinked.",
 +
"type": "content",
 +
"default": "System map"
 +
}
 +
},
 +
"description": "An infobox for public transit systems. Consider {{Infobox tram network}} for tram/streetcar and trolleybus systems with a more extensive history.",
 +
"format": "block"
 +
}
 +
</templatedata>
 +
{{Collapse bottom}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
[[Category:Transportation infobox templates|Public transport]]
+
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Business infobox templates|Public transport]]
+
[[Category:Rail transport infobox templates|Public transit]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
+
[[Category:Transport infobox templates|Public transit]]
 +
[[Category:Business infobox templates|Public transit]]
 +
[[Category:Templates that add a tracking category]]
  
[[pl:Szablon:Transport publiczny infobox]]
+
}}</includeonly>
</includeonly>
 

Latest revision as of 19:38, 4 December 2020

Template:Parameter names example

This infobox is mainly for rail transit systems. For a specific service within a rail system, or for a rail system with only one route, {{Infobox rail service}} may be a better choice. For railway lines, please use {{Infobox rail line}} instead. For transit bus-only systems, consider using {{Infobox bus transit}}.

Usage

{{Infobox public transit
| box_width                   = 
| name                        = 
| image                       = 
| alt                         = 
| imagesize                   = 
| caption                     = 
| image2                      = 
| alt2                        = 
| imagesize2                  = 
| caption2                    = 
| image3                      = 
| alt3                        = 
| imagesize3                  = 
| caption3                    = 
| native_name                 = <!-- use {{lang}} -->
| owner                       = 
| area served                 = 
| locale                      = 
| transit_type                = 
| lines                       = 
| line_number                 = 
| start                       = 
| end                         =
| stations                    = 
| daily_ridership             = 
| annual_ridership            = 
| chief_executive             = <!-- or | key_people = -->
| headquarters                = 
| website                     = 
| began_operation             = 
| operation_will_start        = 
| ended_operation             =
| operator                    =
| marks                       =
| host                        =
| character                   = 
| stock                       =
| vehicles                    =
| train_length                = 
| headway                     = 
| system_length               = <!-- {{convert|0|mi|km|abbr=on}} -->
| notrack                     =
| track_gauge                 = <!-- {{Track gauge|sg|allk=on}} -->
| ogauge                      = <!-- {{Track gauge|sg|allk=on}} -->
| minimum_radius_of_curvature = <!-- {{convert|0|ft|0|in|mm|0}} -->
| el                          =
| average_speed               = <!-- {{convert|0|mph|km/h|abbr=on}} -->
| top_speed                   = <!-- {{convert|0|mph|km/h|abbr=on}} -->
| map                         =
| map_name                    =
| map_state                   = <!-- show or collapsed -->
}}

Parameters

Parameter Required Description
box_width No Width of infobox, default:22em; Note: use auto for automatic width
name No Name of transit system; default: PAGENAME
image No Filename of image for the header (typically a logo, but photo can be used if no logo is available)
alt No Description of image for those who cannot see it (see alt text).
imagesize No Size of image defined above; default:200px
caption No Caption for the first image
image2 No Filename of second image for the header (allows for use of a picture if the logo was used for the first image parameter)
alt2 No Description of image for those who cannot see it.
imagesize2 No Size of second image defined above; default:200px
caption2 No Caption for the first image or both
image3 No Filename of third image for the header
alt3 No Description of third for those who cannot see it.
imagesize3 No Size of third image defined above; default:200px
caption3 No Caption for the third image (or all three)
native_name No Name of the system in its native language (the place's official languages(s))
owner No Owner of transit system (if different than operator; if publicly owned, list that and its stock ticker)
area served No
locale Yes City or region transit system is located
transit_type Yes Type of transit system. Types may include (one or more):

or other types of transit. This includes Bicycle sharing systems which their infoboxes use this template.

lines No Number of lines/routes
line_number No Line number(s) or route number(s)
start No Name of the start of the system/line
end No Name of the end of the system/line
stations No Number of stations/stops

For bicycle share system: This is the number of station areas, not the number of bicycle docks. Ignore this if it is a dockless system.

daily_ridership
or: ridership
No Daily system ridership
annual_ridership No Annual system ridership
chief_executive No Chief executive of the operator
headquarters No Location of the operator's headquarters (address and city)
website No Website http address
began_operation No Date system operations began
operation_will_start No Date system operations will start in the future
ended_operation No Date system operations ended
operator(s) No Operator of transit system (typically a subsidiary of the system's owner)
marks No Reporting marks of transit operator
host No Reporting marks or names of railroad companies that own trackage that the transit system uses. Leave blank if system owns all right-of-ways, but add system's own mark if it is mixed between owned by system and trackage rights assigned to system.
character No Character of system or route – e.g. At-grade street running, or Fully elevated and grade-separated, or Underground subway, etc.
stock No Rolling stock used
vehicles No Number of transit vehicles (or bicycles for bicycle share)
train_length No Number of traincars or coaches per trainset
headway No Time between trains on the same track
system_length No System length, otherwise known as route length (use {{convert|5|mi|km}} or {{convert|5|km|mi}} to display both U.S. and metric units)
notrack No Number of tracks on the lines the system uses
track_gauge No Track gauge (use template {{Track gauge}})
ogauge No Old track gauge (use template {{Track gauge}})
minimum_radius_of_curvature No (use template {{convert}})
el No Overhead lines or Third rail, Voltage, AC or DC, etc.
average_speed No Average speed (if known; use {{convert|0|mph|km/h|abbr=on}} or {{convert|0|km/h|mph|abbr=on}} to display both U.S. and metric units))
top_speed No Top speed (if known; use {{convert}} similar to average speed)
map No Map of line
map_name No Title of map; default: System map
map_state No Shows or hides map. Use show or collapsed

Example

Sochi Light Metro
Coat of Arms of Sochi (Krasnodar krai).png
Bombardier Spacium train mockup
Overview
OwnerCity of Sochi
LocaleSochi, Russia
Transit typeLight Metro
Number of lines3
Number of stations24
Operation
Operation will start2013
Technical
System length86.4 km (53.7 mi)
Track gaugeTemplate:Track gauge

An example from the Sochi Light Metro rapid transit system:

{{Infobox public transit
| name                 = Sochi Light Metro
| image                = Coat_of_Arms_of_Sochi_(Krasnodar_krai).png
| imagesize            = 150 px
| caption              = Bombardier Spacium train mockup
| owner                = City of Sochi
| locale               = [[Sochi]], [[Russia]]
| transit_type         = [[Medium capacity system|Light Metro]]
| lines                = 3
| stations             = 24
| operation_will_start = 2013
| system_length        = {{convert|86.4|km|mi|abbr=on}}
| track_gauge          = {{Track gauge|1520mm|allk=on}}
| map                  = {{Sochi Light Metro route diagram}}
| map_state            = collapsed
}}

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.

Tracking category

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for Infobox public transit

An infobox for public transit systems. Consider {{Infobox tram network}} for tram/streetcar and trolleybus systems with a more extensive history.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Infobox widthbox_width

The width of the infobox. Use 'auto' for automatic width.

Default
22em
Example
500px
Stringoptional
Namename

The transit system's name.

Default
PAGENAME
Stringoptional
First imageimage

Image for the header, such as the system's logo, or a photograph.

Filesuggested
Size of first imageimagesize

Size of the first image, if provided.

Default
200px
Stringsuggested
Alternative text for first imagealt

Description of content of the first image, read aloud by screen readers.

Stringsuggested
First image captioncaption

Caption of the first image, if provided.

Contentsuggested
Second imageimage2

An additional image for the header.

Fileoptional
Size of second imageimagesize2

Size of the second image, if provided.

Default
200px
Stringoptional
Alternative text for second imagealt2

Description of content of the second image, read aloud by screen readers.

Stringoptional
Second image captioncaption2

Caption of the second image, if provided.

Contentoptional
Third imageimage3

A third image for the header.

Fileoptional
Size of third imageimagesize3

Size of the third image, if provided.

Default
200px
Stringoptional
Alternative text for third imagealt3

Description of content of the third image, read aloud by screen readers.

Stringoptional
Third image captioncaption3

Caption of the third image, if provided.

Contentoptional
Native namenative_name

The name of the system in its local language, if not English. Consider using {{lang}}.

Stringoptional
Owner(s)owner

The owner(s) of the system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).

Contentsuggested
Area(s) servedarea served

The area(s) in the specified 'locale' the system serves. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).

Contentsuggested
Localelocale

The smallest single administrative territorial entity that the complete system serves. May be wikilinked.

Contentsuggested
Transit type(s)transit_type

The type(s) of the transit system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]). May be wikilinked.

Contentsuggested
Number of lines/routeslines

The number of lines/routes that are part of the system. Does not apply to bicycle-sharing systems.

Numberoptional
Line/Route number(s)line_number

A list of the lines/routes that are part of the system, for number-based systems with a small number of lines/routes. Delimit with commas. May be wikilinked.

Contentsuggested
Startstart

The name of the system (or line)'s start.

Example
empty
Contentsuggested
Endend

The name of the system (or line)'s start.

Example
empty
Contentsuggested
Number of stations/stopsstations

The total number of stations or stops in the system. For bike-share systems, this is not the number of bicycle docks.

Numbersuggested
Daily ridershipdaily_ridership ridership

The average daily patronage of the system, if available.

Contentoptional
Annual ridershipannual_ridership

The annual patronage of the system. Specify the time interval of the data.

Contentsuggested
Chief executive(s)chief_executive key_people

The chief executive(s) or key people of the system's administration. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]). May be wikilinked.

Contentsuggested
Location of headquartersheadquarters

The address of the administration's headquarters. May be wikilinked.

Contentoptional
Websitewebsite

The URL of the operator's website, using wiki syntax.

URLsuggested
Opening date (past)began_operation

The date, however incomplete, of the system's first day of operations. Use 'operation_will_start' for future dates. The use of {{Start date and age}} is recommended, unless the date is a bound/limit (e.g. before April 1907).

Contentsuggested
Expected opening date (future)operation_will_start

The date of the system's expected first day of operations. The use of {{Start date and age}} is recommended.

Contentoptional
Closing dateended_operation

The date, however incomplete, of the system's last day of operations. The use of {{End date and age}} is recommended, unless the date is a bound/limit (e.g. before April 1907).

Contentoptional
Operator(s)operator

The operator(s) of the system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).

Contentsuggested
Reporting mark(s)marks

The reporting mark(s) for each operator. Only applies to rail systems in some countries.

Stringoptional
Host railroad(s)host

The name(s) or reporting mark(s) of the companies owning the rail infrastructure used by the system. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]). Ignore if the system owns the entire network.

Contentoptional
Charactercharacter

A brief description of the system's structure.

Example
At-grade [[street running]]
Contentsuggested
Number of vehiclesvehicles

Total number of vehicles in the system for commuter service.

Numbersuggested
Number of sections per vehicletrain_length

The number of sections (traincars, coaches or bogies) per vehicle. Does not apply to bicycle-sharing systems. Use {{plainlist}} or {{unbulleted list}} if multiple (see [[MOS:PLIST]]).

Contentoptional
Headway or service frequencyheadway

The amount of time between vehicles on the same track. Does not apply to bicycle-sharing system or when used in an article for a system with multiple lines/routes.

Contentoptional
System (route) lengthsystem_length

Total length of all routes in the system. Sections where multiple lines overlap are only counted once. Consider using {{convert}}. Does not apply to bicycle-sharing systems.

Contentoptional
Number of tracksnotrack

The number of tracks on the line the system uses. Does not apply to bus or bicycle-sharing systems.

Numberoptional
Track gaugetrack_gauge

The track gauge used by the rail system. Consider using {{track gauge}}. Does not apply to bus or bicycle-sharing systems.

Contentoptional
Former track gaugeogauge

The former track gauge used by the rail system. Consider using {{track gauge}}. Does not apply to bus or bicycle-sharing systems.

Contentoptional
Minimum curve radiusminimum_radius_of_curvature

The minimum curve radius used by the system. Consider using {{convert}}. Does not apply to bus or bicycle-sharing systems.

Contentoptional
Electrification systemel

The electrification system for transit systems using electricity. If the power source is the mains, specify the voltage, current type (direct or alternating) and delivery method. If the power source is from a battery, just state 'battery'. May be wikilinked.

Example
600 [[Volt|V]] [[Direct current|DC]] [[overhead line|overhead]]
Contentoptional
Average speedaverage_speed

The average speed of vehicles in the system. Does not apply to bicycle-sharing systems.

Contentoptional
Maximum speedtop_speed

The maximum speed of vehicles in the system. Does not apply to bicycle-sharing systems.

Contentoptional
Mapmap

A map of the system. This could be one generated from {{routemap}}, or could be an image file (if this is the case, wiki syntax is required).

Contentsuggested
Default state of mapmap_state

The initial state of the map, if specified, when the page is loaded. Use 'show' to expand and 'collapsed' to collapse.

Default
show
Stringsuggested
Map headermap_name

The header of the map section of the infobox. May be wikilinked.

Default
System map
Contentoptional