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 default vehicle stats to be accurate with ingame information
Owning (talk | contribs)
Obtainability Type cat
 
(52 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
    {| class="infobox" style="width: 22em; border: 0.5px solid grey; border-radius: 0 0 8px 8px; border-collapse: separate; border-spacing: 0; background-clip: padding-box; font-size: 75%; line-height: 1.4em; float: right; clear: right; margin: 0 0 1em 1em; letter-spacing: 0.02em;"
<templatestyles src="Template:Infobox/styles.css"/>
    |+ style="font-size: 160%; font-weight: bolder; text-align: center; padding: 1em; border: 0.5px solid grey; border-bottom: 0px; border-radius: 16px 16px 0 0; {{#switch: {{{Rarity|}}} | Mythical = background-color: #19D9FF; color: white; | Legendary = background-color: #d82121; color: white; | Widespread = background-color: #f5f5f5; color: black; | Common = background-color: #99ff99; color: black; | Uncommon = background-color: #ffff66; color: black; | Rare = background-color: #e0a6ff; color: white; | Ultra Rare = background-color: #66a3ff; color: white; | Epic = background-color: #ffbb33; color: black; | #default = }}" | {{{name}}}
{{#if: {{{category_disable|}}} ||
    |-
<!-- Categories -->
    | colspan="2" style="text-align: center; background-color: #1b1b1b; padding: 0.5em;" | [[File:{{{photo|{{PAGENAME}}photo.png}}}|300px]]
[[Category:Vehicles]]
    |-
{{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle || [[Category:Aircraft]]}}}}
    | colspan="2" style="text-align: center; background-color: #18191c; color: white; font-style: italic; font-size: 85%; padding: 0.4em; border-bottom: 0.4px solid black;" | {{{caption}}}
{{#if: {{{Type|}}} | [[Category:{{{Type}}}s]]}}
    |-
{{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}}
    | colspan="2" style="text-align: center; background-color: #18191c; color: white; font-weight: bold; padding: 0.4em; border-top: 0.5px solid grey; border-bottom: 0.5px solid grey; line-height: 23px;" | {{{General Information|General Information}}}
{{#if: {{{Obtainability Type|}}} | [[Category:{{{Obtainability Type}}}]]}}
    |-
}}
    ! style="background-color: #18191c; color: white; text-align: center; width: 31%; padding: 0.4em; border-right: 0.4px solid black;" | Code
{| class="infobox"
    | style="background-color: #101317; color: white; padding: 0.6em;" | {{{Code}}}
|+ class="infobox__title rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}}
    |-
|-
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Type
| 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]]}}}}
    | style="background-color: #0c0e12; color: white; padding: 0.6em;" | {{{Type}}}
|-
    |-
| colspan="2" class="infobox__caption" | {{{caption|(Empty Caption) [[Category: Missing Parameters]]}}}
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Distributor
|-
    | style="background-color: #101317; color: white; padding: 0.6em;" | {{{Distributor}}}
| colspan="2" class="infobox__subtitles" | {{{General Information|General Information}}}
    |-
|-
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Rarity
! class="infobox__field-name" | Code
    | style= "{{#switch: {{{Rarity|}}} | Mythical = background-color: #19D9FF; color: white; | Legendary = background-color: #d82121; color: white; | Widespread = background-color: #f5f5f5; color: black; | Common = background-color: #99ff99; color: black; | Uncommon = background-color: #ffff66; color: black; | Rare = background-color: #e0a6ff; color: white; | Ultra Rare = background-color: #66a3ff; color: white; | Epic = background-color: #ffbb33; color: black; | #default = }}; border-radius: 25px; border: 15px solid #0c0e12;padding: 0.43em; text-align: center; border-collapse: seperate;" | {{{Rarity}}}
| class="infobox__field-value" | {{{Code| Unknown [[Category: Missing Parameters]]}}}
    |-
|-
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Cost
! class="infobox__field-name" | Type
    | style="background-color: #101317; color: white; padding: 0.6em;" | {{#iferror: {{#expr: {{{Cost}}} + 0 }} | {{{Cost}}} | '''{{formatnum:{{{Cost}}}}} WP''' }}
| class="infobox__field-value" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]] | Unknown [[Category: Missing Parameters]]}}
    |-
