Template:Infobox rail/doc: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
No edit summary |
||
Line 5: | Line 5: | ||
{{generic template demo| railroad_name | logo | logo_size | logo_alt | image | image_size | image_alt | image_caption | system_map | map_size | map_alt | map_caption | marks | locale | start_year | end_year | predecessor_line | successor_line | gauge | old_gauge | electrification | length | hq_city | website | routemap | map_state | map_name }} | {{generic template demo| railroad_name | logo | logo_size | logo_alt | image | image_size | image_alt | image_caption | system_map | map_size | map_alt | map_caption | marks | locale | start_year | end_year | predecessor_line | successor_line | gauge | old_gauge | electrification | length | hq_city | website | routemap | map_state | map_name }} | ||
{{tl|Infobox rail}} is used to create an [[Wikipedia:Infobox|infobox]] on articles about railway '''companies'''; <tt>railroad_name</tt> is the only mandatory parameter. {{tl|Infobox rail line}} is used for railway '''lines'''; this template is sometimes used on articles about both a company and a line (e.g. | {{tl|Infobox rail}} is used to create an [[Wikipedia:Infobox|infobox]] on articles about railway '''companies'''; <tt>railroad_name</tt> is the only mandatory parameter. {{tl|Infobox rail line}} is used for railway '''lines'''; this template is sometimes used on articles about both a company and a line (e.g. {{wp|Romney, Hythe and Dymchurch Railway}}). | ||
== Syntax == | == Syntax == | ||
Line 67: | Line 67: | ||
| <code>image_alt</code> || No || Alt text for image | | <code>image_alt</code> || No || Alt text for image | ||
|- | |- | ||
| <code>marks</code> || No || | | <code>marks</code> || No || {{wp|Reporting mark}}, used only for North American railroad companies. | ||
|- | |- | ||
| <code>locale</code> || No || Region railway is located | | <code>locale</code> || No || Region railway is located | ||
Line 79: | Line 79: | ||
| <code>successor_line</code> || No || Subsequent railway company that operated the company's railway lines | | <code>successor_line</code> || No || Subsequent railway company that operated the company's railway lines | ||
|- | |- | ||
| <code>gauge</code> || No || | | <code>gauge</code> || No || {{wp|Track gauge}} (use template {{tl|Track gauge}}) | ||
|- | |- | ||
| <code>old_gauge</code> || No || Old rail gauge (use template {{tl|Track gauge}}) | | <code>old_gauge</code> || No || Old rail gauge (use template {{tl|Track gauge}}) | ||
Line 111: | Line 111: | ||
| logo = No-photo.svg | | logo = No-photo.svg | ||
| logo_size = 300px}}</pre> || {{Infobox rail | | logo_size = 300px}}</pre> || {{Infobox rail | ||
| railroad_name= | | railroad_name={{wp|Isle of Sodor Railway}} | ||
| logo = No-logo.svg | | logo = No-logo.svg | ||
| logo_size = 300px}} | | logo_size = 300px}} | ||
Line 123: | Line 123: | ||
}} | }} | ||
</pre> || {{Infobox rail | </pre> || {{Infobox rail | ||
| railroad_name = | | railroad_name = {{wp|Great North of Scotland Railway}} | ||
| image = Gordon Highlander steam locomotive.jpg | | image = Gordon Highlander steam locomotive.jpg | ||
| image_size = 300px | | image_size = 300px | ||
| image_caption = No. 49 ''Gordon Highlander'', built for the | | image_caption = No. 49 ''Gordon Highlander'', built for the {{wp|Great North of Scotland Railway}} in 1920 | ||
}} | }} | ||
|- | |- | ||
Line 145: | Line 145: | ||
|website = N/A | |website = N/A | ||
}}</pre> || {{Infobox rail | }}</pre> || {{Infobox rail | ||
|railroad_name = | |railroad_name = {{wp|Great North of Scotland Railway}} | ||
|marks = FGW | |marks = FGW | ||
|locale = North Scotland | |locale = North Scotland | ||
Line 151: | Line 151: | ||
|end_year = {{End date|1923|1|20}} | |end_year = {{End date|1923|1|20}} | ||
|predecessor_line = | |predecessor_line = | ||
|successor_line = | |successor_line = {{wp|London and North Eastern Railway}} | ||
|gauge = {{Track gauge|56.5in|allk=on}} | |gauge = {{Track gauge|56.5in|allk=on}} | ||
|old_gauge = {{Track gauge|42in|lk=on}} | |old_gauge = {{Track gauge|42in|lk=on}} | ||
|electrification = 650 | |electrification = 650 {{wp|Volt|V}} {{wp|Direct current|DC}} | ||
|length = {{convert|50|mi}} | |length = {{convert|50|mi}} | ||
|hq_city = N/A | |hq_city = N/A | ||
Line 181: | Line 181: | ||
|website = N/A | |website = N/A | ||
}}</pre> ||{{Infobox rail | }}</pre> ||{{Infobox rail | ||
|railroad_name = | |railroad_name = {{wp|Great North of Scotland Railway}} | ||
|logo = | |logo = | ||
|system_map = Temporary placeholder photo.jpg | |system_map = Temporary placeholder photo.jpg | ||
Line 187: | Line 187: | ||
|image_size = 300px | |image_size = 300px | ||
|image_caption = No. 49 ''Gordon Highlander'', built for | |image_caption = No. 49 ''Gordon Highlander'', built for | ||
the | the {{wp|Great North of Scotland Railway}} in 1920 | ||
|marks = FGW | |marks = FGW | ||
|locale = North Scotland | |locale = North Scotland | ||
Line 193: | Line 193: | ||
|end_year = {{End date|1923|1|20}} | |end_year = {{End date|1923|1|20}} | ||
|predecessor_line= | |predecessor_line= | ||
|successor_line = | |successor_line = {{wp|London and North Eastern Railway}} | ||
|gauge = {{Track gauge|56.5in|allk=on}} | |gauge = {{Track gauge|56.5in|allk=on}} | ||
|old_gauge = {{Track gauge|42in|lk=on}} | |old_gauge = {{Track gauge|42in|lk=on}} | ||
|electrification= 650 | |electrification= 650 {{wp|Volt|V}} {{wp|Direct current|DC}} | ||
|length = {{convert|50|mi}} | |length = {{convert|50|mi}} | ||
|hq_city = N/A | |hq_city = N/A |
Revision as of 18:24, 15 March 2024
This is a documentation subpage for Template:Infobox rail. It contains usage information, categories and other content that is not part of the original template page. |
Usage
[[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}|upright=0.91]] | |||
[[File:{{{system_map}}}|{{{map_size}}}|alt={{{map_alt}}}|upright=1.14]] | |||
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright=1.14]] | |||
Reporting mark | {{{marks}}} | ||
---|---|---|---|
Locale | {{{locale}}} | ||
Dates of operation | {{{start_year}}}–{{{end_year}}} | ||
Predecessor | {{{predecessor_line}}} | ||
Successor | {{{successor_line}}} | ||
Track gauge | {{{gauge}}} | ||
Previous gauge | {{{old_gauge}}} | ||
Electrification | {{{electrification}}} | ||
Length | {{{length}}} | ||
Headquarters | {{{hq_city}}} | ||
Website | {{{website}}} | ||
|
{{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).
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}} --> |embedded = }}
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
|
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 |
marks |
No | Reporting mark, used only for North American railroad companies. |
locale |
No | Region railway is located |
start_year |
No | Date 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_year |
No | Date railway closed, use {{End date}} template. Shown as Dates of operation |
predecessor_line |
No | Used to list the companies that were merged to make up this company. |
successor_line |
No | Subsequent railway company that operated the company's railway lines |
gauge |
No | Track gauge (use template {{Track gauge}}) |
old_gauge |
No | Old rail gauge (use template {{Track gauge}}) |
electrification |
No | Electrification system, if appropriate |
length |
No | Length of the railway system |
hq_city |
No | Locale of the company's headquarters. |
website |
No | Website, use {{URL}} template |
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 | {{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 Scotland Railway]] |marks = FGW |locale = North Scotland |start_year = {{Start date|1906|5|12}} |end_year = {{End date|1923|1|20}} |predecessor_line = |successor_line = [[London and North Eastern Railway]] |gauge = {{Track gauge|56.5in|allk=on}} |old_gauge = {{Track gauge|42in|lk=on}} |electrification = 650 [[Volt|V]] [[Direct current|DC]] |length = {{convert|50|mi}} |hq_city = N/A |website = N/A }} |
| ||||||||||||||||||||||||
(Nearly) Everything | {{Infobox rail | railroad_name = [[Great North of Scotland 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 Scotland |start_year = {{Start date|1906|5|12}} |end_year = {{End date|1923|1|20}} |predecessor_line= |successor_line = [[London and North Eastern Railway]] |gauge = {{Track gauge|56.5in|allk=on}} |old_gauge = {{Track gauge|42in|lk=on}} |electrification= 650 [[Volt|V]] [[Direct current|DC]] |length = {{convert|50|mi}} |hq_city = N/A |website = N/A }} |
|
Tracking category
See also