Jump to content

Fyrimynd:Infobox rail/doc

Frá Wikipedia, hin frælsa alfrøðin

{{Infobox rail}} is used to create an infobox on articles about railway companies; railroad_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).

For railways that operate on standard gauge tracks or for former railways that operated on standard gauge tracks, {{Infobox SG rail}} uses this template but fills in the gauge parameter automatically.

{{Infobox rail
|railroad_name     = 
|logo              = 
|logo_size         = 
|logo_alt          =
|system_map        = 
|map_caption       = 
|map_size          = 
|map_alt           =
|image             = 
|image_size        = 
|image_caption     = 
|image_alt         =
|marks             = 
|locale            = 
|start_year        = <!-- {{Start date|YYYY}} -->
|end_year          = <!-- {{End date|YYYY}} -->
|predecessor_line  = 
|successor_line    = 
|gauge             = <!-- This needs to be able to handle two current gauges. -->
|old_gauge         = <!-- This needs a separate line -->
|electrification   = 
|length            = 
|hq_city           = 
|website           = <!-- {{URL|example.com}} -->
}}

Parameters

[rætta wikitekst]
ParameterRequiredDefinition
railroad_nameYesName of railway company, displayed at top of infobox
logoNoFilename of logo image, without File: prefix. Shown just below the railroad name
logo_sizeNoSize of image in pixels with px, default is upright=0.91 (see Wikipedia:Picture tutorial#Upright images)
logo_altNoAlt text for logo, used by screen readers. See Wikipedia:Alternative text for images for more information.
system_mapNoFilename of system map image, without File: prefix, displayed below the logo.
map_captionNoCaption for system map image
map_sizeNoSize of image in pixels with px, default is upright=1.41
map_altNoAlt text for map
imageNoFilename of image, without File: prefix, displayed below the map
image_sizeNoSize of image in pixels with px, default is upright=1.41
image_captionNoImage caption
image_altNoAlt text for image
marksNoReporting mark, used only for North American railroad companies.
localeNoRegion railway is located
start_yearNoDate railway opened, use {{Start date}} template, Using df=y parameter to display in day month year format if appropriate. Shown as Dates of operation
end_yearNoDate railway closed, use {{End date}} template. Shown as Dates of operation
predecessor_lineNoUsed to list the companies that were merged to make up this company.
successor_lineNoSubsequent railway company that operated the company's railway lines
gaugeNoTrack gauge (use template {{Track gauge}})
old_gaugeNoOld rail gauge (use template {{Track gauge}})
electrificationNoElectrification system, if appropriate
lengthNoLength of the railway system
hq_cityNoLocale of the company's headquarters.
websiteNoWebsite, use {{URL}} template
UsageCodeExample
Minimum use
{{Infobox rail
|railroad_name=Isle of Sodor Railway
}}
Isle of Sodor Railway
Logo
{{Infobox rail
| railroad_name=Isle of Sodor Railway
| logo = No-photo.svg
| logo_size = 300px}}
Isle of Sodor Railway
Image
{{Infobox rail
| railroad_name = Great North of Scotland Railway
| image         = Gordon Highlander steam locomotive.jpg
| image_size    = 300px
| image_caption = No. 49 ''Gordon Highlander'', built
  for the Great North of Scotland Railway in 1920
}}
Great North of Scotland Railway
No. 49 Gordon Highlander, built for the Great North of Scotland Railway in 1920
Text
{{Infobox rail
|railroad_name     = Great North of Iceland Railway
|marks             = FGW
|locale            = North Iceland
|start_year        = {{Start date|1906|5|12}}
|end_year          = {{End date|1923|1|20}}
|predecessor_line  = 
|successor_line    = North Iceland Railway
|gauge             = Standard
|old_gauge         = Narrow
|electrification   = 650 Vdc
|length            = {{convert|50|mi}}
|hq_city           = Ice Town
|website           = {{URL|www.IcelandRailways.com}}
}}
Great North of Iceland Railway
Eigarafrámerki FGW
Staður North Iceland
Tíðarskeið í rakstri 12 mai 1906 (1906-05-12)januar 20, 1923 (1923-01-20)
Fylgjandi leið North Iceland Railway
Sporbreidd Standard
Fyrrv. sporbreidd Narrow
Ravmagnan 650 Vdc
Longd 50 miles (80 km)
Høvuðsskrivstova Ice Town
Heimasíða www.icelandrailways.com
(Nearly) Everything
{{Infobox rail
| railroad_name = Great North of Iceland Railway
| logo = No-photo.svg
| system_map    = Temporary placeholder photo.jpg
| image         = Gordon Highlander steam locomotive.jpg
| image_size    = 300px
| image_caption = No. 49 ''Gordon Highlander'', built
 for the Great North of Scotland Railway in 1920
|marks          = FGW
|locale         = North Iceland
|start_year     = {{Start date|1906|5|12}}
|end_year       = {{End date|1923|1|20}}
|predecessor_line= 
|successor_line = North Iceland Railway
|gauge          = Standard
|old_gauge      = Narrow
|electrification= 650 Vdc
|length         = {{convert|50|mi}}
|hq_city        = Ice Town
|website        = {{URL|www.IcelandRailways.com}}
}}
Great North of Iceland Railway
Mynd:Scan0027.jpg
No. 49 Gordon Highlander, built for the Great North of Scotland Railway in 1920
Eigarafrámerki FGW
Staður North Iceland
Tíðarskeið í rakstri 12 mai 1906 (1906-05-12)januar 20, 1923 (1923-01-20)
Fylgjandi leið North Iceland Railway
Sporbreidd Standard
Fyrrv. sporbreidd Narrow
Ravmagnan 650 Vdc
Longd 50 miles (80 km)
Høvuðsskrivstova Ice Town
Heimasíða www.icelandrailways.com