Template:Infobox heritage railway/doc

From The Global Wiki
Jump to navigation Jump to search

This infobox template is for use on heritage railway articles; please supply references to information, where appropriate.

Parameters

Script error: No such module "Parameter names example".

This shows all available parameters of this infobox template. You can copy this whole form to your article and fill in the entries you need.

{{Infobox heritage railway
 | name               = 
 | other_name         = 
 | logo               = 
 | logo_width         = 
 | logo_alt           = 
 | color              = 
 | image              = 
 | image_width        = 
 | image_alt          =
 | caption            = 
 | locale             = 
 | terminus           = 
 | coordinates        = <!-- {{coord|type:landmark|display=inline,title}} -->
 | map                = 
 | mapsize            = 
 | map_alt            = 
 | map_caption        = 
 | connections        = 
 | linename           = 
 | builtby            = 
 | originalgauge      = 
 | originalrack       = 
 | originalelec       = 
 | owned              = 
 | operator           = 
 | marks              = 
 | stations           = 
 | length             = 
 | preservedgauge     = 
 | preservedrack      = 
 | preservedelec      = 
 | originalopen       = 
 | com-years          = 
 | com-events         = 
 | com-years1         = <!-- up to |com-years9= -->
 | com-events1        = <!-- up to |com-events9= -->
 | closedpassengers   = 
 | closed             = 
 | era                = 
 | stageyears         = 
 | stage              = 
 | years              = 
 | events             = 
 | years1             = <!-- up to |years12= -->
 | events1            = <!-- up to |events12= -->
 | headquarters       = 
 | website            = 
 | routemap           = 
 | routemap_state     = 
 | routemap_name      = 
 | embedded           = 
}}

Usage

Overview

name name of the heritage railway
other_name alternative name for railway
logo file name of the logo image, doesn't require the File: prefix
logo_width width of the logo image. 200px by default
logo_alt alt attribute of the logo, as per WP:ALT
image another image, usually a photo of the facility or the train, parameter functions more similar to the logo parameter so you don't need to enter the full syntax for the image. Alternatively this parameter actually gives you freedom to put anything other than image inside, but be sensible.
image_width width of the image of image parameter. 265px by default.
image_alt alt attribute of the image of image parameter
caption caption text below the image rendering
locale locale of railway; county or local authority, etc.
terminus main terminus of the railway
coordinates coordinates of principal station (where relevant) – use {{coord}} with region; region codes should comply with ISO 3166-2, e.g. region:GB.
map file name of the map image, doesn't require the File: prefix
mapsize width of map image. 265px by default.
map_alt alternative text for map for screen readers
map_caption caption for map above
connections list connections to other railway networks (Network Rail etc.)

Commercial operations

linename name of the railway in its pre-preservation state
builtby name of railway's constructor; most likely a railway company
originalgauge details of pre-preservation track gauge
originalrack details of pre-preservation rack system (if applicable)
originalelec details of pre-preservation electrification

Preserved operations

owned owner/maintainer of heritage railway's infrastructure etc.
operator current operator of heritage railway
marks reporting mark of the heritage railway
stations number of stations on heritage railway
length length of heritage railway in its current state
preservedgauge details of current track gauge
preservedrack details of current rack system (if applicable)
preservedelec details of current electrification
originalopen original opening

Commercial history

com-years year of event of significant importance
com-events event of significant importance
com-years# [as above]
com-events# [as above]
* With "#" available from 1 to 9
closedpassengers year of end of passenger services
closed year of closure to all traffic
era era

Preservation history

stageyears [retained for historical reasons, now superseded by years] Not quite true
stage [retained for historical reasons, now superseded by events] Not quite true
years year of event of importance to preservation
events event of importance to preservation
years# [as above]
events# [as above]
* With "#" available from 1 to 12
headquarters [headquarters]
website Official website only. Either enter the full URL, as in |website=http://www.example.com/ or use the {{URL}} template as in |website={{URL|www.example.com}}
embedded Pass other infoboxes to embed in this one

Transcluding route map

routemap the buttom space for a route diagram. If your route map is built up by the templates of project:route diagram template, the whole map is best to be written in a separate templatebasing on {{BS-map}} with inline=1 parameter. This will prevent the map from breaking up in IE7 or older browsers. See West Coast Wilderness Railway for example.
routemap_state collapse state of the route map section. "Show" by default. Input collapsed to "hide" the map in the article by default.
routemap_name header title of the routemap section, Route map by default

Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

If the place or venue has an "established", "founded", "opened" or similar date that is specific to the day, use {{start date}} unless the date is before 1583 CE. If it has a URL, use {{URL}}.

hCard uses HTML classes including:

  • adr
  • category
  • country-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • street-address
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.

Tracking category