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
Owning (talk | contribs)
Obtainability Type cat
 
(98 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox vcard" style="width:22em; font-size:90%; line-height:1.3em;"
<templatestyles src="Template:Infobox/styles.css"/>
|-
{{#if: {{{category_disable|}}} ||
! colspan="2" style="text-align:center; font-size:125%; background:#f5f5f5;" | {{{name|<span style="color:#888">Airline name</span>}}}
<!-- Categories -->
{{#if:{{{logo|}}}|
[[Category:Vehicles]]
|-
{{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle || [[Category:Aircraft]]}}}}
| colspan="2" style="text-align:center;" | [[File:{{{logo}}}|{{{logo_size|250px}}}|frameless]]}}
{{#if: {{{Type|}}} | [[Category:{{{Type}}}s]]}}
{{#if:{{{image|}}}|
{{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}}
|-
{{#if: {{{Obtainability Type|}}} | [[Category:{{{Obtainability Type}}}]]}}
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|{{{image_size|250px}}}|frameless]]{{#if:{{{image_caption|}}}|<br /><small>{{{image_caption}}}</small>}}}}
}}
|-
{| class="infobox"
! colspan="2" style="text-align:center; background:#f5f5f5;" | Overview
|+ class="infobox__title rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}}
{{#if:{{{iata|}}}|
|-
| IATA | {{{iata}}}}}
{{#if:{{{icao|}}}|
|-
| ICAO | {{{icao}}}}}
{{#if:{{{callsign|}}}|
|-
| Callsign | {{{callsign}}}}}
{{#if:{{{aoc|}}}|
|-
| AOC # | {{{aoc}}}}}
{{#if:{{{frequent_flyer|}}}|
|-
| FF program | {{{frequent_flyer}}}}}
{{#if:{{{alliance|}}}|
|-
|-
| Alliance | {{{alliance}}}}}
| colspan="2" class="infobox__image" | {{#ifexist: File:{{{photo}}} | [[File:{{{photo}}}|300px]] | {{#ifexist: File:{{{name}}} 0.png | [[File:{{{name}}} 0.png|300px]] | [[File:Aerowikiplaceholder.jpg|300px]]}}}}
{{#if:{{{fleet_size|}}}|
|-
|-
| Fleet size | {{{fleet_size}}}}}
| colspan="2" class="infobox__caption" | {{{caption|(Empty Caption) [[Category: Missing Parameters]]}}}
{{#if:{{{destinations|}}}|
|-
|-
| Destinations | {{{destinations}}}}}
| colspan="2" class="infobox__subtitles" | {{{General Information|General Information}}}
{{#if:{{{traded_as|}}}|
|-
|-
| Traded as | {{{traded_as}}}}}
! class="infobox__field-name" | Code
{{#if:{{{parent|}}}|
| class="infobox__field-value" | {{{Code| Unknown [[Category: Missing Parameters]]}}}
|-
|-
| Parent company | {{{parent}}}}}
! class="infobox__field-name" | Type
{{#if:{{{subsidiaries|}}}|
| class="infobox__field-value" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]] | Unknown [[Category: Missing Parameters]]}}
|-
|-
| Subsidiaries | {{{subsidiaries}}}}}
! class="infobox__field-name" | Rarity
{{#if:{{{company_slogan|}}}|
| class="infobox__field-value" | <span class="infobox__rarity-value rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}">{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}}</span>
|-
|-
| Slogan | {{{company_slogan}}}}}
{{#ifeq: {{{Obtainability Type}}} | Purchasable |
<tr>
<th class="infobox__field-name">Cost</th>
<td class="infobox__field-value">{{#iferror: {{#expr: {{{Cost|0}}} + 0 }} | Invalid Cost String [[Category: Missing Parameters]] | '''{{#if: {{{Cost|}}} | {{formatnum:{{{Cost}}}}} | 0 [[Category: Missing Parameters]]}}''' WP }}</td>
</tr>
<tr>
<th class="infobox__field-name">Distributor</th>
<td class="infobox__field-value">{{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle |
<tr>
<th class="infobox__field-name">Badge</th>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Craftable |
<tr>
<th class="infobox__field-name">Crafting requirement</th>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} parts {{#if: {{{Distributor|}}} | and [[{{{Distributor}}}]]}} | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Convertible |
<tr>
<th class="infobox__field-name">Obtainability</th>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | Convertible from [[{{{Cost}}}]] | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
<tr>
<th class="infobox__field-name">Conversion Time</th>
<td class="infobox__field-value">{{#iferror: {{#expr: {{{Distributor|}}} + 0 }} | Invalid Conversion Time String [[Category: Missing Parameters]] | {{#if: {{{Distributor|}}} | '''{{formatnum:{{{Distributor}}}}}''' minutes | Unknown [[Category: Missing Parameters]]}}}}</td>
</tr>
    <tr>
<th class="infobox__field-name">Conversion Cost</th>
<td class="infobox__field-value">{{#iferror: {{#expr: {{{Conversion Cost|0}}} + 0 }} | Invalid Cost String [[Category: Missing Parameters]] | '''{{#if: {{{Conversion Cost|}}} | {{{Conversion Currency|$}}}{{formatnum:{{{Conversion Cost}}}}} | Unknown [[Category: Missing Parameters]]}}'''</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Job Vehicle |
<tr>
<th class="infobox__field-name">Obtainability</th>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
}}}}}}}}}}}}
|-
|-
! colspan="2" style="text-align:center; background:#f5f5f5;" | History
! class="infobox__field-name" | Jobs 
{{#if:{{{founded|}}}|
| class="infobox__field-value" | {{#invoke: AeroWikiListTools
| split_list | {{{Jobs|}}} | {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}
|-
|-
| Founded | {{{founded}}}}}
! class="infobox__field-name" | Customization
{{#if:{{{commenced|}}}|
| class="infobox__field-value" |  {{#invoke: AeroWikiListTools
| split_list | {{{Customization|}}} | {{Checkbox (colored)|checked|color=blue}} {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]] <br> | Unknown [[Category: Missing Parameters]]}}
|-
|-
| Commenced operations | {{{commenced}}}}}
! class="infobox__field-name" | Contributors
{{#if:{{{ceased|}}}|
| class="infobox__field-value" | {{#invoke: AeroWikiListTools
| split_list | {{{Contributors|}}} | {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}
|-
|-
| Ceased operations | {{{ceased}}}}}
| colspan="2" class="infobox__subtitles"  | {{{Specifications|Specifications}}}
|-
|-
! colspan="2" style="text-align:center; background:#f5f5f5;" | Corporate details
! class="infobox__field-name" | Max Speed
{{#if:{{{headquarters|}}}|
| class="infobox__field-value"  |    '''{{#if: {{{Max Speed|}}} | {{formatnum:{{{Max Speed}}}}} | 0 [[Category: Missing Parameters]]}}''' knots / '''{{formatnum:{{#expr: {{{Max Speed|0}}} * 1.852 round 0}}}}''' kph
<!-- Hides the stall speed and service ceiling statistics if the vehicle type is a boat or a ground vehicle -->
{{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle ||
{{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter ||
  <tr>
<th class="infobox__field-name">Stall Speed</th>
<td class="infobox__field-value">'''{{#if: {{{Stall Speed|}}} | {{formatnum:{{{Stall Speed}}}}} | 0 [[Category: Missing Parameters]]}}''' knots / '''{{formatnum:{{#expr: {{{Stall Speed|0}}} * 1.852 round 0}}}}''' kph</td>
</tr>
}}}}
{{#if: {{{CeilingFeet|0}}}
| <tr>
<th class="infobox__field-name">Ceiling</th>
<td class="infobox__field-value">'''{{#if: {{{CeilingFeet|}}} | {{formatnum:{{{CeilingFeet}}}}} | 0 [[Category: Missing Parameters]]}}''' ft / '''{{formatnum:{{#expr: {{{CeilingFeet|0}}} * 0.3048 round 0}}}}''' m</td>
</tr>
}}
}}}}
|-
|-
| Headquarters | {{{headquarters}}}}}
! class="infobox__field-name" | Range
{{#if:{{{key_people|}}}|
| class="infobox__field-value" | '''{{#if: {{{RangeNM|}}} | {{formatnum:{{{RangeNM}}}}}| 0 [[Category: Missing Parameters]]}}''' nmi / '''{{formatnum:{{#expr: {{{RangeNM|0 }}} * 1.852 round 0}}}}''' km
|-
|-
| Key people | {{{key_people}}}}}
! class="infobox__field-name" | Capacity
{{#if:{{{revenue|}}}|
| class="infobox__field-value"  | '''{{#if: {{{Capacity|}}} | {{formatnum:{{{Capacity}}}}} | 0 [[Category: Missing Parameters]]}}'''
|-
|}</includeonly>
| 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>
 
<noinclude>
<noinclude>
== Template documentation ==
<!-- Example values -->
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.
{{Template:VehicleInfoBox
 
| name = Boeing 737-800
=== Basic usage ===
| caption = Boeing 737-800 flying low over the [[Thalassan Sea]]
Copy-paste the following into an article and fill the fields you need:
| Rarity = Common
<pre>
| Code = 737-800
{{Testinfobox
| Type = Jet Engine
|name           = Example Air
| Obtainability Type = Purchaseable
|logo          = Example_Air_logo.svg
| Cost = 19300
|logo_size      = 200px
| Distributor = Kitesboro International Airport
|image          = Example_Air_A330.jpg
| Jobs = Charter
|image_caption  = Example Air Airbus A330-300
| Max Speed = 453
|iata          = EA
| Stall Speed = 120
|icao          = EXM
| CeilingFeet = 41010
|callsign      = EXAMPLE
| RangeNM = 144
|aoc            = EAOC001
| Capacity = 36
|founded        = 1985
| Customization = Advanced Liveries, Advanced Customization
|commenced      = 1 May 1986
| Contributors = EAT_RIC3, Giovanni_085391
|frequent_flyer = Example Miles
| photo = Aerowikiplaceholder.jpg
|alliance      = Star Alliance
| Conversion Cost = 12345
|fleet_size    = 120
| category_disable = yes
|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
}}
}}
<templatedata>
{
"description": "Public Vehicle InfoBox Template",
"params": {
"name": {
"label": "Name",
"description": "The name of the vehicle, this should be the same as the name of the page.",
"type": "string",
"example": "Boeing 737-800",
"suggested": true
},
"caption": {
"label": "Image caption",
"description": "A brief description of the image shown in the InfoBox.",
"type": "string",
"example": "Boeing 737-800 flying low over the [[Thalassan Sea]]",
"suggested": true
},
"Rarity": {
"label": "Rarity",
"description": "The ingame rarity of the vehicle.",
"type": "string",
"suggestedvalues": [
"Widespread",
"Common",
"Uncommon",
"Rare",
"Ultra Rare",
"Epic",
"Mythical"
            ],
"example": "Common",
"suggested": true
},
"Code": {
"label": "Code",
"description": "The ingame code of the vehicle.",
"type": "string",
"example": "737-800",
"suggested": true
},
"Type": {
"label": "Type",
"description": "The license required to operate this vehicle",
"type": "string",
"suggestedvalues": [
"Ultralight",
"Single Engine",
"Helicopter",
"Multi Engine",
"Jet Engine",
"Supersonic Transport",
"VTOL",
"Airship",
"Boat",
"Ground Vehicle"
],
"example": "Jet Engine",
"suggested": true
},
"photo": {
"label": "Image",
"description": "Image shown at the top of the InfoBox.",
"example": "Aerowikiplaceholder.jpg",
"type": "wiki-file-name",
"suggested": true
},
"Distributor": {
"type": "string",
"label": "Distributor / Conversion time / Craftable",
"description": "The secondary requirement to obtain the vehicle",
"example": "Kitesboro International Airport / 100 / Boeing 737-800",
"suggested": true
},
"Cost": {
"label": "Cost / Vehicle converted from / Badge / Crate parts / Job",
"description": "The primary requirement to obtain the vehicle.",
"example": "19300 / Boeing 737-800 / 100K Favorites / 6 / Valois Retirement Flight",
"type": "string",
"suggested": true
},
"Conversion Cost": {
"label": "Conversion Cost",
"description": "The cost of converting to this vehicle (from the last)",
"example": "19300",
"type": "string",
"suggested": true
        },
"Conversion Currency": {
"label": "Conversion Currncy",
"description": "Normally not filled in, only used if WP is used for conversion",
"suggestedvalues": ["WP"],
"type": "string"
},
"Jobs": {
"label": "Available jobs",
"description": "A list of the available jobs the vehicle has. Items are to be separated by commas. ",
"example": "Passenger, Charter",
"type": "string",
"suggested": true
},
"Customization": {
"label": "Vehicle customization",
"description": "List of customization options the vehicle has. Options are to be separated by commas.",
"type": "string",
"example": "Advanced Liveries, Advanced Customization, Cockpit",
"suggested": true
},
"Max Speed": {
"label": "Maximum speed",
"description": "The maximum speed of the vehicle in knots (units are automatically appended).",
"example": "453",
"type": "number",
"suggested": true
},
"Stall Speed": {
"label": "Stall speed",
"description": "The stall speed of the vehicle in knots (units are automatically appended, will be hidden automatically if the vehicle type is ground vehicle or boat).",
"example": "120",
"type": "number",
"suggested": true
},
"CeilingFeet": {
"label": "Service ceiling",
"description": "The service ceiling of the vehicle in feet (units are automatically appended, will be hidden automatically if the vehicle type is ground vehicle or boat).",
"example": "41010",
"type": "number",
"suggested": true
},
"RangeNM": {
"label": "Range",
"description": "The range of the vehicle in nautical miles (units are automatically appended).",
"example": "144",
"type": "number",
"suggested": true
},
"Capacity": {
"label": "Capacity",
"description": "The capacity of the vehicle.",
"example": "36",
"type": "number",
"suggested": true
},
"Contributors": {
"label": "Contributors",
"description": "A list of the developers/members who contributed towards the vehicle. Developers have their own category pages so check that their username is typed correctly. Names are to be separated by commas.",
"example": "TheOnly0Ne, Giovanni_085931, Enclaved_YT, EAT_RIC3",
"type": "string",
"suggested": true
},
"Obtainability Type": {
"label": "Obtainability Type",
"description": "The method of obtaining the vehicle.",
"example": "Purchasable",
"type": "string",
"suggestedvalues": [
"Purchasable",
"Badge Vehicle",
"Craftable",
"Convertible",
                "Job Vehicle"
],
"autovalue": "",
"suggested": true
}
},
"paramOrder": [
"name",
"Code",
"Type",
"Rarity",
"Obtainability Type",
"Cost",
        "Conversion Cost",
        "Conversion Currency",
"Distributor",
"Jobs",
"Customization",
"Contributors",
"Max Speed",
"Stall Speed",
"CeilingFeet",
"RangeNM",
"Capacity",
"photo",
"caption"
]
}
</templatedata>
[[Category:Infoboxes]]
</noinclude>
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.