Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:InfoBoxVehicle: Difference between revisions

Template page
Mapper (talk | contribs)
No edit summary
Mapper (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox vcard" style="width:22em; font-size:90%; line-height:1.3em;"
{| class="infobox" style="width: 22em; border: 0px solid black; border-radius: 0 0 8px 8px; border-collapse: separate; border-spacing: 0; background-clip: padding-box; font-size: 90%; line-height: 1.5em; float: right; clear: right; margin: 0 0 1em 1em;"
|+ style="font-size: 125%; font-weight: bold; text-align: center; padding: 0.6em; border: none; border-bottom: none; border-top-left-radius: 8px; border-top-right-radius: 8px; background-color: #001f3f; color: #ffffff;" | {{{name}}}
|-
|-
! colspan="2" style="text-align:center; font-size:125%; background:#f5f5f5;" | {{{name|<span style="color:#888">Airline name</span>}}}
| colspan="2" style="text-align: center; background-color: #003366; border: 1px solid black; padding: 0; margin: 0;" | [[File:{{{logo|{{PAGENAME}} Logo.png}}}|class=full-width|frameless]]
{{#if:{{{logo|}}}|
|-
|-
| colspan="2" style="text-align:center;" | [[File:{{{logo}}}|{{{logo_size|250px}}}|frameless]]}}
| colspan="2" style="text-align: center; background-color: #003366; border: 1px solid black; padding: 0; margin: 0;" | [[File:{{{photo|{{PAGENAME}} Livery.png}}}|class=full-width|frameless]]
{{#if:{{{image|}}}|
|-
|-
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|{{{image_size|250px}}}|frameless]]{{#if:{{{image_caption|}}}|<br /><small>{{{image_caption}}}</small>}}}}
| colspan="2" style="text-align: center; background-color: #003366; color: white; font-style: italic; font-size: 85%; padding: 0.4em; border: 1px solid black;" | {{{caption|A livery of {{{name}}}}}}
|-
|-
! colspan="2" style="text-align:center; background:#f5f5f5;" | Overview
! style="background-color: #001f3f; color: white; text-align: left; width: 35%; padding: 0.4em; border: 1px solid black;" | Code
{{#if:{{{iata|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Code}}}
|-
|-
| IATA | {{{iata}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Callsign
{{#if:{{{icao|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Callsign}}}
|-
|-
| ICAO | {{{icao}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Type
{{#if:{{{callsign|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Type}}}
|-
|-
| Callsign | {{{callsign}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Founded
{{#if:{{{aoc|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Founded}}}
|-
|-
| AOC # | {{{aoc}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Hub
{{#if:{{{frequent_flyer|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Hub}}}
|-
|-
| FF program | {{{frequent_flyer}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Slogan
{{#if:{{{alliance|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Slogan}}}
|-
|-
| Alliance | {{{alliance}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Registered In
{{#if:{{{fleet_size|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Registered In}}}
|-
|-
| Fleet size | {{{fleet_size}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Alliance
{{#if:{{{destinations|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Alliance}}}
|-
|-
| Destinations | {{{destinations}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Partners
{{#if:{{{traded_as|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Partners}}}
|-
|-
| Traded as | {{{traded_as}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Parent
{{#if:{{{parent|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Parent}}}
|-
|-
| Parent company | {{{parent}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black;" | Subsidiaries
{{#if:{{{subsidiaries|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black;" | {{{Subsidiaries}}}
|-
|-
| Subsidiaries | {{{subsidiaries}}}}}
! style="background-color: #001f3f; color: white; text-align: left; padding: 0.4em; border: 1px solid black; border-bottom-left-radius: 8px;" | Creator
{{#if:{{{company_slogan|}}}|
| style="background-color: #003366; color: white; padding: 0.6em; border: 1px solid black; border-bottom-right-radius: 8px;" | {{{Creator}}}
|-
| Slogan | {{{company_slogan}}}}}
|-
! colspan="2" style="text-align:center; background:#f5f5f5;" | History
{{#if:{{{founded|}}}|
|-
| Founded | {{{founded}}}}}
{{#if:{{{commenced|}}}|
|-
| Commenced operations | {{{commenced}}}}}
{{#if:{{{ceased|}}}|
|-
| Ceased operations | {{{ceased}}}}}
|-
! colspan="2" style="text-align:center; background:#f5f5f5;" | Corporate details
{{#if:{{{headquarters|}}}|
|-
| Headquarters | {{{headquarters}}}}}
{{#if:{{{key_people|}}}|
|-
| Key people | {{{key_people}}}}}
{{#if:{{{revenue|}}}|
|-
| Revenue | {{{revenue}}}}}
{{#if:{{{operating_income|}}}|
|-
| Operating income | {{{operating_income}}}}}
{{#if:{{{net_income|}}}|
|-
| Net income | {{{net_income}}}}}
{{#if:{{{assets|}}}|
|-
| Total assets | {{{assets}}}}}
{{#if:{{{equity|}}}|
|-
| Total equity | {{{equity}}}}}
{{#if:{{{num_employees|}}}|
|-
| Employees | {{{num_employees}}}}}
|-
! colspan="2" style="text-align:center; background:#f5f5f5;" | Operations
{{#if:{{{hubs|}}}|
|-
| Hubs | {{{hubs}}}}}
{{#if:{{{secondary_hubs|}}}|
|-
| Secondary hubs | {{{secondary_hubs}}}}}
{{#if:{{{focus_cities|}}}|
|-
| Focus cities | {{{focus_cities}}}}}
|-
! colspan="2" style="text-align:center; background:#f5f5f5;" | Website
{{#if:{{{website|}}}|
|-
| Website | [{{{website}}} {{{name|Official site}}}]}}
|}
|}
</includeonly>
</includeonly>
<noinclude>
== Template documentation ==
This template produces an airline-style infobox similar to those used on English Wikipedia. Copy the template code above into '''Template:Airline infobox''' (or any name you prefer) in your MediaWiki installation.
=== Basic usage ===
Copy-paste the following into an article and fill the fields you need:
<pre>
{{Testinfobox
|name          = Example Air
|logo          = Example_Air_logo.svg
|logo_size      = 200px
|image          = Example_Air_A330.jpg
|image_caption  = Example Air Airbus A330-300
|iata          = EA
|icao          = EXM
|callsign      = EXAMPLE
|aoc            = EAOC001
|founded        = 1985
|commenced      = 1 May 1986
|frequent_flyer = Example Miles
|alliance      = Star Alliance
|fleet_size    = 120
|destinations  = 85
|hubs          = Valois–Charles de Gaulle Airport
|focus_cities  = Lyon
|company_slogan = "Flying the future"
|parent        = Example Group S.A.
|headquarters  = Valois, Republic of Arleau
|key_people    = Jane Doe (CEO)
|revenue        = €4.1&nbsp;billion (2024)
|num_employees  = 9,800 (2024)
|website        = https://www.exampleair.com
}}
</pre>
=== Parameters ===
* <code>name</code> – Name of the airline (displayed as title).
* <code>logo</code> / <code>logo_size</code> – File name and display width of logo.
* <code>image</code> / <code>image_size</code> / <code>image_caption</code> – Livery or aircraft photo and caption.
* <code>iata</code>, <code>icao</code>, <code>callsign</code>, <code>aoc</code> – Codes and Air Operator Certificate number.
* <code>founded</code>, <code>commenced</code>, <code>ceased</code> – Key dates in the airline's history.
* <code>frequent_flyer</code>, <code>alliance</code> – Loyalty programme and global alliance.
* <code>fleet_size</code>, <code>destinations</code> – Operational statistics.
* <code>hubs</code>, <code>secondary_hubs</code>, <code>focus_cities</code> – Operational bases.
* <code>company_slogan</code>, <code>parent</code>, <code>subsidiaries</code>, <code>headquarters</code>, <code>key_people</code> – Corporate details.
* <code>revenue</code>, <code>operating_income</code>, <code>net_income</code>, <code>assets</code>, <code>equity</code>, <code>num_employees</code> – Financials.
* <code>website</code> – Full URL of the official website.
Blank parameters are automatically omitted (requires the ParserFunctions extension).
'''Styling''': The table uses the CSS class <code>infobox</code> plus default MediaWiki styles; adjust in your site's MediaWiki:Common.css if desired.
{{Testinfobox
|name          = Example Air
|logo          = Example_Air_logo.svg
|logo_size      = 200px
|image          = Example_Air_A330.jpg
|image_caption  = Example Air Airbus A330-300
|iata          = EA
|icao          = EXM
|callsign      = EXAMPLE
|aoc            = EAOC001
|founded        = 1985
|commenced      = 1 May 1986
|frequent_flyer = Example Miles
|alliance      = Star Alliance
|fleet_size    = 120
|destinations  = 85
|hubs          = Valois–Charles de Gaulle Airport
|focus_cities  = Lyon
|company_slogan = "Flying the future"
|parent        = Example Group S.A.
|headquarters  = Valois, Republic of Arleau
|key_people    = Jane Doe (CEO)
|revenue        = €4.1 billion (2024)
|num_employees  = 9,800 (2024)
|website        = https://www.exampleair.com
}}
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.