{{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 (eg 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.
Syntax
{{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
Parameter
Required
Definition
railroad_name
Yes
Name of railway company, displayed at top of infobox
logo
No
Filename of logo image, without File: prefix. Shown just below the railroad name
{{Infobox rail
|railroad_name=Isle of Sodor Railway
}}
Logo
{{Infobox rail
| railroad_name=Isle of Sodor Railway
| logo = No-photo.svg
| logo_size = 300px}}
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
}}
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}}
}}
(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}}
}}
Dates Use {{start date}} if the organization has an "established", "founded", "opened" or similar date. Use {{end date}} if the organization is defunct (dissolved or absorbed).