Template:Infobox rail/doc

From The Democratikan Wiki
Revision as of 17:16, 7 August 2023 by wikipedia>RickyCourtney (Add note)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{{name}}}
{{{other_name}}}
[[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}|upright=0.91]]
[[File:{{{system_map}}}|{{{map_size}}}|alt={{{map_alt}}}|upright=1.14]]
{{{map_caption}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright=1.14]]
{{{caption}}}
Overview
Franchise(s){{{franchise}}}
Main {{{nameforarea}}}(s){{{regions}}}
Other {{{nameforarea}}}(s){{{secregions}}}
Fleet size{{{fleet}}}
Stations called at{{{stations}}}
Stations operated{{{stationsop}}}
Parent company{{{parent_company}}}
Headquarters{{{headquarters}}}
Key people{{{key_people}}}
Founders{{{founders}}}
Reporting mark{{{marks}}}
Locale{{{locale}}}
Dates of operation{{{start_year}}}–{{{end_year}}}
Predecessors{{{predecessor_line}}}
Successors{{{successor_line}}}
Technical
Track gauge{{{gauge}}}
Previous gauge{{{old_gauge}}}
Electrification{{{electrification}}}
Length{{{length}}}
Track length{{{tracklength}}}
No. of tracks{{{notrack}}}
Operating speed{{{speed}}}
Highest elevation{{{elevation}}}
Other
Website{{{website}}}
{{{embedded}}}
{{{map_name}}}
{{{routemap}}}

{{Infobox rail}} is used to create an infobox on articles about railway companies; |name= is the only mandatory parameter.

{{Infobox rail line}} is used for railway lines; this template is sometimes used on articles about both a company and a line (e.g. Romney, Hythe and Dymchurch Railway). It may also be used on affiliate companies operating rail public transit systems under contract (e.g. Arriva Rail London).

Syntax

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

Parameters

