Template:Infobox railway depot/doc

From The Democratikan Wiki
Revision as of 03:26, 15 February 2024 by Akarea (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

This template generates an infobox for railway depots. Below is the basic syntax that you need to get a complete infobox for an article. Place this below any hatnotes and before any other text and fill in the variables. If a variable is empty, it can and should be omitted. Other, more specific parameters exist and are described in detail below.

Syntax

This is the basic code you need to set up an infobox for a railway depot:

{{{name}}}
Location
Location{{{location}}}
Coordinates{{{coordinates}}}
OS grid{{{grid_ref_UK}}}
Characteristics
Owner{{{owner}}}
Operator{{{operator}}}
Depot code{{{depotcode}}}
Type{{{type}}}
Roads{{{roads}}}
Rolling stock{{{rollingstock}}}
Routes served{{{routes}}}
History
Opened{{{opened}}}
Closed{{{closed}}}
Original{{{original}}}
Pre-grouping{{{pregrouping}}}
Post-grouping{{{postgrouping}}}
BR region{{{BR_region}}}
Former depot code{{{former_depot_codes}}}
Former rolling stock{{{former_rolling_stock}}}
{{{embedded}}}

<syntaxhighlight lang="wikitext" style="overflow: auto;">

Infobox railway depot/doc

</syntaxhighlight>

Example

Birkenhead Mollington Street
Location
LocationBirkenhead, United Kingdom
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
OS gridSJ323882
Characteristics
TypeLocomotive
History
Closed1985 (1985)
OriginalChester and Birkenhead Railway
Former depot code
  • 6C
  • 8H
  • BC

<syntaxhighlight lang="wikitext" style="overflow: auto;">

Birkenhead Mollington Street
Location
LocationBirkenhead, United Kingdom
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
OS gridSJ323882
Characteristics
TypeLocomotive
History
Closed1985 (1985)
OriginalChester and Birkenhead Railway
Former depot code
  • 6C
  • 8H
  • BC

</syntaxhighlight>

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

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

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox railway depot in articles based on its TemplateData.

TemplateData for Infobox railway depot

Infobox for railway depots

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Embedembed

Set to yes if this infobox is embedded in another infobox

Unknownoptional
Infobox widthbox_width

The width of the infobox

Unknownoptional
Namename

The title of the infobox

Default
The base page name
Auto value
{{PAGENAMEBASE}}
Unknownoptional
Depot logodepot_logo

An image of the depot's logo, i.e. the Cockney sparrow for Stratford TMD, etc.

Example
Image_name.png
Fileoptional
logo_uprightlogo_upright

Scaling factor for the logo

Unknownoptional
logo_altlogo_alt

Alternate text for the logo

Unknownoptional
logo_captionlogo_caption

Caption for the logo

Unknownoptional
Imageimage

Photo of the depot

Example
Image_name.png
Fileoptional
image_uprightimage_upright

Image scaling factor

Unknownoptional
image_altimage_alt

Alternate text for main image

Unknownoptional
captioncaption

Caption for the main image

Unknownoptional
pushpin_mappushpin_map

no description

Unknownoptional
map_typemap_type

no description

Unknownoptional
pushpin_map_altpushpin_map_alt

no description

Unknownoptional
map_altmap_alt

no description

Unknownoptional
Coordinatescoordinates

no description

Example
{{Coord|LAT|LONG|type:landmark|display=inline,title}}
Unknownoptional
map_dot_markmap_dot_mark

no description

Unknownoptional
pushpin_labelpushpin_label

no description

Unknownoptional
map dot labelmap dot label

no description

Unknownoptional
map_dot_labelmap_dot_label

no description

Unknownoptional
pushpin_reliefpushpin_relief

no description

Unknownoptional
reliefrelief

no description

Unknownoptional
pushpin_map_captionpushpin_map_caption

no description

Unknownoptional
map_captionmap_caption

no description

Unknownoptional
pushpin_mapsizepushpin_mapsize

no description

Unknownoptional
map_sizemap_size

no description

Unknownoptional
image_mapimage_map

no description

Unknownoptional
mapframemapframe

no description

Unknownoptional
qidqid

no description

Unknownoptional
mapframe-zoommapframe-zoom

no description

Unknownoptional
mapframe-widthmapframe-width

no description

Unknownoptional
mapframe-heightmapframe-height

no description

Unknownoptional
mapframe-markermapframe-marker

no description

Unknownoptional
mapframe-marker-colormapframe-marker-color

no description

Unknownoptional
mapframe-marker-colourmapframe-marker-colour

no description

Unknownoptional
mapframe-latmapframe-lat

no description

Unknownoptional
mapframe-latitudemapframe-latitude

no description

Unknownoptional
mapframe-longmapframe-long

no description

Unknownoptional
mapframe-longitudemapframe-longitude

no description

Unknownoptional
mapframe-captionmapframe-caption

no description

Unknownoptional
Locationlocation

Name of the location

Unknownoptional
grid_ref_UKgrid_ref_UK

no description

Unknownoptional
ownerowner

name of the owner

Auto value
Unknownoptional
operatoroperator

name of the operator

Unknownoptional
depotcodedepotcode

The current depot code, only. For earlier depot codes, use former_depot_codes

Unknownoptional
typetype

Locomotive, Steam, Diesel, Electric, DMU, EMU, HST, Carriage, Departmental, Freight, etc.

Unknownoptional
roadsroads

number of storage roads

Unknownoptional
rollingstockrollingstock

The current classes of rollingstock stored at the depot, only. For earlier classes, use former_rolling_stock

Unknownoptional
routesroutes

routes operated from the depot

Unknownoptional
openedopened

Date opened {{Start date|YYYY|MM|df=y}}

Unknownoptional
closedclosed

Date closed {{End date|YYYY|MM|df=y}}

Unknownoptional
originaloriginal

The original railway company which owned the depot

Unknownoptional
pregroupingpregrouping

United Kingdom ownership until 1923, e.g. LNWR

Unknownoptional
postgroupingpostgrouping

United Kingdom ownership from 1923 to nationalisation in 1948, e.g. LMS

Unknownoptional
BR_regionBR_region

Region of British Rail which the depot was within

Unknownoptional
Former depot codeFormer depot code

former codes for the depot

Unknownoptional
Former rolling stockFormer rolling stock

classes of rollingstock formerly stored at the depot

Unknownoptional
embeddedembedded

Another infobox to embed in this one

Unknownoptional

See also