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)
Testing hiding catagory links
Sqwishyish (talk | contribs)
m Cleaning up template code.
Line 34: Line 34:
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;" | Max Speed
! style="background-color: #18191c; color: white; text-align: center; padding: 0.4em;" | Max Speed
| style="background-color: #101317; color: white; padding: 0.6em;" | '''{{formatnum:{{{Max Speed}}}}}''' knots / '''{{formatnum:{{#expr: {{{Max Speed}}} * 1.852 round 0}}}}''' kph
| style="background-color: #101317; color: white; padding: 0.6em;" | '''{{formatnum:{{{Max Speed}}}}}''' knots / '''{{formatnum:{{#expr: {{{Max Speed}}} * 1.852 round 0}}}}''' kph
<!-- 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|}}}
{{#if: {{{Stall Speed|}}}
Line 56: Line 57:
|}
|}


<!-- Catagory Tags -->
{{#ifeq:{{{Rarity|}}}|Widespread|[[Category:Widespread Vehicles]]}}
{{#ifeq:{{{Rarity|}}}|Widespread|[[Category:Widespread Vehicles]]}}
{{#ifeq:{{{Rarity|}}}|Common|[[Category:Common Vehicles]]}}
{{#ifeq:{{{Rarity|}}}|Common|[[Category:Common Vehicles]]}}
Line 75: Line 77:
{{#ifeq:{{{Type|}}}|Boat|[[Category:Boats]]}}
{{#ifeq:{{{Type|}}}|Boat|[[Category:Boats]]}}
{{#ifeq:{{{Type|}}}|Ground Vehicle|[[Category:Ground Vehicles]]}}
{{#ifeq:{{{Type|}}}|Ground Vehicle|[[Category:Ground Vehicles]]}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 96: Line 97:
| photo = Aerowikiplaceholder.jpg
| photo = Aerowikiplaceholder.jpg
}}
}}
<templatedata>
<templatedata>
{
{
"description": "Vehicle InfoBox Template (currently in testing state)",
"description": "Vehicle InfoBox Template (currently in testing state)",
"params": {
"params": {
"name": {
"name": {
"label": "Name",
"label": "Name",
"description": "The name of the vehicle, this should be the same as the name of the page.",
"description": "The name of the vehicle, this should be the same as the name of the page.",
"type": "string",
"type": "string",
"example": "Boeing 737-800",
"example": "Boeing 737-800",
"suggested": true
"suggested": true
},
},
"caption": {
"caption": {
"label": "Image caption",
"label": "Image caption",
"description": "A brief description of the image shown in the InfoBox.",
"description": "A brief description of the image shown in the InfoBox.",
"type": "string",
"type": "string",
"example": "Boeing 737-800 flying low over the [[Thalassan Sea]]",
"example": "Boeing 737-800 flying low over the [[Thalassan Sea]]",
"suggested": true
"suggested": true
},
},
"Rarity": {
"Rarity": {
"label": "Rarity",
"label": "Rarity",
"description": "The ingame rarity of the vehicle.",
"description": "The ingame rarity of the vehicle.",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"Widespread",
"Widespread",
"Common",
"Common",
"Uncommon",
"Uncommon",
"Rare",
"Rare",
"Ultra Rare",
"Ultra Rare",
"Epic",
"Epic",
"Mythical",
"Mythical",
"Legendary"
"Legendary"
],
],
"example": "Common",
"example": "Common",
"suggested": true
"suggested": true
},
},
"Code": {
"Code": {
"label": "Code",
"label": "Code",
"description": "The ingame code of the vehicle.",
"description": "The ingame code of the vehicle.",
"type": "string",
"type": "string",
"example": "737-800",
"example": "737-800",
"suggested": true
"suggested": true
},
},
"Type": {
"Type": {
"label": "Type",
"label": "Type",
"description": "The license required to operate this aircraft",
"description": "The license required to operate this vehicle",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"Ultralight",
"Ultralight",
"Single Engine",
"Single Engine",
"Helicopter",
"Helicopter",
"Multi Engine",
"Multi Engine",
"Jet Engine",
"Jet Engine",
"Supersonic Transport",
"Supersonic Transport",
"VTOL",
"VTOL",
"Airship",
"Airship",
"Boat",
"Boat",
"Ground Vehicle"
"Ground Vehicle"
],
],
"example": "Jet Engine",
"example": "Jet Engine",
"suggested": true
"suggested": true
},
},
"photo": {
"photo": {
"label": "Image",
"label": "Image",
"description": "Image shown at the top of the InfoBox.",
"description": "Image shown at the top of the InfoBox.",
"example": "Aerowikiplaceholder.jpg",
"example": "Aerowikiplaceholder.jpg",
"type": "wiki-file-name",
"type": "wiki-file-name",
"autovalue": "Aerowikiplaceholder.jpg",
"autovalue": "Aerowikiplaceholder.jpg",
"suggested": true
"suggested": true
},
},
"Distributor": {
"Distributor": {
"type": "string",
"type": "string",
"label": "Distributor",
"label": "Distributor",
"description": "Location the vehicle can obtained.",
"description": "Location the vehicle can obtained.",
"example": "[[Clarence International Airport]]",
"example": "[[Clarence International Airport]]",
"suggested": true
"suggested": true
},
},
"Cost": {
"Cost": {
"aliases": [
"aliases": [
"Price"
"Price"
],
],
"label": "Cost",
"label": "Cost",
"description": "Cost of the vehicle in Wingz Points (units are automatically appended), or the method of obtaining the vehicle. ",
"description": "Cost of the vehicle in Wingz Points (units are automatically appended), or the method of obtaining the vehicle. ",
"example": "19300",
"example": "19300",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"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 page links and 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 options",
"description": "(Work in progress)",
"description": "(Work in progress)",
"type": "string"
"type": "string"
},
},
"Max Speed": {
"Max Speed": {
"label": "Maximum speed",
"label": "Maximum speed",
"description": "The maximum speed of the vehicle in knots (units are automatically appended).",
"description": "The maximum speed of the vehicle in knots (units are automatically appended).",
"example": "453",
"example": "453",
"type": "number",
"type": "number",
"suggested": true
"suggested": true
},
},
"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",
"suggested": true
"suggested": true
},
},
"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",
"suggested": true
"suggested": true
},
},
"RangeNM": {
"RangeNM": {
"label": "Range",
"label": "Range",
"description": "The range of the vehicle in nautical miles (units are automatically appended).",
"description": "The range of the vehicle in nautical miles (units are automatically appended).",
"example": "144",
"example": "144",
"type": "number",
"type": "number",
"suggested": true
"suggested": true
},
"Capacity": {
"label": "Capacity",
"description": "The capacity of the vehicle.",
"example": "36",
"type": "number",
"suggested": true
}
},
},
"Capacity": {
"paramOrder": [
"label": "Capacity",
"name",
"description": "The capacity of the vehicle.",
"Code",
"example": "36",
"Type",
"type": "number",
"Distributor",
"suggested": true
"Rarity",
}
"Cost",
},
"Jobs",
"paramOrder": [
"Customization",
"name",
"Max Speed",
"Code",
"Stall Speed",
"Type",
"CeilingFeet",
"Distributor",
"RangeNM",
"Rarity",
"Capacity",
"Cost",
"photo",
"Jobs",
"caption"
"Customization",
]
"Max Speed",
"Stall Speed",
"CeilingFeet",
"RangeNM",
"Capacity",
"photo",
"caption"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.