Template:InfoBoxVehicle: Difference between revisions
Template page
More actions
Sqwishyish (talk | contribs) m Sqwishyish moved page Template:VehicleInfoBox to Template:InfoBoxVehicle |
Obtainability Type cat |
||
(6 intermediate revisions by 2 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-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}} | |+ class="infobox__title rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
| colspan="2" class="infobox__image" | {{#ifexist: File:{{{photo}}} | [[File:{{{photo}}}|300px]] | {{#ifexist: File:{{{name}}} | | 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 | | 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}}} | | 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-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}">{{{Rarity|Unknown/None [[Category: Missing Parameters]]} | | class="infobox__field-value" | <span class="infobox__rarity-value rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}">{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}}</span> | ||
|- | |- | ||
{{#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 | <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}}} | Unknown | <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td> | ||
</tr> | </tr> | ||
|{{#ifeq: {{{Obtainability Type}}} | Craftable | | |{{#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 | <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 | <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/ | <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> | </tr> | ||
|{{#ifeq: {{{Obtainability Type}}} | Job Vehicle | | |{{#ifeq: {{{Obtainability Type}}} | Job Vehicle | | ||
<tr> | <tr> | ||
<th class="infobox__field-name">Obtainability</th> | <th class="infobox__field-name">Obtainability</th> | ||
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown | <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td> | ||
</tr> | </tr> | ||
}}}}}}}}}} | }}}}}}}}}}}} | ||
|- | |- | ||
! class="infobox__field-name" | Jobs | ! class="infobox__field-name" | Jobs | ||
| class="infobox__field-value" | {{#invoke: AeroWikiListTools | | class="infobox__field-value" | {{#invoke: AeroWikiListTools | ||
| split_list | {{{Jobs|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown | | 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: AeroWikiListTools | | class="infobox__field-value" | {{#invoke: AeroWikiListTools | ||
| split_list | {{{Customization|}}} | {{Checkbox (colored)|checked|color=blue}} [[Category: {split}]][[:Category: {split}|{split}]] <br> | Unknown | | 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: AeroWikiListTools | | class="infobox__field-value" | {{#invoke: AeroWikiListTools | ||
| split_list | {{{Contributors|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown | | 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 73: | 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 || | ||
{{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter || | {{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter || | ||
<tr> | <tr> | ||
Line 93: | 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]]}}''' | ||
|} | |}</includeonly> | ||
<noinclude> | <noinclude> | ||
<!-- Example values --> | <!-- Example values --> | ||
Line 102: | Line 112: | ||
| Code = 737-800 | | Code = 737-800 | ||
| Type = Jet Engine | | Type = Jet Engine | ||
| Obtainability Type = | | Obtainability Type = Purchaseable | ||
| Cost = 19300 | | Cost = 19300 | ||
| Distributor = Kitesboro International Airport | | Distributor = Kitesboro International Airport | ||
| Jobs = | | Jobs = Charter | ||
| Max Speed = 453 | | Max Speed = 453 | ||
| Stall Speed = 120 | | Stall Speed = 120 | ||
Line 114: | Line 124: | ||
| Contributors = EAT_RIC3, Giovanni_085391 | | Contributors = EAT_RIC3, Giovanni_085391 | ||
| photo = Aerowikiplaceholder.jpg | | photo = Aerowikiplaceholder.jpg | ||
| Conversion Cost = 12345 | |||
| category_disable = yes | |||
}} | }} | ||
<templatedata> | <templatedata> | ||
Line 144: | Line 156: | ||
"Ultra Rare", | "Ultra Rare", | ||
"Epic", | "Epic", | ||
"Mythical" | "Mythical" | ||
], | |||
"example": "Common", | "example": "Common", | ||
"suggested": true | "suggested": true | ||
Line 181: | Line 192: | ||
"example": "Aerowikiplaceholder.jpg", | "example": "Aerowikiplaceholder.jpg", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
Line 197: | Line 207: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "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": { | "Jobs": { | ||
Line 263: | Line 286: | ||
"Badge Vehicle", | "Badge Vehicle", | ||
"Craftable", | "Craftable", | ||
"Convertible" | "Convertible", | ||
"Job Vehicle" | |||
], | ], | ||
"autovalue": "", | "autovalue": "", | ||
Line 276: | Line 300: | ||
"Obtainability Type", | "Obtainability Type", | ||
"Cost", | "Cost", | ||
"Conversion Cost", | |||
"Conversion Currency", | |||
"Distributor", | "Distributor", | ||
"Jobs", | "Jobs", | ||
Line 290: | Line 316: | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Infoboxes]] | |||
</noinclude> | </noinclude> |