Template:Infobox railway depot: Difference between revisions
No edit summary |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:54, 15 February 2024
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). |
File:Lua-Logo.svg | This template uses Lua: |
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:
[[File:{{{depot_logo}}}|frameless|alt={{{logo_alt}}}|upright={{{logo_upright}}}]] | |
[[File:{{{image}}}|frameless|alt={{{image_alt}}}|upright={{{image_upright}}}]] | |
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). | |
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;">
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). |
</syntaxhighlight>
Example
File:Birkenhead Locomotive Depot geograph-2219081.jpg | |
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). | |
Location | |
---|---|
Location | Birkenhead, United Kingdom |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
OS grid | SJ323882 |
Characteristics | |
Type | Locomotive |
History | |
Closed | 1985 |
Original | Chester and Birkenhead Railway |
Former depot code |
|
<syntaxhighlight lang="wikitext" style="overflow: auto;">
File:Birkenhead Locomotive Depot geograph-2219081.jpg | |
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). | |
Location | |
---|---|
Location | Birkenhead, United Kingdom |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
OS grid | SJ323882 |
Characteristics | |
Type | Locomotive |
History | |
Closed | 1985 |
Original | Chester and Birkenhead Railway |
Former depot code |
|
</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
TemplateData for Infobox railway depot
Infobox for railway depots
Parameter | Description | Type | Status | |
---|---|---|---|---|
Embed | embed | Set to yes if this infobox is embedded in another infobox | Unknown | optional |
Infobox width | box_width | The width of the infobox | Unknown | optional |
Name | name | The title of the infobox
| Unknown | optional |
Depot logo | depot_logo | An image of the depot's logo, i.e. the Cockney sparrow for Stratford TMD, etc.
| File | optional |
logo_upright | logo_upright | Scaling factor for the logo | Unknown | optional |
logo_alt | logo_alt | Alternate text for the logo | Unknown | optional |
logo_caption | logo_caption | Caption for the logo | Unknown | optional |
Image | image | Photo of the depot
| File | optional |
image_upright | image_upright | Image scaling factor | Unknown | optional |
image_alt | image_alt | Alternate text for main image | Unknown | optional |
caption | caption | Caption for the main image | Unknown | optional |
pushpin_map | pushpin_map | no description | Unknown | optional |
map_type | map_type | no description | Unknown | optional |
pushpin_map_alt | pushpin_map_alt | no description | Unknown | optional |
map_alt | map_alt | no description | Unknown | optional |
Coordinates | coordinates | no description
| Unknown | optional |
map_dot_mark | map_dot_mark | no description | Unknown | optional |
pushpin_label | pushpin_label | no description | Unknown | optional |
map dot label | map dot label | no description | Unknown | optional |
map_dot_label | map_dot_label | no description | Unknown | optional |
pushpin_relief | pushpin_relief | no description | Unknown | optional |
relief | relief | no description | Unknown | optional |
pushpin_map_caption | pushpin_map_caption | no description | Unknown | optional |
map_caption | map_caption | no description | Unknown | optional |
pushpin_mapsize | pushpin_mapsize | no description | Unknown | optional |
map_size | map_size | no description | Unknown | optional |
image_map | image_map | no description | Unknown | optional |
mapframe | mapframe | no description | Unknown | optional |
qid | qid | no description | Unknown | optional |
mapframe-zoom | mapframe-zoom | no description | Unknown | optional |
mapframe-width | mapframe-width | no description | Unknown | optional |
mapframe-height | mapframe-height | no description | Unknown | optional |
mapframe-marker | mapframe-marker | no description | Unknown | optional |
mapframe-marker-color | mapframe-marker-color | no description | Unknown | optional |
mapframe-marker-colour | mapframe-marker-colour | no description | Unknown | optional |
mapframe-lat | mapframe-lat | no description | Unknown | optional |
mapframe-latitude | mapframe-latitude | no description | Unknown | optional |
mapframe-long | mapframe-long | no description | Unknown | optional |
mapframe-longitude | mapframe-longitude | no description | Unknown | optional |
mapframe-caption | mapframe-caption | no description | Unknown | optional |
Location | location | Name of the location | Unknown | optional |
grid_ref_UK | grid_ref_UK | no description | Unknown | optional |
owner | owner | name of the owner
| Unknown | optional |
operator | operator | name of the operator | Unknown | optional |
depotcode | depotcode | The current depot code, only. For earlier depot codes, use former_depot_codes | Unknown | optional |
type | type | Locomotive, Steam, Diesel, Electric, DMU, EMU, HST, Carriage, Departmental, Freight, etc. | Unknown | optional |
roads | roads | number of storage roads | Unknown | optional |
rollingstock | rollingstock | The current classes of rollingstock stored at the depot, only. For earlier classes, use former_rolling_stock | Unknown | optional |
routes | routes | routes operated from the depot | Unknown | optional |
opened | opened | Date opened {{Start date|YYYY|MM|df=y}} | Unknown | optional |
closed | closed | Date closed {{End date|YYYY|MM|df=y}} | Unknown | optional |
original | original | The original railway company which owned the depot | Unknown | optional |
pregrouping | pregrouping | United Kingdom ownership until 1923, e.g. LNWR | Unknown | optional |
postgrouping | postgrouping | United Kingdom ownership from 1923 to nationalisation in 1948, e.g. LMS | Unknown | optional |
BR_region | BR_region | Region of British Rail which the depot was within | Unknown | optional |
Former depot code | Former depot code | former codes for the depot | Unknown | optional |
Former rolling stock | Former rolling stock | classes of rollingstock formerly stored at the depot | Unknown | optional |
embedded | embedded | Another infobox to embed in this one | Unknown | optional |