|-
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Jobs
! class="infobox__field-name" | Rarity
    | style="background-color: #0c0e12; color: white; padding: 0.6em;" | {{{Jobs}}}
| class="infobox__field-value" | <span class="infobox__rarity-value rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}">{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}}</span>
    |-
|-
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;" | Customization
{{#ifeq: {{{Obtainability Type}}} | Purchasable |
    | style="background-color: #101317; color: white;padding: 0.6em 0.4em 0.6em 0.4em;" | {{{Customization}}}
<tr>
    |-
<th class="infobox__field-name">Cost</th>
    | colspan="2" style="text-align: center; background-color: #1b1b1b; color: white; font-weight: bold; padding: 0.4em; border-top: 0.5px solid grey; border-bottom: 0.5px solid grey; line-height: 23px;" | {{{Specifications|Specifications}}}
<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>
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;" | Max Speed
<tr>
    | style="background-color: #101317; color: white; padding: 0.6em;" | '''{{formatnum:{{{Max Speed}}}}}''' knots / '''{{formatnum:{{#expr: {{{Max Speed}}} * 1.852 round 0}}}}''' kph
<th class="infobox__field-name">Distributor</th>
    |-
<td class="infobox__field-value">{{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown [[Category: Missing Parameters]]}}</td>
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;" | Stall Speed
</tr>
    | style="background-color: #0c0e12; color: white; padding: 0.6em;" | '''{{formatnum:{{{Stall Speed}}}}}''' knots / '''{{formatnum:{{#expr: {{{Stall Speed}}} * 1.852 round 0}}}}''' kph
|{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle |
    |-
<tr>
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;" | Ceiling
<th class="infobox__field-name">Badge</th>
    | style="background-color: #101317; color: white; padding: 0.6em;" | '''{{formatnum:{{{CeilingFeet}}}}}''' ft / '''{{formatnum:{{#expr: {{{CeilingFeet}}} * 0.3048 round 0}}}}''' m
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td>
    |-
</tr>
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;" | Range
|{{#ifeq: {{{Obtainability Type}}} | Craftable |
    | style="background-color: #0c0e12; color: white; padding: 0.6em;" | '''{{formatnum:{{{RangeNM}}}}}''' nmi / '''{{formatnum:{{#expr: {{{RangeNM}}} * 1.852 round 0}}}}''' km
<tr>
    |-
<th class="infobox__field-name">Crafting requirement</th>
    ! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black; border-bottom-left-radius: 8px;" | Capacity
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} parts {{#if: {{{Distributor|}}} | and [[{{{Distributor}}}]]}} | Unknown [[Category: Missing Parameters]]}}</td>
    | style="background-color: #0c0e12; color: white; padding: 0.6em; border-bottom-right-radius: 8px; line-height: 2;" | '''{{formatnum:{{{Capacity}}}}}'''
</tr>
    |}
|{{#ifeq: {{{Obtainability Type}}} | Convertible |
    </includeonly>
<tr>
   
<th class="infobox__field-name">Obtainability</th>
    {{#ifeq:{{{Rarity|}}}|Widespread|[[Category:Widespread Vehicles]]}}
<td class="infobox__field-value">{{#if: {{{Cost|}}} | Convertible from [[{{{Cost}}}]] | Unknown [[Category: Missing Parameters]]}}</td>
    {{#ifeq:{{{Rarity|}}}|Common|[[Category:Common Vehicles]]}}
</tr>
    {{#ifeq:{{{Rarity|}}}|Uncommon|[[Category:Uncommon Vehicles]]}}
<tr>
    {{#ifeq:{{{Rarity|}}}|Rare|[[Category:Rare Vehicles]]}}
<th class="infobox__field-name">Conversion Time</th>
    {{#ifeq:{{{Rarity|}}}|Ultra Rare|[[Category:Ultra Rare Vehicles]]}}
<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>
    {{#ifeq:{{{Rarity|}}}|Epic|[[Category:Epic Vehicles]]}}
</tr>
    {{#ifeq:{{{Rarity|}}}|Mythical|[[Category:Mythical Vehicles]]}}
    <tr>
    {{#ifeq:{{{Rarity|}}}|Legendary|[[Category:Legendary Vehicles]]}}
<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>
    {{#ifeq:{{{Type|}}}|Ultralight|[[Category:Ultralights]]}}
</tr>
    {{#ifeq:{{{Type|}}}|Single Engine|[[Category:Single Engines]]}}
|{{#ifeq: {{{Obtainability Type}}} | Job Vehicle |
    {{#ifeq:{{{Type|}}}|Helicopter|[[Category:Helicopters]]}}
<tr>
    {{#ifeq:{{{Type|}}}|Multi Engine|[[Category:Multi Engines]]}}
<th class="infobox__field-name">Obtainability</th>
    {{#ifeq:{{{Type|}}}|Jet Engine|[[Category:Jet Engines]]}}
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td>
    {{#ifeq:{{{Type|}}}|Supersonic Transport|[[Category:Supersonic Transports]]}}
</tr>
    {{#ifeq:{{{Type|}}}|VTOL|[[Category:VTOLs]]}}
}}}}}}}}}}}}
    {{#ifeq:{{{Type|}}}|Airship|[[Category:Airships]]}}
|-
    {{#ifeq:{{{Type|}}}|Boat|[[Category:Boats]]}}
! class="infobox__field-name" | Jobs 
    {{#ifeq:{{{Type|}}}|Ground Vehicle|[[Category:Ground Vehicles]]}}
| class="infobox__field-value" | {{#invoke: AeroWikiListTools
 
| split_list | {{{Jobs|}}} | {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}  
    <noinclude>
|-
    <!-- Example example values -->
! class="infobox__field-name" | Customization
    {{Template:Testinfobox
| class="infobox__field-value" |  {{#invoke: AeroWikiListTools
    | name = Boeing 737-800
| split_list | {{{Customization|}}} | {{Checkbox (colored)|checked|color=blue}} {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]] <br> | Unknown [[Category: Missing Parameters]]}}  
    | caption = Boeing 737-800 flying low over the [[Thalassan Sea]]
|-
    | Rarity = Common
! class="infobox__field-name" | Contributors
    | Code = 737-800
| class="infobox__field-value" | {{#invoke: AeroWikiListTools
    | Type = Jet Engine
| split_list | {{{Contributors|}}} | {{#if: {{{category_disable|}}} ||[[Category: {split}]]}}[[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}  
    | Distributor = [[Clarence International Airport]]
|-
    | Cost = 19300
| colspan="2" class="infobox__subtitles"  | {{{Specifications|Specifications}}}
    | Jobs = [[Passenger]], [[Charter]]
|-
    | Max Speed = 453
! class="infobox__field-name" | Max Speed
    | Stall Speed = 120
| 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
    | CeilingFeet = 41010
<!-- Hides the stall speed and service ceiling statistics if the vehicle type is a boat or a ground vehicle -->
    | RangeNM = 144
{{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle ||
    | Capacity = 36
{{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter ||
    | Customization = {{Checkbox (colored)|checked|color=blue}}     [[Advanced Liveries]] <br> {{Checkbox (colored)|checked|color=blue}} [[Advanced Customisation]] <br>{{Checkbox (colored)|checked|color=blue}} [[Cockpit]]
  <tr>
    | photo = Aerowikiplaceholder.jpg
<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>
    <templatedata>
}}}}
    {
{{#if: {{{CeilingFeet|0}}}
"description": "Vehicle InfoBox Template(currently in testing state)",
| <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>
}}
}}}}
|-
! class="infobox__field-name" | Range
| class="infobox__field-value" | '''{{#if: {{{RangeNM|}}} | {{formatnum:{{{RangeNM}}}}}| 0 [[Category: Missing Parameters]]}}''' nmi / '''{{formatnum:{{#expr: {{{RangeNM|0 }}} * 1.852 round 0}}}}''' km
|-
! class="infobox__field-name" | Capacity
| class="infobox__field-value"  | '''{{#if: {{{Capacity|}}} | {{formatnum:{{{Capacity}}}}} | 0 [[Category: Missing Parameters]]}}'''
|}</includeonly>
<noinclude>
<!-- Example values -->
{{Template:VehicleInfoBox
| name = Boeing 737-800
| caption = Boeing 737-800 flying low over the [[Thalassan Sea]]
| Rarity = Common
| Code = 737-800
| Type = Jet Engine
| Obtainability Type = Purchaseable
| Cost = 19300
| Distributor = Kitesboro International Airport
| Jobs = Charter
| Max Speed = 453
| Stall Speed = 120
| CeilingFeet = 41010
| RangeNM = 144
| Capacity = 36
| Customization = Advanced Liveries, Advanced Customization
| Contributors = EAT_RIC3, Giovanni_085391
| photo = Aerowikiplaceholder.jpg
| Conversion Cost = 12345
| category_disable = yes
}}
<templatedata>
{
"description": "Public Vehicle InfoBox Template",
"params": {
"params": {
"name": {
"name": {
Line 118: Line 156:
"Ultra Rare",
"Ultra Rare",
"Epic",
"Epic",
"Mythical",
"Mythical"
"Legendary"
            ],
],
"example": "Common",
"example": "Common",
"suggested": true
"suggested": true
Line 133: Line 170:
"Type": {
"Type": {
"label": "Type",
"label": "Type",
"description": "The ingame rarity of the vehicle.",
"description": "The license required to operate this vehicle",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
Line 155: 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",
"label": "Distributor / Conversion time / Craftable",
"description": "Location the vehicle can obtained.",
"description": "The secondary requirement to obtain the vehicle",
"example": "[[Clarence International Airport]]",
"example": "Kitesboro International Airport / 100 / Boeing 737-800",
"suggested": true
"suggested": true
},
},
"Cost": {
"Cost": {
"aliases": [
"label": "Cost / Vehicle converted from / Badge / Crate parts / Job",
"Price"
"description": "The primary requirement to obtain the vehicle.",
],
"example": "19300 / Boeing 737-800 / 100K Favorites / 6 / Valois Retirement Flight",
"label": "Cost",
"type": "string",
"description": "Cost of the vehicle in Wingz Points (units are automatically appended), or the method of obtaining the vehicle. ",
"suggested": true
},
"Conversion Cost": {
"label": "Conversion Cost",
"description": "The cost of converting to this vehicle (from the last)",
"example": "19300",
"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": {
"label": "Available jobs",
"label": "Available jobs",
"description": "A list of the available jobs the vehicle has. Items are to be page links and separated by commas. ",
"description": "A list of the available jobs the vehicle has. Items are to be separated by commas. ",
"example": "[[Passenger]], [[Charter]]",
"example": "Passenger, Charter",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"Customization": {
"Customization": {
"label": "Vehicle customization options",
"label": "Vehicle customization",
"description": "(Work in progress)",
"description": "List of customization options the vehicle has. Options are to be separated by commas.",
"type": "string"
"type": "string",
"example": "Advanced Liveries, Advanced Customization, Cockpit",
"suggested": true
},
},
"Max Speed": {
"Max Speed": {
Line 196: Line 244:
"Stall Speed": {
"Stall Speed": {
"label": "Stall speed",
"label": "Stall speed",
"description": "The stall speed of the vehicle in knots (units are automatically appended).",
"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",
"example": "120",
"type": "number",
"type": "number",
Line 203: Line 251:
"CeilingFeet": {
"CeilingFeet": {
"label": "Service ceiling",
"label": "Service ceiling",
"description": "The service ceiling of the vehicle in feet (units are automatically appended).",
"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",
"example": "41010",
"type": "number",
"type": "number",
Line 220: Line 268:
"example": "36",
"example": "36",
"type": "number",
"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
"suggested": true
}
}
Line 227: Line 297:
"Code",
"Code",
"Type",
"Type",
"Distributor",
"Rarity",
"Rarity",
"Obtainability Type",
"Cost",
"Cost",
        "Conversion Cost",
        "Conversion Currency",
"Distributor",
"Jobs",
"Jobs",
"Customization",
"Customization",
"Contributors",
"Max Speed",
"Max Speed",
"Stall Speed",
"Stall Speed",
Line 241: Line 315:
]
]
}
}
    </templatedata>
</templatedata>
 
[[Category:Infoboxes]]
    </noinclude>
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.