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)
mNo edit summary
Sqwishyish (talk | contribs)
Updated how the cost display system worked
Line 14: Line 14:
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Type
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Type
| style="background-color: #0c0e12; color: white; padding: 0.6em;" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]][[Category:{{{Type}}}s]] | Unknown/None [[Category: Missing Parameters]]}}
| style="background-color: #0c0e12; color: white; padding: 0.6em;" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]][[Category:{{{Type}}}s]] | Unknown/None [[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;" | {{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown/None [[Category: Missing Parameters]]}}
|-
|-
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Rarity
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Rarity
Line 28: Line 25:
Ultra Rare = background-color: #66a3ff; color: white; |
Ultra Rare = background-color: #66a3ff; color: white; |
Epic = background-color: #ffbb33; color: black; |
Epic = background-color: #ffbb33; color: black; |
#default = }}; border-radius: 25px; border: 15px solid #0c0e12;padding: 0.43em; text-align: center; border-collapse: seperate;" |
#default = }}; border-radius: 25px; border: 15px solid #101317;padding: 0.43em; text-align: center; border-collapse: seperate;" |
{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}} {{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}}
{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}} {{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}}
|-
|-
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Cost
[[Category:{{{Obtainability Type}}}]]
| style="background-color: #101317; color: white; padding: 0.6em;" | {{#iferror: {{#expr: {{{Cost|0}}} + 0 }} | {{{Cost}}} | '''{{#if: {{{Cost|}}} | {{formatnum:{{{Cost}}}}} | 0 [[Category: Missing Parameters]]}}''' WP }}
{{#ifeq: {{{Obtainability Type}}} | Purchasable |
<tr>
<th style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;">Cost</th>
<td style="background-color: #0c0e12; color: white; padding: 0.6em;">{{#iferror: {{#expr: {{{Cost|0}}} + 0 }} | Invalid Cost String [[Category: Missing Parameters]] | '''{{#if: {{{Cost|}}} | {{formatnum:{{{Cost}}}}} | 0 [[Category: Missing Parameters]]}}''' WP }}</td>
</tr>
<tr>
<th style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;">Distributor</th>
<td style="background-color: #0c0e12; color: white; padding: 0.6em;">{{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown/None [[Category: Missing Parameters]]}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle |
<tr>
<th style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;">Badge</th>
<td style="background-color: #0c0e12; color: white; padding: 0.6em;">{{#if: {{{Cost|}}} | {{{Cost}}} badge | Unknown/None [[Category: Missing Parameters]]}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Crate Vehicle |
<tr>
<th style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;">Crafting requirement</th>
<td style="background-color: #0c0e12; color: white; padding: 0.6em;">{{#if: {{{Cost|}}} | {{{Cost}}} parts {{#if: {{{Distributor|}}} | and [[{{{Distributor}}}]]}} | Unknown/None [[Category: Missing Parameters]]}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Convertible |
<tr>
<th style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;">Obtainability</th>
<td style="background-color: #0c0e12; color: white; padding: 0.6em;">{{#if: {{{Cost|}}} | Convertible from [[{{{Cost}}}]] | Unknown/None [[Category: Missing Parameters]]}}</td>
</tr>
<tr>
<th style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;">Conversion Cost</th>
<td style="background-color: #0c0e12; color: white; padding: 0.6em;">{{#iferror: {{#expr: {{{Distributor|}}} + 0 }} | Invalid Conversion Cost String [[Category: Missing Parameters]] | {{#if: {{{Distributor|}}} | $'''{{formatnum:{{{Distributor}}}}}''' | Unknown/None [[Category: Missing Parameters]]}}}}</td>
</tr>
}}}}}}}}
|-
|-
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Jobs   
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em; border-right: 0.4px solid black;" | Jobs   
Line 74: Line 99:
|}[[Category:Vehicles]]</includeonly>
|}[[Category:Vehicles]]</includeonly>
<noinclude>
<noinclude>
<!-- Example example values -->
<!-- Example values -->
{{Template:Testinfobox
{{Template:Testinfobox
<!-- | 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]]
| Rarity = Common
| Rarity = Common
| Code = 737-800
| Code = 737-800
| Type = Jet Engine
| Type = Jet Engine
| Distributor = Kitesboro International Airport
| Obtainability Type = Purchasable
| Cost = 19300
| Cost = 19300
| Distributor = Kitesboro International Airport
| Jobs = Passenger, Charter
| Jobs = Passenger, Charter
| Max Speed = 453
| Max Speed = 453
Line 91: Line 117:
| Customization = Advanced Liveries, Advanced Customization
| Customization = Advanced Liveries, Advanced Customization
| Contributors = RealPerseus, EAT_RIC3, Giovanni_085391
| Contributors = RealPerseus, EAT_RIC3, Giovanni_085391
| photo = Aerowikiplaceholder.jpg -->
| photo = Aerowikiplaceholder.jpg
}}
}}
<templatedata>
<templatedata>
Line 164: Line 190:
"Distributor": {
"Distributor": {
"type": "string",
"type": "string",
"label": "Distributor",
"label": "Distributor / Conversion cost",
"description": "Location the vehicle can obtained.",
"description": "The secondary requirement to obtain the vehicle",
"example": "Kitesboro International Airport",
"example": "Kitesboro International Airport ",
"suggested": true
"suggested": true
},
},
"Cost": {
"Cost": {
"label": "Cost",
"label": "Cost / Vehicle converted from / Badge / Crate parts",
"description": "Cost of the vehicle in Wingz Points (units are automatically appended), or the method of obtaining the vehicle. ",
"description": "The primary requirement to obtain the vehicle.",
"example": "19300",
"example": "19300 / Boeing 737-800 / 100K Favorites / 6 Parts",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 231: Line 257:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"Obtainability Type": {
"label": "Obtainability Type",
"description": "The method of obtaining the vehicle.",
"example": "Purchasable",
"type": "string",
"suggestedvalues": [
"Purchasable",
"Badge Vehicle",
"Crate Vehicle",
"Convertible"
],
"autovalue": "Purchasable",
"required": true
}
}
},
},
Line 237: Line 277:
"Code",
"Code",
"Type",
"Type",
"Distributor",
"Rarity",
"Rarity",
"Obtainability Type",
"Cost",
"Cost",
"Distributor",
"Jobs",
"Jobs",
"Customization",
"Customization",
Cookies help us deliver our services. By using our services, you agree to our use of cookies.