Template:Infobox heritage railway/doc
File:Edit-copy green.svg | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
File:Lua-Logo.svg | This template uses Lua: |
This infobox template is for use on heritage railway articles; please supply references to information, where appropriate.
Parameters
{{{name}}} | |||||
---|---|---|---|---|---|
[[File:{{{logo}}}|{{{logo_width}}}|alt={{{logo_alt}}}]] | |||||
{{{other_name}}} | |||||
[[File:{{{image}}}|{{{image_width}}}|alt={{{image_alt}}}]] {{{caption}}} | |||||
Locale | {{{locale}}} | ||||
Terminus | {{{terminus}}} | ||||
Coordinates | {{{coordinates}}} | ||||
[[File:{{{map}}}|{{{mapsize}}}|alt={{{map_alt}}}]] {{{map_caption}}} | |||||
Connections | {{{connections}}} | ||||
Commercial operations | |||||
Name | {{{linename}}} | ||||
Built by | {{{builtby}}} | ||||
Original gauge | {{{originalgauge}}} | ||||
Original rack system | {{{originalrack}}} | ||||
Original electrification | {{{originalelec}}} | ||||
Preserved operations | |||||
Owned by | {{{owned}}} | ||||
Operated by | {{{operator}}} | ||||
Reporting mark | {{{marks}}} | ||||
Stations | {{{stations}}} | ||||
Length | {{{length}}} | ||||
Preserved gauge | {{{preservedgauge}}} | ||||
Preserved rack system | {{{preservedrack}}} | ||||
Preserved electrification | {{{preservedelec}}} | ||||
Commercial history | |||||
Opened | {{{originalopen}}} | ||||
{{{com-years}}} | {{{com-events}}} | ||||
{{{com-years1}}} | {{{com-events1}}} | ||||
Closed to passengers | {{{closedpassengers}}} | ||||
Closed | {{{closed}}} | ||||
Preserved era | {{{era}}} | ||||
Preservation history | |||||
{{{stageyears}}} | {{{stage}}} | ||||
{{{years}}} | {{{events}}} | ||||
{{{years1}}} | {{{events1}}} | ||||
Headquarters | {{{headquarters}}} | ||||
Website | |||||
{{{website}}} | |||||
{{{embedded}}} | |||||
|
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. <syntaxhighlight lang="wikitext" style="overflow:auto;"> </syntaxhighlight>
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=
|
embedded | Pass other infoboxes to embed in this one |
Transcluding route map | |
routemap | the bottom 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 template based on {{Routemap}} with the inline=1 parameter. This will prevent the map from breaking in mobile 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