Difference between revisions of "Template:Infobox public transit"
imported>Cards84664 (Undid revision 860854136 by Brianbbrian (talk)) |
imported>PhiH (add {{{stock|}}}) |
||
| Line 44: | Line 44: | ||
| data16 = {{{website|}}} | | data16 = {{{website|}}} | ||
| − | | header17 = {{#if:{{{began_operation|}}}{{{operation_will_start|}}}{{{ended_operation|}}}{{{operator|}}}{{{marks|{{{reporting marks|}}}}}}{{{host|}}}{{{character|}}}{{{vehicles|}}}{{{train_length|}}}{{{headway|}}}|Operation}} | + | | header17 = {{#if:{{{began_operation|}}}{{{operation_will_start|}}}{{{ended_operation|}}}{{{operator|}}}{{{marks|{{{reporting marks|}}}}}}{{{host|}}}{{{character|}}}{{{stock|}}} {{{vehicles|}}}{{{train_length|}}}{{{headway|}}}|Operation}} |
| label18 = Began operation | | label18 = Began operation | ||
| data18 = {{{began_operation|}}} | | data18 = {{{began_operation|}}} | ||
| Line 59: | Line 59: | ||
| label24 = Character | | label24 = Character | ||
| data24 = {{{character|}}} | | data24 = {{{character|}}} | ||
| − | | label25 = Number of vehicles | + | | label25 = [[Rolling stock]] |
| − | | | + | | data25 = {{{stock|}}} |
| − | | | + | | label26 = Number of vehicles |
| − | | | + | | data26 = {{{vehicles|}}} |
| − | | | + | | label27 = Train length |
| − | | | + | | data27 = {{{train_length|}}} |
| + | | label28 = [[Headway]] | ||
| + | | data28 = {{{headway|}}} | ||
| − | | | + | | header29= {{#if:{{{system_length|}}}{{{notrack|}}}{{{track_gauge|}}}{{{ogauge|}}}{{{minimum_radius_of_curvature|}}}{{{el|}}}{{{average_speed|}}}{{{top_speed|}}}|Technical}} |
| − | | | + | | label30 = System length |
| − | | | + | | data30 = {{{system_length|}}} |
| − | | | + | | label31 = No. of tracks |
| − | | | + | | data31 = {{{notrack|}}} |
| − | | | + | | label32 = [[Track gauge]] |
| − | | | + | | data32 = {{{track_gauge|}}} |
| − | | | + | | label33 = Old gauge |
| − | | | + | | data33 = {{{ogauge|}}} |
| − | | | + | | label34 = [[Minimum railway curve radius|Minimum radius of curvature]] |
| − | | | + | | data34 = {{{minimum_radius_of_curvature|}}} |
| − | | | + | | label35 = [[Railway electrification system|Electrification]] |
| − | | | + | | data35 = {{{el|}}} |
| − | | | + | | label36 = Average speed |
| − | | | + | | data36 = {{{average_speed|}}} |
| − | | | + | | label37 = Top speed |
| − | | | + | | data37 = {{{top_speed|}}} |
| below = {{#if:{{{map|}}}| | | below = {{#if:{{{map|}}}| | ||
| Line 96: | Line 98: | ||
| native_name | owner | area served | locale | transit_type | lines | line_number | start | end | stations | ridership | daily_ridership | annual_ridership | | native_name | owner | area served | locale | transit_type | lines | line_number | start | end | stations | ridership | daily_ridership | annual_ridership | ||
| chief_executive | key_people | headquarters | website | began_operation | operation_will_start | ended_operation | operator | marks |reporting marks| host | character | | chief_executive | key_people | headquarters | website | began_operation | operation_will_start | ended_operation | operator | marks |reporting marks| host | character | ||
| − | | vehicles|train_length | headway | system_length | notrack | track_gauge | ogauge | minimum_radius_of_curvature | el | average_speed | top_speed | + | | stock | vehicles|train_length | headway | system_length | notrack | track_gauge | ogauge | minimum_radius_of_curvature | el | average_speed | top_speed |
| map | map_state | map_name | | map | map_state | map_name | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --> | {{Documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:34, 4 December 2020
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
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_ridershipor: 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
![]() Bombardier Spacium train mockup | |||
| Overview | |||
|---|---|---|---|
| Owner | City of Sochi | ||
| Locale | Sochi, Russia | ||
| Transit type | Light Metro | ||
| Number of lines | 3 | ||
| Number of stations | 24 | ||
| Operation | |||
| Operation will start | 2013 | ||
| Technical | |||
| System length | 86.4 km (53.7 mi) | ||
| Track gauge | Template: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.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The above documentation is transcluded from Template:Infobox public transit/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