Parameter Required Definition
name Yes Name of railway company, displayed at top of infobox
railroad_name No Another version of name, with the same effect. Name and railroad name may not be used at the same time.
other_name No Other name(s) that the railway company is or was known by.
logo No Filename of logo image, without File: prefix. Shown just below the railroad name
logo_size No Size of image in pixels with px, default is upright=0.91 (see Wikipedia:Picture tutorial#Upright images)
logo_alt No Alt text for logo, used by screen readers. See Wikipedia:Alternative text for images for more information.
system_map No Filename of system map image, without File: prefix, displayed below the logo.
map_caption No Caption for system map image
map_size No Size of image in pixels with px, default is upright=1.41
map_alt No Alt text for map
image No Filename of image, without File: prefix, displayed below the map
image_size No Size of image in pixels with px, default is upright=1.41
image_caption No Image caption
image_alt No Alt text for image
franchise No For passenger operators: The name of the operating franchise the company operates under. Open access operators may be represented as "Not subject to franchising or subsidy". Railfreight companies may leave this parameter blank.
contract No For passenger operators: The name of the operating contract the company operates under.
concession No For passenger operators: The name of the operating concession the company operates under.
regions No The primary region the railway operates in. For a more specific route or station, use nameforarea parameter
secregions No The secondary regions the railway serves
nameforarea No May be used in lieu of regions or secregions
fleet No Details about the rolling stock, and where possible, any stock on order
stations No For passenger companies: The total number of stations served
stationsop No Number of stations the railway acts as property manager for, whether in a de jure or de facto status.
parent_company No The shareholders in the company, in some cases, the owner. Leave blank if owner is an individual person.
headquarters No The city where the railway's main office is located.
founders No Important founders of the company; use {{plainlist}} for multiple entries
key_people No Current executives of the company; use {{plainlist}} for multiple entries
marks No The reporting mark. The definition may be:
  • UIC: a two to five letter identifier displayed on the vehicles where applicable, often an acronym of the railway's legal name.
  • AAR: a two to four letter code for the railway, often an acronym of the railway's trade name.
  • NR: The two letter code used by passenger operators in daily operation
  • Other: Abbreviation of individual rolling stock lessors.
abbr No Another version of marks, with the same effect. Abbr and marks may not be used at the same time.
locale No Region railway is located, typically a bioregion. Used primarily for freight railways.
start_year No Year railway commenced operations, if exact date is known use {{Start date}} template, Using df=y parameter to display in day month year format if appropriate. Shown as Dates of operation
end_year No Year railway ceased operations, if exact date is known, use {{End date}} template. If currently operating, type "present". Shown as Dates of operation.
predecessor_line No The definition may be:
  • A list of companies that were merged to make up this company
  • The preceding operator of a contracted service
successor_line No Subsequent railway company that operated the company's railway lines
predecessor No Another version of predecessor_line, with the same effect.
successor No Another version of successor_line, with the same effect.
successors No Similar to successor, but used when a company has more than one successor (e.g. Conrail).
gauge No Current track gauge (use template {{Track gauge}})
old_gauge No Previous rail gauge (use template {{Track gauge}}), shown as Previous gauge
electrification No Type and voltage of electrification system. Leave blank if no electrification exists.
length No Total length of the railway system
speed No Maximum operating speed of the railway's services, and where possible, the service type in parentheses.
website No Official website, use {{URL}} template.
operator No For defunct companies, the current company or companies operating the former company's lines.
notrack No The number of tracks on the company's main line.

Embedding other infoboxes

The embedded= parameter can be used to embed another infobox with such capability like {{designation list}} and {{infobox NRHP}}.

Examples

Usage Code Example
Minimum use <syntaxhighlight lang="wikitext">
Isle of Sodor Railway
</syntaxhighlight>
Isle of Sodor Railway
Logo <syntaxhighlight lang="wikitext">
Isle of Sodor Railway
File:No-photo.svg
</syntaxhighlight>
Isle of Sodor Railway
File:No-logo.svg
Image <syntaxhighlight lang="wikitext">
Great North of Scotland Railway
File:Gordon Highlander steam locomotive.jpg
No. 49 Gordon Highlander, built for the Great North of Scotland Railway in 1920
</syntaxhighlight> ||
Great North of Scotland Railway
File:Gordon Highlander steam locomotive.jpg
No. 49 Gordon Highlander, built for the Great North of Scotland Railway in 1920
Text <syntaxhighlight lang="wikitext">
Great North of Scotland Railway
Overview
HeadquartersN/A
Reporting markFGW
LocaleNorth Scotland
Dates of operationMay 12, 1906 (1906-05-12)–January 20, 1923 (1923-01-20)
SuccessorLondon and North Eastern Railway
Technical
Track gauge4 ft 8+12 in (1,435 mm) standard gauge
Previous gauge3 ft 6 in (1,067 mm)
Electrification650 V DC
Length50 miles (80 km)
Other
WebsiteN/A
</syntaxhighlight>
Great North of Scotland Railway
Overview
HeadquartersN/A
Reporting markFGW
LocaleNorth Scotland
Dates of operationMay 12, 1906 (1906-05-12)–January 20, 1923 (1923-01-20)
SuccessorLondon and North Eastern Railway
Technical
Track gauge4 ft 8+12 in (1,435 mm) standard gauge
Previous gauge3 ft 6 in (1,067 mm)
Electrification650 V DC
Length50 miles (80 km)
Other
WebsiteN/A
Nearly everything <syntaxhighlight lang="wikitext">
Great North of Scotland Railway
File:No-photo.svg
File:Temporary placeholder photo.jpg
File:Gordon Highlander steam locomotive.jpg
No. 49 Gordon Highlander, built for the Great North of Scotland Railway in 1920
Overview
HeadquartersN/A
Reporting markFGW
LocaleNorth Scotland
Dates of operationMay 12, 1906 (1906-05-12)–January 20, 1923 (1923-01-20)
SuccessorLondon and North Eastern Railway
Technical
Track gauge4 ft 8+12 in (1,435 mm) standard gauge
Previous gauge3 ft 6 in (1,067 mm)
Electrification650 V DC
Length50 miles (80 km)
Other
WebsiteN/A
</syntaxhighlight> ||
Great North of Scotland Railway
File:Temporary placeholder photo.jpg
File:Gordon Highlander steam locomotive.jpg
No. 49 Gordon Highlander, built for the Great North of Scotland Railway in 1920
Overview
HeadquartersN/A
Reporting markFGW
LocaleNorth Scotland
Dates of operationMay 12, 1906 (1906-05-12)–January 20, 1923 (1923-01-20)
SuccessorLondon and North Eastern Railway
Technical
Track gauge4 ft 8+12 in (1,435 mm) standard gauge
Previous gauge3 ft 6 in (1,067 mm)
Electrification650 V DC
Length50 miles (80 km)
Other
WebsiteN/A

Tracking category