Difference between revisions of "Template:Infobox rail service"
imported>The RedBurn (+trainlength) |
imported>Paper9oll (Added module, see testcase subpage for example) |
||
| Line 106: | Line 106: | ||
}} | }} | ||
}} | }} | ||
| + | | data48 = {{{module|}}} | ||
}}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude> | }}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude> | ||
Latest revision as of 11:51, 18 January 2021
[[Category:Infobox templates|Template:Remove first word]]
Usage
This template is designed to supply information on passenger rail services or auto-train services. It is based on Template:Infobox rail line, with parameters altered to suit passenger trains.
Blank syntax
Template:Parameter names example
{{Infobox rail service
| box_width =
| name =
| color =
| logo =
| logo_width =
| image =
| image_width =
| caption =
| type =
| status =
| locale =
| predecessor =
| first =
| last =
| successor =
| operator =
| formeroperator =
| ridership =
| ridership2 =
| website =
| start =
| stops =
| end =
| distance =
| journeytime =
| frequency =
| trainnumber =
| line_used =
| class =
| access =
| seating =
| sleeping =
| autorack =
| catering =
| observation =
| entertainment =
| baggage =
| otherfacilities =
| stock =
| gauge =
| el =
| speed =
| trainlength =
| owners =
| routenumber =
| maintenance =
| sharing =
| map =
| map_state =
| module =
}}
Example
![]() The TranzAlpine skirting the Waimakariri River. | |||||
| Overview | |||||
|---|---|---|---|---|---|
| Service type | Inter-city rail | ||||
| Status | Operating | ||||
| Locale | South Island, New Zealand | ||||
| First service | Template:Start date and age | ||||
| Current operator(s) | Tranz Scenic, a division of KiwiRail | ||||
| Former operator(s) | InterCity Rail (1987–95) | ||||
| Ridership | 204,000 (2006 financial year) | ||||
| Website | Template:URL | ||||
| Route | |||||
| Start | Christchurch | ||||
| Stops | 9 | ||||
| End | Greymouth | ||||
| Distance travelled | 223 km (139 mi) | ||||
| Average journey time | 4 hours, 25 minutes | ||||
| Service frequency | Daily each way | ||||
| On-board services | |||||
| Class(es) | Standard class only | ||||
| Disabled access | Restricted due to age of rolling stock | ||||
| Seating arrangements |
| ||||
| Catering facilities | On-board café | ||||
| Observation facilities |
| ||||
| Baggage facilities |
| ||||
| Technical | |||||
| Rolling stock |
| ||||
| Track gauge | Template:Track gauge | ||||
| |||||
{{Infobox rail service
| box_width = 25em
| name = TranzAlpine
| color =
| logo = <!-- Do not use a non-free image here, per WP:NFCC #9 -->
| logo_width =
| image = Tranz_alpine.jpg
| image_width = 300px
| caption = The TranzAlpine skirting the [[Waimakariri River]].
| type = [[Inter-city rail]]
| status = Operating
| locale = [[South Island]], [[New Zealand]]
| first = {{Start date and age|1987|11|22|df=y}}
| last =
| operator = [[Tranz Scenic]], a division of [[KiwiRail]]
| formeroperator = [[Tranz Scenic|InterCity Rail]] (1987–95)
| ridership = 204,000 (2006 financial year)
| website = {{URL|www.kiwirailscenic.co.nz/tranzalpine/|TranzAlpine}}
| start = [[Christchurch]]
| stops = 9
| end = [[Greymouth]]
| distance = {{convert|223|km|abbr=on}}
| journeytime = 4 hours, 25 minutes
| frequency = Daily each way
| class = Standard class only
| access = Restricted due to age of rolling stock
| seating = {{Hlist|Airline style|table bay}}
| sleeping =
| autorack =
| catering = On-board café
| observation = {{Hlist|Large windows in all carriages|open-air carriage in middle of train}}
| entertainment =
| baggage = {{Hlist|Overhead racks|baggage carriage}}
| otherfacilities =
| stock = {{Plainlist|
* Two [[NZR DC class]] locomotives
* Nine [[NZR 56-foot carriage]]s
* One NZR 56-foot baggage carriage
* One open-air observation carriage
}}
| gauge = {{Track gauge|1067mm}}
| el =
| speed =
| maintenance =
| sharing =
| map = {{infobox rdt|Midland Line, New Zealand}}
| map_state = collapsed
}}
Example with the color parameter
| TranzAlpine | |
|---|---|
![]() The TranzAlpine skirting the Waimakariri River. | |
| Overview | |
| Service type | Inter-city rail |
| Status | Operating |
| Locale | South Island, New Zealand |
| First service | Template:Start date and age |
| Current operator(s) | Tranz Scenic, a division of KiwiRail |
| Former operator(s) | InterCity Rail (1987–95) |
| Ridership | 204,000 (2006 financial year) |
| Website | Template:URL |
| Route | |
| Start | Christchurch |
| Stops | 9 |
| End | Greymouth |
| Distance travelled | 223 km (139 mi) |
| Average journey time | 4 hours, 25 minutes |
| Service frequency | Daily each way |
{{Infobox rail service
| box_width = 25em
| name = TranzAlpine
| color = 27aae1
| logo = <!-- Do not use a non-free image here, per WP:NFCC #9 -->
| logo_width =
| image = Tranz_alpine.jpg
| image_width = 300px
| caption = The TranzAlpine skirting the [[Waimakariri River]].
| type = [[Inter-city rail]]
| status = Operating
| locale = [[South Island]], [[New Zealand]]
| first = {{Start date and age|1987|11|22|df=y}}
| last =
| operator = [[Tranz Scenic]], a division of [[KiwiRail]]
| formeroperator = [[Tranz Scenic|InterCity Rail]] (1987–95)
| ridership = 204,000 (2006 financial year)
| website = {{URL|www.kiwirailscenic.co.nz/tranzalpine/|TranzAlpine}}
| start = [[Christchurch]]
| stops = 9
| end = [[Greymouth]]
| distance = {{convert|223|km|abbr=on}}
| journeytime = 4 hours, 25 minutes
| frequency = Daily each way
}}
Parameters
| Name | Parameter | Required | Definition |
|---|---|---|---|
| Infobox width | box_width |
No | Width of infobox, default: 25em; Note: use auto for automatic width
|
| Name | name |
No | Name of rail service; default:Article Name |
| Color | color |
No | Color of rail service (6-digit hex code without "#"); Switching the display location for the name parameter |
| Logo | logo |
No | Filename of image for the logo |
| Logo width | logo_width |
No | Size of logo, default: 200px |
| Image | image |
No | Filename of image |
| Image width | image_width |
No | Size of image, default: 250px |
| Caption | caption |
No | Caption of image |
| Info section | |||
| Type | type |
No | Type of passenger service (e.g. inter-city, regional, commuter) |
| Status | status |
No | Status of rail service |
| Locale | locale |
No | City or region transit system is located |
| Predecessor | predecessor |
No | The name of the predecessor to the service (e.g. Overlander → Silver Fern) |
| First service | first |
No | Date of the first public service |
| Last service | last |
No | Date of the last public service |
| Successor | successor |
No | The name of the successor to the service |
| Current operator(s) | operator |
No | The name(s) of the current operator(s) of the service (e.g. Amtrak, SNCF, Tranz Scenic) |
| Former operator(s) | predecessor |
No | The name(s) of the former operator(s) of the service (e.g. British Rail, Union Pacific) |
| Ridership | ridership |
No | Service ridership (i.e. average daily, average weekday, average weekly, or average monthly) |
| Annual ridership | ridership2 |
No | Annual service ridership |
| Website | website |
No | Website for service |
| Route section | |||
| Start | start |
No | Name of starting terminal station |
| Stops | stops |
No | Number of stations/stops en route |
| End | end |
No | Name of ending terminal station |
| Distance travelled | distance |
No | Distance travelled by the service - use {{convert|x|km|mi|0|abbr=on}} or {{convert|x|km|mi|0|abbr=on}} to allow automatic conversion between kilometres and miles. |
| Average journey time | journeytime |
No | The average journey time of the service |
| Service frequency | frequency |
No | The frequency of the service (e.g. hourly, daily, weekly) |
| Train number(s) | trainnumber |
No | The official train numbers as shown in all employee and some passenger timetables |
| Line(s) used | line_used |
No | The line(s) used by the service |
| On-board service section | |||
| Classes | class |
No | |
| Disables access | access |
No | |
| Seating arrangements | seating |
No | |
| Sleeping arrangements | sleeping |
No | |
| Auto-rack arrangements | autorack |
No | |
| Catering facilities | catering |
No | |
| Observation facilities | observation |
No | |
| Entertainment facilities | entertainment |
No | |
| Baggage facilities | baggage |
No | |
| Other facilities | otherfacilities |
No | |
| Technical section | |||
| Rolling stock | stock |
No | The type of rolling stock used for the service |
| Gauge | gauge |
No | The track gauge used. Please use {{Track gauge}}. |
| Electrification | el |
No | The voltage and frequency used, if the route is electrified |
| Operating speed | speed |
No | The speed of the service |
| Average length | trainlength |
No | The average length of the train |
| Track owner(s) | owners |
No | The owners of the track on which the service runs, if different to the operator (e.g. Amtrak outside of the Northeast Corridor). |
| Timetable number(s) | routenumber |
No | The Timetable number. |
| Rake maintenance | maintenance |
No | The yard where the maintenance of the rake done. |
| Rake sharing | sharing |
No | The same rake used for other services. |
| Route map section | |||
| Map | map |
No | Map of line |
| Map title | map_name |
No | Title of map; default: Route map |
| Show/hide line map | map_state |
No | Shows or hides map. Use show or collapsed
|
| Module section | |||
| Module | module |
No | Used for embedding other infoboxes into this infobox |
This template is designed to supply information on passenger rail services or auto-train services. It is based on the template Infobox rail line, with parameters altered to suit passenger trains.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Box_width | box_width | no description | Unknown | optional |
| Color | color | no description | Unknown | optional |
| Name | name | no description | Unknown | optional |
| Color2 | color2 | no description | Unknown | optional |
| Logo | logo | no description | Unknown | optional |
| Logo_width | logo_width | no description | Unknown | optional |
| Image | image | no description | Unknown | optional |
| Image_width | image_width | no description | Unknown | optional |
| Image_size | image_size | no description | Unknown | optional |
| Caption | caption | no description | Unknown | optional |
| Type | type | no description | Unknown | optional |
| Status | status | no description | Unknown | optional |
| Locale | locale | no description | Unknown | optional |
| Predecessor | predecessor | no description | Unknown | optional |
| First | first | no description | Unknown | optional |
| Last | last | no description | Unknown | optional |
| Successor | successor | no description | Unknown | optional |
| Operator | operator | no description | Unknown | optional |
| Formeroperator | formeroperator | no description | Unknown | optional |
| Ridership | ridership | no description | Unknown | optional |
| Ridership2 | ridership2 | no description | Unknown | optional |
| Website | website | no description | Unknown | optional |
| Start | start | no description | Unknown | optional |
| Stops | stops | no description | Unknown | optional |
| End | end | no description | Unknown | optional |
| Distance | distance | no description | Unknown | optional |
| Journeytime | journeytime | no description | Unknown | optional |
| Frequency | frequency | no description | Unknown | optional |
| Trainnumber | trainnumber | no description | Unknown | optional |
| Line_used | line_used | no description | Unknown | optional |
| Class | class | no description | Unknown | optional |
| Access | access | no description | Unknown | optional |
| Seating | seating | no description | Unknown | optional |
| Sleeping | sleeping | no description | Unknown | optional |
| Autorack | autorack | no description | Unknown | optional |
| Catering | catering | no description | Unknown | optional |
| Observation | observation | no description | Unknown | optional |
| Entertainment | entertainment | no description | Unknown | optional |
| Baggage | baggage | no description | Unknown | optional |
| Otherfacilities | otherfacilities | no description | Unknown | optional |
| Stock | stock | no description | Unknown | optional |
| Gauge | gauge | no description | Unknown | optional |
| El | el | no description | Unknown | optional |
| Speed | speed | no description | Unknown | optional |
| Trainlength | trainlength | no description | Unknown | optional |
| Owners | owners | no description | Unknown | optional |
| Routenumber | routenumber | no description | Unknown | optional |
| Maintenance | maintenance | no description | Unknown | optional |
| Sharing | sharing | no description | Unknown | optional |
| Map | map | no description | Unknown | optional |
| Map_state | map_state | no description | Unknown | optional |
| Map_name | map_name | no description | Unknown | optional |
| Module | module | no description | Unknown | optional |
| The above documentation is transcluded from Template:Infobox rail service/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. |
