Template:InfoBoxVehicle: Difference between revisions
Template page
More actions
Sqwishyish (talk | contribs) m Sqwishyish moved page Template:Testinfobox to Template:VehicleInfoBox: Finished testing the template |
Sqwishyish (talk | contribs) Added jobs obtainability type |
||
Line 32: | Line 32: | ||
<tr> | <tr> | ||
<th class="infobox__field-name">Badge</th> | <th class="infobox__field-name">Badge</th> | ||
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown/None [[Category: Missing Parameters]]}}</td> | ||
</tr> | </tr> | ||
|{{#ifeq: {{{Obtainability Type}}} | | |{{#ifeq: {{{Obtainability Type}}} | Craftable | | ||
<tr> | <tr> | ||
<th class="infobox__field-name">Crafting requirement</th> | <th class="infobox__field-name">Crafting requirement</th> | ||
Line 48: | Line 48: | ||
<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/None [[Category: Missing Parameters]]}}}}</td> | ||
</tr> | </tr> | ||
}}}}}}}} | |{{#ifeq: {{{Obtainability Type}}} | Job Vehicle | | ||
<tr> | |||
<th class="infobox__field-name">Obtainability</th> | |||
<td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown/None [[Category: Missing Parameters]]}}</td> | |||
</tr> | |||
}}}}}}}}}} | |||
|- | |- | ||
! class="infobox__field-name" | Jobs | ! class="infobox__field-name" | Jobs | ||
Line 181: | Line 186: | ||
"Distributor": { | "Distributor": { | ||
"type": "string", | "type": "string", | ||
"label": "Distributor / Conversion time / | "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 192: | ||
}, | }, | ||
"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", | "type": "string", | ||
"suggested": true | "suggested": true | ||
Line 257: | Line 262: | ||
"Purchasable", | "Purchasable", | ||
"Badge Vehicle", | "Badge Vehicle", | ||
" | "Craftable", | ||
"Convertible" | "Convertible" | ||
], | ], |