Template:InfoBoxVehicle: Difference between revisions
More actions
No edit summary |
replaced inline css with classes. moved styles to Template:Infobox/styles.css |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| class="infobox | <templatestyles src="Template:Infobox/styles.css"/> | ||
|+ | {| class="infobox" | ||
|+ class="infobox__title rarity-{{lcfirst:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}} | |||
|- | |- | ||
| colspan="2" | | colspan="2" class="infobox__image" | {{#ifexist: {{PAGENAME}}photo.png | [[File:{{{photo|{{PAGENAME}}photo.png}}}|300px]]| [[File:{{{photo|Aerowikiplaceholder.jpg}}}|300px]]}} | ||
|- | |- | ||
| colspan="2" | | colspan="2" class="infobox__caption" | {{{caption|(Empty Caption) [[Category: Missing Parameters]]}}} | ||
|- | |- | ||
| colspan="2" | | colspan="2" class="infobox__subtitles" | {{{General Information|General Information}}} | ||
|- | |- | ||
! | ! class="infobox__field-name" | Code | ||
| | | class="infobox__field-value" | {{{Code| Unknown/None [[Category: Missing Parameters]]}}} | ||
|- | |- | ||
! | ! 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-name" | Rarity | ||
| | | class="infobox__rarity-value rarity-{{lcfirst:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{Rarity|Unknown/None [[Category: Missing Parameters]]}}} {{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}} | ||
|- | |- | ||
[[Category:{{{Obtainability Type}}}]] | |||
{{#ifeq: {{{Obtainability Type | {{#ifeq: {{{Obtainability Type}}} | Purchasable | | ||
<tr> | <tr> | ||
<th | <th class="infobox__field-name">Cost</th> | ||
<td | <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> | ||
<tr> | <tr> | ||
<th | <th class="infobox__field-name">Distributor</th> | ||
<td | <td class="infobox__field-value">{{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown/None [[Category: Missing Parameters]]}}</td> | ||
</tr> | </tr> | ||
|{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle | | |{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle | | ||
<tr> | <tr> | ||
<th | <th class="infobox__field-name">Badge</th> | ||
<td | <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} badge | Unknown/None [[Category: Missing Parameters]]}}</td> | ||
</tr> | </tr> | ||
|{{#ifeq: {{{Obtainability Type}}} | Crate Vehicle | | |{{#ifeq: {{{Obtainability Type}}} | Crate Vehicle | | ||
<tr> | <tr> | ||
<th | <th class="infobox__field-name">Crafting requirement</th> | ||
<td | <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} parts {{#if: {{{Distributor|}}} | and [[{{{Distributor}}}]]}} | Unknown/None [[Category: Missing Parameters]]}}</td> | ||
</tr> | </tr> | ||
|{{#ifeq: {{{Obtainability Type}}} | Convertible | | |{{#ifeq: {{{Obtainability Type}}} | Convertible | | ||
<tr> | <tr> | ||
<th | <th class="infobox__field-name">Obtainability</th> | ||
<td | <td class="infobox__field-value">{{#if: {{{Cost|}}} | Convertible from [[{{{Cost}}}]] | Unknown/None [[Category: Missing Parameters]]}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th | <th class="infobox__field-name">Conversion Cost</th> | ||
<td | <td class="infobox__field-value">{{#iferror: {{#expr: {{{Distributor|}}} + 0 }} | Invalid Conversion Cost String [[Category: Missing Parameters]] | {{#if: {{{Distributor|}}} | $'''{{formatnum:{{{Distributor}}}}}''' | Unknown/None [[Category: Missing Parameters]]}}}}</td> | ||
</tr> | </tr> | ||
}}}}}}}} | }}}}}}}} | ||
|- | |- | ||
! | ! class="infobox__field-name" | Jobs | ||
| | | class="infobox__field-value" | {{#invoke: Sqwishyish/ListTools | ||
| split_list | {{{Jobs|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown/None [[Category: Missing Parameters]]}} | | split_list | {{{Jobs|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown/None [[Category: Missing Parameters]]}} | ||
|- | |- | ||
! | ! class="infobox__field-name" | Customization | ||
| | | class="infobox__field-value" | {{#invoke: Sqwishyish/ListTools | ||
| 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}} [[Category: {split}]][[:Category: {split}|{split}]] <br> | Unknown/None [[Category: Missing Parameters]]}} | ||
|- | |- | ||
! | ! class="infobox__field-name" | Contributors | ||
| | | class="infobox__field-value" | {{#invoke: Sqwishyish/ListTools | ||
| split_list | {{{Contributors|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown/None [[Category: Missing Parameters]]}} | | split_list | {{{Contributors|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown/None [[Category: Missing Parameters]]}} | ||
|- | |- | ||
| colspan="2" | | colspan="2" class="infobox__sybtitles" | {{{Specifications|Specifications}}} | ||
|- | |- | ||
! | ! class="infobox__field-name" | Max Speed | ||
| | | 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 --> | <!-- 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 || | ||
Line 80: | Line 71: | ||
{{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter || | {{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter || | ||
<tr> | <tr> | ||
<th | <th class="infobox__field-name">Stall Speed</th> | ||
<td | <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> | </tr> | ||
}}}} | }}}} | ||
{{#if: {{{CeilingFeet|0}}} | {{#if: {{{CeilingFeet|0}}} | ||
| <tr> | | <tr> | ||
<th | <th class="infobox__field-name">Ceiling</th> | ||
<td | <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> | </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]]}}''' | ||
|}[[Category:Vehicles]]</includeonly> | |}[[Category:Vehicles]]</includeonly> | ||
<noinclude> | <noinclude> | ||
Line 270: | Line 261: | ||
], | ], | ||
"autovalue": "Purchasable", | "autovalue": "Purchasable", | ||
" | "required": true | ||
} | } | ||
}, | }, |
Revision as of 09:42, 2 May 2025
![]() | |
Boeing 737-800 flying low over the Thalassan Sea | |
General Information | |
Code | 737-800 |
---|---|
Type | Jet Engine |
Rarity | Common |
Cost | 19,300 WP |
Distributor | Kitesboro International Airport |
Jobs | Passenger, Charter |
Customization | ![]() ![]() |
Contributors | RealPerseus, 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 |
Vehicle InfoBox Template (currently in testing state)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the vehicle, this should be the same as the name of the page.
| String | suggested |
Code | Code | The ingame code of the vehicle.
| String | suggested |
Type | Type | The license required to operate this vehicle
| String | suggested |
Rarity | Rarity | The ingame rarity of the vehicle.
| String | suggested |
Obtainability Type | Obtainability Type | The method of obtaining the vehicle.
| String | required |
Cost / Vehicle converted from / Badge / Crate parts | Cost | The primary requirement to obtain the vehicle.
| String | suggested |
Distributor / Conversion cost | Distributor | The secondary requirement to obtain the vehicle
| String | suggested |
Available jobs | Jobs | A list of the available jobs the vehicle has. Items are to be separated by commas.
| String | suggested |
Vehicle customization | Customization | List of customization options the vehicle has. Options are to be separated by commas.
| String | suggested |
Contributors | Contributors | 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.
| String | suggested |
Maximum speed | Max Speed | The maximum speed of the vehicle in knots (units are automatically appended).
| Number | suggested |
Stall speed | Stall 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).
| Number | suggested |
Service ceiling | CeilingFeet | 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).
| Number | suggested |
Range | RangeNM | The range of the vehicle in nautical miles (units are automatically appended).
| Number | suggested |
Capacity | Capacity | The capacity of the vehicle.
| Number | suggested |
Image | photo | Image shown at the top of the InfoBox.
| File | suggested |
Image caption | caption | A brief description of the image shown in the InfoBox.
| String | suggested |