Jump to content

Template:Wp/mrh/Infobox rail service

From Wikimedia Incubator
Wp/mrh/Infobox rail service

Script error: No such module "Parameter validation".

Documentation icon Template documentation[view] [edit] [history] [purge]

Template:Documentation subpage

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

[edit source]

Template:Parameter names example

{{Infobox rail service
| box_width       =
| name            =
| color           =
| logo            =
| logo_width      =
| image           =
| image_width     =
| alt             =
| caption         =
| type            =
| status          =
| locale          =
| predecessor     =
| first           = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| last            = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| 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          =
}}

Template:Clear

Example

[edit source]

Template:Infobox rail service

{{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
| alt             = Blue train on single track surrounded by trees near a river
| caption         = The TranzAlpine skirting the [[Waimakariri River]].
| type            = [[Inter-city rail]]
| status          = Operating
| locale          = [[South Island]], [[New Zealand]]
| first           = {{Start date|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             = {{Midland Line, New Zealand}}
| map_state       = collapsed
}}

Template:Clear

Example with the color parameter

[edit source]

Template:Infobox rail service

{{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
| alt             = Blue train on single track surrounded by trees near a river
| 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
}}

Template:Clear

Tracking categories

[edit source]

Parameters

[edit source]
NameParameterRequiredDefinition
Infobox widthbox_widthNoWidth of infobox, default: 25em; Note: use auto for automatic width
NamenameNoName of rail service; default:Article Name
ColorcolorNoColor of rail service (6-digit hex code without "#"); Switching the display location for the name parameter
LogologoNoFilename of image for the logo
Logo widthlogo_widthNoSize of logo, default: 200px
ImageimageNoFilename of image
Image widthimage_widthNoSize of image, default: 250px
AltaltNoAlternative text for the image
CaptioncaptionNoCaption of image
Info section
TypetypeNoType of passenger service (e.g. inter-city, regional, commuter)
StatusstatusNoStatus of rail service
LocalelocaleNoCity or region transit system is located
PredecessorpredecessorNoThe name of the predecessor to the service (e.g. OverlanderSilver Fern)
First servicefirstNoDate of the first public service
Last servicelastNoDate of the last public service
SuccessorsuccessorNoThe name of the successor to the service
Current operator(s)operatorNoThe name(s) of the current operator(s) of the service (e.g. Amtrak, SNCF, Tranz Scenic)
Former operator(s)predecessorNoThe name(s) of the former operator(s) of the service (e.g. British Rail, Union Pacific)
RidershipridershipNoService ridership (i.e. average daily, average weekday, average weekly, or average monthly)
Annual ridershipridership2NoAnnual service ridership
WebsitewebsiteNoWebsite for service
Route section
StartstartNoName of starting terminal station
StopsstopsNoNumber of stations/stops en route
EndendNoName of ending terminal station
Distance travelleddistanceNoDistance 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 timejourneytimeNoThe average journey time of the service
Service frequencyfrequencyNoThe frequency of the service (e.g. hourly, daily, weekly)
Train number(s)trainnumberNoThe official train numbers as shown in all employee and some passenger timetables
Line(s) usedline_usedNoThe line(s) used by the service
On-board service section
ClassesclassNo
Disables accessaccessNo
Seating arrangementsseatingNo
Sleeping arrangementssleepingNo
Auto-rack arrangementsautorackNo
Catering facilitiescateringNo
Observation facilitiesobservationNo
Entertainment facilitiesentertainmentNo
Baggage facilitiesbaggageNo
Other facilitiesotherfacilitiesNo
Technical section
Rolling stockstockNoThe type of rolling stock used for the service
GaugegaugeNoThe track gauge used. Please use {{Track gauge}}.
ElectrificationelNoThe voltage and frequency used, if the route is electrified
Operating speedspeedNoThe speed of the service
Average lengthtrainlengthNoThe average length of the train
Track owner(s)ownersNoThe 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)routenumberNoThe Timetable number.
Rake maintenancemaintenanceNoThe yard where the maintenance of the rake done.
Rake sharingsharingNoThe same rake used for other services.
Route map section
MapmapNoMap of line
Map titlemap_nameNoTitle of map; default: Route map
Show/hide line mapmap_stateNoShows or hides map. Use show or collapsed
Module section
ModulemoduleNoUsed for embedding other infoboxes into this infobox

Template:Sandbox other Template:TemplateData header

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
box_widthbox_width

no description

Unknownoptional
colorcolor

no description

Unknownoptional
namename

no description

Unknownoptional
color2color2

no description

Unknownoptional
logologo

no description

Unknownoptional
logo_widthlogo_width

no description

Unknownoptional
logo_altlogo_alt

no description

Unknownoptional
imageimage

no description

Unknownoptional
image_widthimage_width

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
altalt

no description

Unknownoptional
captioncaption

no description

Unknownoptional
typetype

no description

Unknownoptional
statusstatus

no description

Unknownoptional
localelocale

no description

Unknownoptional
predecessorpredecessor

no description

Unknownoptional
First servicefirst

no description

Dateoptional
Last servicelast

no description

Dateoptional
successorsuccessor

no description

Unknownoptional
operatoroperator

no description

Unknownoptional
formeroperatorformeroperator

no description

Unknownoptional
ridershipridership

no description

Unknownoptional
ridership2ridership2

no description

Unknownoptional
websitewebsite

no description

Unknownoptional
startstart

no description

Unknownoptional
stopsstops

no description

Unknownoptional
endend

no description

Unknownoptional
distancedistance

no description

Unknownoptional
journeytimejourneytime

no description

Unknownoptional
frequencyfrequency

no description

Unknownoptional
trainnumbertrainnumber

no description

Unknownoptional
line_usedline_used

no description

Unknownoptional
classclass

no description

Unknownoptional
accessaccess

no description

Unknownoptional
seatingseating

no description

Unknownoptional
sleepingsleeping

no description

Unknownoptional
autorackautorack

no description

Unknownoptional
cateringcatering

no description

Unknownoptional
observationobservation

no description

Unknownoptional
entertainmententertainment

no description

Unknownoptional
baggagebaggage

no description

Unknownoptional
otherfacilitiesotherfacilities

no description

Unknownoptional
stockstock

no description

Unknownoptional
gaugegauge

no description

Unknownoptional
elel

no description

Unknownoptional
speedspeed

no description

Unknownoptional
trainlengthtrainlength

no description

Unknownoptional
ownersowners

no description

Unknownoptional
routenumberroutenumber

no description

Unknownoptional
maintenancemaintenance

no description

Unknownoptional
sharingsharing

no description

Unknownoptional
mapmap

no description

Unknownoptional
map_statemap_state

no description

Unknownoptional
map_namemap_name

no description

Unknownoptional
modulemodule

no description

Unknownoptional
Systemsystem

no description

Unknownoptional
daily_ridershipdaily_ridership

no description

Unknownoptional
electrificationelectrification

no description

Unknownoptional
statesstates

no description

Unknowndeprecated
journey timejourney time

no description

Unknowndeprecated
train numbertrain number

no description

Unknowndeprecated