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
Sqwishyish (talk | contribs)
Updated templatedata
Owning (talk | contribs)
Obtainability Type cat
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<templatestyles src="Template:Infobox/styles.css"/>
<templatestyles src="Template:Infobox/styles.css"/>
{{#if: {{{category_disable|}}} ||
<!-- Categories -->
[[Category:Vehicles]]
{{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle || [[Category:Aircraft]]}}}}
{{#if: {{{Type|}}} | [[Category:{{{Type}}}s]]}}
{{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}}
{{#if: {{{Obtainability Type|}}} | [[Category:{{{Obtainability Type}}}]]}}
}}
{| class="infobox"
{| class="infobox"
|+ class="infobox__title rarity-{{lcfirst:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}}
|+ class="infobox__title rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" class="infobox__image" | {{#ifexist: {{PAGENAME}}photo.png | [[File:{{{photo|{{PAGENAME}}photo.png}}}|300px]]| [[File:{{{photo|Aerowikiplaceholder.jpg}}}|300px]]}}
| 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]]}}}}
|-
|-
| colspan="2" class="infobox__caption" | {{{caption|(Empty Caption) [[Category: Missing Parameters]]}}}
| colspan="2" class="infobox__caption" | {{{caption|(Empty Caption) [[Category: Missing Parameters]]}}}
Line 11: Line 19:
|-
|-
! class="infobox__field-name" | Code
! class="infobox__field-name" | Code
| class="infobox__field-value" | {{{Code| Unknown/None [[Category: Missing Parameters]]}}}
| class="infobox__field-value" | {{{Code| Unknown [[Category: Missing Parameters]]}}}
|-
|-
! class="infobox__field-name" | Type
! class="infobox__field-name" | Type
| class="infobox__field-value" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]][[Category:{{{Type}}}s]] | Unknown/None [[Category: Missing Parameters]]}}
| class="infobox__field-value" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]] | Unknown [[Category: Missing Parameters]]}}
|-
|-
! class="infobox__field-name" | Rarity
! class="infobox__field-name" | Rarity
| class="infobox__field-value" | <span class="infobox__rarity-value rarity-{{lcfirst:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}">{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}} {{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}}</span>
| class="infobox__field-value" | <span class="infobox__rarity-value rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}">{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}}</span>
|-
|-
[[Category:{{{Obtainability Type}}}]]
{{#ifeq: {{{Obtainability Type}}} | Purchasable |
{{#ifeq: {{{Obtainability Type}}} | Purchasable |
<tr>
<tr>
Line 27: Line 34:
<tr>
<tr>
<th class="infobox__field-name">Distributor</th>
<th class="infobox__field-name">Distributor</th>
<td class="infobox__field-value">{{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown/None [[Category: Missing Parameters]]}}</td>
<td class="infobox__field-value">{{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle |
|{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle |
<tr>
<tr>
<th class="infobox__field-name">Badge</th>
<th class="infobox__field-name">Badge</th>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} badge | Unknown/None [[Category: Missing Parameters]]}}</td>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Crate Vehicle |
|{{#ifeq: {{{Obtainability Type}}} | Craftable |
<tr>
<tr>
<th class="infobox__field-name">Crafting requirement</th>
<th class="infobox__field-name">Crafting requirement</th>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} parts {{#if: {{{Distributor|}}} | and [[{{{Distributor}}}]]}} | Unknown/None [[Category: Missing Parameters]]}}</td>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} parts {{#if: {{{Distributor|}}} | and [[{{{Distributor}}}]]}} | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Convertible |
|{{#ifeq: {{{Obtainability Type}}} | Convertible |
<tr>
<tr>
<th class="infobox__field-name">Obtainability</th>
<th class="infobox__field-name">Obtainability</th>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | Convertible from [[{{{Cost}}}]] | Unknown/None [[Category: Missing Parameters]]}}</td>
<td class="infobox__field-value">{{#if: {{{Cost|}}} | Convertible from [[{{{Cost}}}]] | Unknown [[Category: Missing Parameters]]}}</td>
</tr>
</tr>
<tr>
<tr>
<th class="infobox__field-name">Conversion Time</th>
<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/None [[Category: Missing Parameters]]}}}}</td>
<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>
}}}}}}}}
    <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>
}}}}}}}}}}}}
|-
|-
! class="infobox__field-name" | Jobs   
! class="infobox__field-name" | Jobs   
| class="infobox__field-value" | {{#invoke: Sqwishyish/ListTools
| class="infobox__field-value" | {{#invoke: AeroWikiListTools
  | split_list | {{{Jobs|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown/None [[Category: Missing Parameters]]}}  
  | split_list | {{{Jobs|}}} | {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}  
|-
|-
! class="infobox__field-name" | Customization
! class="infobox__field-name" | Customization
| class="infobox__field-value" |  {{#invoke: Sqwishyish/ListTools
| class="infobox__field-value" |  {{#invoke: AeroWikiListTools
| split_list | {{{Customization|}}} | {{Checkbox (colored)|checked|color=blue}} [[Category: {split}]][[:Category: {split}|{split}]] <br> | Unknown/None [[Category: Missing Parameters]]}}  
| split_list | {{{Customization|}}} | {{Checkbox (colored)|checked|color=blue}} {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]] <br> | Unknown [[Category: Missing Parameters]]}}  
|-
|-
! class="infobox__field-name" | Contributors
! class="infobox__field-name" | Contributors
| class="infobox__field-value" | {{#invoke: Sqwishyish/ListTools
| class="infobox__field-value" | {{#invoke: AeroWikiListTools
| split_list | {{{Contributors|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown/None [[Category: Missing Parameters]]}}  
| split_list | {{{Contributors|}}} | {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}  
|-
|-
| colspan="2" class="infobox__subtitles"  | {{{Specifications|Specifications}}}
| colspan="2" class="infobox__subtitles"  | {{{Specifications|Specifications}}}
Line 68: Line 84:
<!-- Hides the stall speed and service ceiling statistics if the vehicle type is a boat or a ground vehicle -->
<!-- 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 ||
{{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle ||
[[Category:Aircraft]]
{{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter ||
{{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter ||
  <tr>
  <tr>
Line 88: Line 103:
! class="infobox__field-name" | Capacity
! class="infobox__field-name" | Capacity
| class="infobox__field-value"  | '''{{#if: {{{Capacity|}}} | {{formatnum:{{{Capacity}}}}} | 0 [[Category: Missing Parameters]]}}'''
| class="infobox__field-value"  | '''{{#if: {{{Capacity|}}} | {{formatnum:{{{Capacity}}}}} | 0 [[Category: Missing Parameters]]}}'''
|}[[Category:Vehicles]]</includeonly>
|}</includeonly>
<noinclude>
<noinclude>
<!-- Example values -->
<!-- Example values -->
{{Template:Testinfobox
{{Template:VehicleInfoBox
| name = Boeing 737-800
| name = Boeing 737-800
| caption = Boeing 737-800 flying low over the [[Thalassan Sea]]
| caption = Boeing 737-800 flying low over the [[Thalassan Sea]]
Line 97: Line 112:
| Code = 737-800
| Code = 737-800
| Type = Jet Engine
| Type = Jet Engine
| Obtainability Type = Purchasable
| Obtainability Type = Purchaseable
| Cost = 19300
| Cost = 19300
| Distributor = Kitesboro International Airport  
| Distributor = Kitesboro International Airport  
| Jobs = Passenger, Charter
| Jobs = Charter
| Max Speed = 453
| Max Speed = 453
| Stall Speed = 120
| Stall Speed = 120
Line 107: Line 122:
| Capacity = 36  
| Capacity = 36  
| Customization = Advanced Liveries, Advanced Customization
| Customization = Advanced Liveries, Advanced Customization
| Contributors = RealPerseus, EAT_RIC3, Giovanni_085391
| Contributors = EAT_RIC3, Giovanni_085391
| photo = Aerowikiplaceholder.jpg
| photo = Aerowikiplaceholder.jpg
| Conversion Cost = 12345
| category_disable = yes
}}
}}
<templatedata>
<templatedata>
{
{
"description": "Vehicle InfoBox Template (currently in testing state)",
"description": "Public Vehicle InfoBox Template",
"params": {
"params": {
"name": {
"name": {
Line 139: Line 156:
"Ultra Rare",
"Ultra Rare",
"Epic",
"Epic",
"Mythical",
"Mythical"
"Legendary"
            ],
],
"example": "Common",
"example": "Common",
"suggested": true
"suggested": true
Line 176: Line 192:
"example": "Aerowikiplaceholder.jpg",
"example": "Aerowikiplaceholder.jpg",
"type": "wiki-file-name",
"type": "wiki-file-name",
"autovalue": "Aerowikiplaceholder.jpg",
"suggested": true
"suggested": true
},
},
"Distributor": {
"Distributor": {
"type": "string",
"type": "string",
"label": "Distributor / Conversion time / Crate vehicle",
"label": "Distributor / Conversion time / Craftable",
"description": "The secondary requirement to obtain the vehicle",
"description": "The secondary requirement to obtain the vehicle",
"example": "Kitesboro International Airport / 100 / Boeing 737-800",
"example": "Kitesboro International Airport / 100 / Boeing 737-800",
Line 187: Line 202:
},
},
"Cost": {
"Cost": {
"label": "Cost / Vehicle converted from / Badge / Crate parts",
"label": "Cost / Vehicle converted from / Badge / Crate parts / Job",
"description": "The primary requirement to obtain the vehicle.",
"description": "The primary requirement to obtain the vehicle.",
"example": "19300 / Boeing 737-800 / 100K Favorites / 6",
"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",
"type": "string",
"suggested": true
"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": {
"Jobs": {
Line 257: Line 285:
"Purchasable",
"Purchasable",
"Badge Vehicle",
"Badge Vehicle",
"Crate Vehicle",
"Craftable",
"Convertible"
"Convertible",
                "Job Vehicle"
],
],
"autovalue": "",
"autovalue": "",
Line 271: Line 300:
"Obtainability Type",
"Obtainability Type",
"Cost",
"Cost",
        "Conversion Cost",
        "Conversion Currency",
"Distributor",
"Distributor",
"Jobs",
"Jobs",
Line 285: Line 316:
}
}
</templatedata>
</templatedata>
[[Category:Infoboxes]]
</noinclude>
</noinclude>

Latest revision as of 22:06, 31 August 2025


Boeing 737-800
Boeing 737-800 flying low over the Thalassan Sea
General Information
Code 737-800
Type Jet Engine
Rarity Common
Jobs Charter
Customization Advanced Liveries
Advanced Customization
Contributors EAT_RIC3, Giovanni_085391
Specifications
Max Speed 453 knots / 839 kph
Stall Speed 120 knots / 222 kph
Ceiling 41,010 ft / 12,500 m
Range 144 nmi / 267 km
Capacity 36

Public Vehicle InfoBox Template

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

The name of the vehicle, this should be the same as the name of the page.

Example
Boeing 737-800
Stringsuggested
CodeCode

The ingame code of the vehicle.

Example
737-800
Stringsuggested
TypeType

The license required to operate this vehicle

Suggested values
Ultralight Single Engine Helicopter Multi Engine Jet Engine Supersonic Transport VTOL Airship Boat Ground Vehicle
Example
Jet Engine
Stringsuggested
RarityRarity

The ingame rarity of the vehicle.

Suggested values
Widespread Common Uncommon Rare Ultra Rare Epic Mythical
Example
Common
Stringsuggested
Obtainability TypeObtainability Type

The method of obtaining the vehicle.

Suggested values
Purchasable Badge Vehicle Craftable Convertible Job Vehicle
Example
Purchasable
Auto value
Stringsuggested
Cost / Vehicle converted from / Badge / Crate parts / JobCost

The primary requirement to obtain the vehicle.

Example
19300 / Boeing 737-800 / 100K Favorites / 6 / Valois Retirement Flight
Stringsuggested
Conversion CostConversion Cost

The cost of converting to this vehicle (from the last)

Example
19300
Stringsuggested
Conversion CurrncyConversion Currency

Normally not filled in, only used if WP is used for conversion

Suggested values
WP
Stringoptional
Distributor / Conversion time / CraftableDistributor

The secondary requirement to obtain the vehicle

Example
Kitesboro International Airport / 100 / Boeing 737-800
Stringsuggested
Available jobsJobs

A list of the available jobs the vehicle has. Items are to be separated by commas.

Example
Passenger, Charter
Stringsuggested
Vehicle customizationCustomization

List of customization options the vehicle has. Options are to be separated by commas.

Example
Advanced Liveries, Advanced Customization, Cockpit
Stringsuggested
ContributorsContributors

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
Stringsuggested
Maximum speedMax Speed

The maximum speed of the vehicle in knots (units are automatically appended).

Example
453
Numbersuggested
Stall speedStall Speed

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
Numbersuggested
Service ceilingCeilingFeet

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
Numbersuggested
RangeRangeNM

The range of the vehicle in nautical miles (units are automatically appended).

Example
144
Numbersuggested
CapacityCapacity

The capacity of the vehicle.

Example
36
Numbersuggested
Imagephoto

Image shown at the top of the InfoBox.

Example
Aerowikiplaceholder.jpg
Filesuggested
Image captioncaption

A brief description of the image shown in the InfoBox.

Example
Boeing 737-800 flying low over the [[Thalassan Sea]]
Stringsuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.