Template:Infobox rail-company/doc: Difference between revisions

Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> == Usage == {{generic template demo|| name| company_name| logo| logo_size| logo_alt| alt| logo_caption| caption| system_map| map_size| map_alt| map_caption| image| image_size| image_alt| image_caption| trading_name| native_name| native_name_lang| romanized_name| former_names| former_name| type| company_type| marks|...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
== Syntax ==
== Syntax ==
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox rail
{{Infobox rail-company
|railroad_name    =  
| embed            =
|logo             =
| name
|logo_size         =
| company_name
|logo_alt         =
| logo
|system_map        =
| logo_size
|map_caption      =
| logo_alt
|map_size         =
| alt
|map_alt           =
| logo_caption
|image             =
| caption
|image_size       =
| system_map
|image_caption     =
| map_size
|image_alt        =
| map_alt
|marks             =
| map_caption
|locale            =
| image
|start_year        = <!-- {{Start date|YYYY}} -->
| image_size
|end_year          = <!-- {{End date|YYYY}} -->
| image_alt
|predecessor_line  =
| image_caption
|successor_line    =
| trading_name
|gauge             = <!-- This needs to be able to handle two current gauges. -->
| native_name
|old_gauge         = <!-- This needs a separate line -->
| native_name_lang
|electrification   =
| romanized_name
|length           =
| former_names
|hq_city          =
| former_name
|website           = <!-- {{URL|example.com}} -->
| type
|embedded          =
| company_type
| marks
| ISIN
| ISIN2
| industry
| genre
| fate
| predecessor
| successor
| foundation
| founded
| founders
| founder
| dissolved
| defunct
| hq_location
| location
| hq_location_city
| location_city
| hq_location_country
| location_country
| gauge
| old_gauge
| electrification
| length
| num_locations
| locations
| num_locations_year
| areas_served
| area_served
| key_people
| products
| brands
| production
| production_year
| services
| revenue
| revenue_year
| operating_income
| income_year
| net_income
| profit
| net_income_year
| profit_year
| aum
| assets
| assets_year
| equity
| equity_year
| owners
| owner
| members
| members_year
| num_employees
| num_employees_year
| parent
| divisions
| subsid
| module
| ratio
| rating
| homepage
| website
| footnotes
}}
}}
</pre>
</pre>
==Parameters==
{| class="wikitable"
|-
! Parameter || Required || Definition
|-
| <code>railroad_name</code> || '''Yes''' || Name of railway company, displayed at top of infobox
|-
| <code>logo</code> || No || Filename of logo image, without <code>File:</code> prefix. Shown just below the railroad name
|-
| <code>logo_size</code> || No || Size of image in pixels with '''px''', default is <code>upright=0.91</code> (see [[Wikipedia:Picture tutorial#Upright images]])
|-
| <code>logo_alt</code> || No || Alt text for logo, used by screen readers. See [[Wikipedia:Alternative text for images]] for more information.
|-
| <code>system_map</code> || No ||  Filename of system map image, without <code>File:</code> prefix, displayed below the logo.
|-
| <code>map_caption</code> || No || Caption for system map image
|-
| <code>map_size</code> || No || Size of image in pixels with '''px''', default is <code>upright=1.41</code>
|-
| <code>map_alt</code> || No || Alt text for map
|-
| <code>image</code> || No || Filename of image, without <code>File:</code> prefix, displayed below the map
|-
| <code>image_size</code> || No || Size of image in pixels with '''px''', default is <code>upright=1.41</code>
|-
| <code>image_caption</code> || No || Image caption
|-
| <code>image_alt</code> || No || Alt text for image
|-
| <code>marks</code> || No || {{wp|Reporting mark}}, used only for North American railroad companies.
|-
| <code>locale</code> || No || Region railway is located
|-
| <code>start_year</code> || No || Date railway opened, use {{tl|Start date}} template, Using <code>df=y</code> parameter to display in day month year format if appropriate. Shown as '''Dates of operation'''
|-
| <code>end_year</code> || No || Date railway closed, use {{tl|End date}} template. Shown as '''Dates of operation'''
|-
| <code>predecessor_line</code> || No || Used to list the companies that were merged to make up this company.
|-
| <code>successor_line</code> || No || Subsequent railway company that operated the company's railway lines
|-
| <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>electrification</code> || No || Electrification system, if appropriate
|-
| <code>length</code> || No || Length of the railway system
|-
| <code>hq_city</code> || No || Locale of the company's headquarters.
|-
| <code>website</code> || No || Website, use {{tl|URL}} template
|-
|}
===Embedding other infoboxes===
The <code>embedded=</code> parameter can be used to embed another infobox with such capability like {{tl|designation list}} and {{tl|infobox NRHP}}.
==Examples==
{| class="wikitable"
|-
! Usage !! Code !! Example
|-
| Minimum use || <pre>{{Infobox rail
|railroad_name=[[Isle of Sodor Railway]]
}}</pre> || {{Infobox rail
|railroad_name={{wp|Isle of Sodor Railway}}
}}
|-
| Logo || <pre>{{Infobox rail
| railroad_name=[[Isle of Sodor Railway]]
| logo = No-photo.svg
| logo_size = 300px}}</pre> || {{Infobox rail
| railroad_name={{wp|Isle of Sodor Railway}}
| logo = No-logo.svg
| logo_size = 300px}}
|-
| Image || <pre>{{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
}}
</pre> || {{Infobox rail
| railroad_name    = {{wp|Great North of Scotland Railway}}
| image            = Gordon Highlander steam locomotive.jpg
| image_size        = 300px
| image_caption    = No. 49 ''Gordon Highlander'', built for the {{wp|Great North of Scotland Railway}} in 1920
}}
|-
| Text ||<pre>{{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
}}</pre> || {{Infobox rail
|railroad_name    = {{wp|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    = {{wp|London and North Eastern Railway}}
|gauge            = {{Track gauge|56.5in|allk=on}}
|old_gauge        = {{Track gauge|42in|lk=on}}
|electrification  = 650 {{wp|Volt|V}} {{wp|Direct current|DC}}
|length            = {{convert|50|mi}}
|hq_city          = N/A
|website          = N/A
}}
|-
| (Nearly) Everything ||<pre>{{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
}}</pre> ||{{Infobox rail
|railroad_name = {{wp|Great North of Scotland Railway}}
|logo =
|system_map    = Temporary placeholder photo.jpg
|image        = Gordon Highlander steam locomotive.jpg
|image_size    = 300px
|image_caption = No. 49 ''Gordon Highlander'', built for
the {{wp|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 = {{wp|London and North Eastern Railway}}
|gauge          = {{Track gauge|56.5in|allk=on}}
|old_gauge      = {{Track gauge|42in|lk=on}}
|electrification= 650 {{wp|Volt|V}} {{wp|Direct current|DC}}
|length        = {{convert|50|mi}}
|hq_city        = N/A
|website        = N/A
}}
|}


==Tracking category==
==Tracking category==
* {{clc|Pages using infobox rail with unknown parameters}}
* {{clc|Pages using infobox rail-company with unknown parameters}}
==See also==
==See also==
{{Organization infoboxes}}
{{Organization infoboxes}}

Latest revision as of 19:16, 15 March 2024

Usage

{{{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}}}
{{{trading_name}}}
Native name
{{{native_name}}}
{{{romanized_name}}}
Formerly
{{{former_names}}}
{{{type}}}
Reporting mark{{{marks}}}
ISIN{{{ISIN}}}
{{{ISIN2}}}
Industry{{{industry}}}
Genre{{{genre}}}
Fate{{{fate}}}
Predecessors{{{predecessors}}}
Successors{{{successors}}}
Founded{{{foundation}}}
Founders{{{founders}}}
Defunct{{{defunct}}}
Headquarters{{{hq_location}}},
{{{hq_location_city}}}
,
{{{hq_location_country}}}
Track gauge{{{gauge}}}
Previous gauge{{{old_gauge}}}
Electrification{{{electrification}}}
Length{{{length}}}
Number of locations
{{{num_locations}}} ({{{num_locations_year}}})
Areas served
{{{areas_served}}}
Key people
{{{key_people}}}
Products{{{products}}}
Brands{{{brands}}}
Production output
{{{production}}} ({{{production_year}}})
Services{{{services}}}
Revenue{{{revenue}}} ({{{revenue_year}}})
{{{operating_income}}} ({{{income_year}}})
{{{net_income}}} ({{{net_income_year}}})
AUM{{{aum}}}
Total assets{{{assets}}} ({{{assets_year}}})
Total equity{{{equity}}} ({{{equity_year}}})
Owners{{{owners}}}
Members{{{members}}} ({{{members_year}}})
Number of employees
{{{num_employees}}} ({{{num_employees_year}}})
Parent{{{parent}}}
Divisions{{{divisions}}}
Subsidiaries{{{subsid}}}
{{{module}}}
Capital ratio{{{ratio}}}
Rating{{{rating}}}
Website{{{homepage}}}
Footnotes / references
{{{footnotes}}}

{{Infobox rail-company}} is used to create a more advanced infobox on articles about railway companies; railroad_name is the only mandatory parameter. For a more simple infobox on rail companies, use {{Infobox rail}}. {{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-company
| embed             =
| name
| company_name
| logo
| logo_size
| logo_alt
| alt
| logo_caption
| caption
| system_map
| map_size
| map_alt
| map_caption
| image
| image_size
| image_alt
| image_caption
| trading_name
| native_name
| native_name_lang
| romanized_name
| former_names
| former_name
| type
| company_type
| marks
| ISIN
| ISIN2
| industry
| genre
| fate
| predecessor
| successor
| foundation
| founded
| founders
| founder
| dissolved
| defunct
| hq_location
| location
| hq_location_city
| location_city
| hq_location_country
| location_country
| gauge
| old_gauge
| electrification
| length
| num_locations
| locations
| num_locations_year
| areas_served
| area_served
| key_people
| products
| brands
| production
| production_year
| services
| revenue
| revenue_year
| operating_income
| income_year
| net_income
| profit
| net_income_year
| profit_year
| aum
| assets
| assets_year
| equity
| equity_year
| owners
| owner
| members
| members_year
| num_employees
| num_employees_year
| parent
| divisions
| subsid
| module
| ratio
| rating
| homepage
| website
| footnotes
}}

Tracking category

See also