Difference between revisions of "Template:Vehicle"

21 bytes added ,  11:10, 28 April 2020
removed pricing option
(Undo revision 675 by Jaffa (talk))
Tag: Undo
(removed pricing option)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: right">
{| class="infobox"
{| class="infobox"
|+ style="background-color: #c1c1c1;" |{{{VehName}}}
|+ class="infobox-title"|{{{VehName}}}
!colspan="2"|[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|colspan="2"|[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|-
|-
| '''Type:'''
| '''Type:'''
| [[{{{VehicleType}}}]]
| [[{{{VehicleType}}}]]
|-
| '''Buy Price:'''
| {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{formatnum:{{{BuyPrice}}}}}}}
|-
| '''Rental Price:'''
| {{#if: {{{RentalPrice|}}} | £{{formatnum:{{{RentalPrice}}}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{formatnum:{{#expr: {{{BuyPrice}}}/2 round 0}}}}}}}}
|-
| '''Retrieval Price:'''
| £{{formatnum:{{{RetrievalPrice}}}}}
|-
| '''Sell Price:'''
| £{{formatnum:{{{SellPrice}}}}}
|-
| '''Chop Shop Price:'''
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{formatnum:{{{ChopPrice}}}}} | Not stealable }} | Unknown}}
|-
|-
| '''Legal Status:'''
| '''Legal Status:'''
| {{#ifeq: {{{VehicleIllegal}}} | 1 | Illegal | Legal}}
| {{#ifeq: {{{VehicleIllegal}}} | 1 | Illegal | Legal}}
|- {{#if: {{{WeaponPrimary|}}} | | style="display: none;" }}
| '''Weapon:'''
| {{{WeaponPrimary}}}
|-
|-
| '''Trunk Space:'''
| '''Trunk Space:'''
Line 30: Line 17:
| '''Max Speed:'''
| '''Max Speed:'''
| {{{MaxSpeed}}} km/h
| {{{MaxSpeed}}} km/h
|- {{#if: {{{HorsePower|}}} | | style="display: none;" }}
| '''Horse Power:'''
| {{{HorsePower}}}
|-
|-
| '''Fuel Capacity:'''
| '''Fuel Capacity:'''
Line 40: Line 30:
| {{{ArmourRating}}}
| {{{ArmourRating}}}
|}
|}
</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 50: Line 39:
"type": "wiki-file-name",
"type": "wiki-file-name",
"required": true,
"required": true,
"example": "Image_Name.jpg"
"example": "Image_Name.jpg",
"autovalue": ""
},
},
"VehName": {
"VehName": {
"label": "Vehicle Name",
"label": "Vehicle Name",
"description": "Name of the Vehicle",
"description": "Name of the Vehicle",
"type": "string",
"type": "line",
"required": true,
"required": true,
"example": "Hatchback (Sport)"
"example": "Hatchback (Sport)"
Line 63: Line 53:
"description": "Doesn't display publicly - Internal use only",
"description": "Doesn't display publicly - Internal use only",
"example": "C_Hatchback_01_sport_F",
"example": "C_Hatchback_01_sport_F",
"type": "string",
"type": "line",
"suggested": true
"suggested": true
},
},
Line 98: Line 88:
"ChopPrice": {
"ChopPrice": {
"label": "Chop Shop Price",
"label": "Chop Shop Price",
"description": "How much you get if you chop the vehicle if possible - If not possible, remove this field",
"description": "How much you get paid to scrap or how much to steal.  If can't be stolen enter -1",
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
Line 142: Line 132:
"label": "Vehicle Type",
"label": "Vehicle Type",
"description": "Vehicle Type, used to link to a page to show requirements.",
"description": "Vehicle Type, used to link to a page to show requirements.",
"example": "MRAP",
"example": "Car, Truck, MRAP, Helicopter, Plane",
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"suggested": true
Line 149: Line 139:
"label": "Vehicle Illegal",
"label": "Vehicle Illegal",
"type": "boolean",
"type": "boolean",
"autovalue": "false",
"autovalue": "0",
"required": true,
"required": true,
"description": "Indicates if the vehicle is illegal or not.  Set False for Legal and True for Illegal"
"description": "Indicates if the vehicle is illegal or not.  Set 0 for Legal and 1 for Illegal",
"example": "1",
"default": "0"
},
"WeaponPrimary": {
"description": "Name of the primary vehicle mounted weapon.",
"type": "line"
},
"HorsePower": {
"label": "Horse Power",
"description": "Total Horsepower of Vehicle",
"example": "50",
"type": "number",
"suggested": true
}
}
},
},
Line 167: Line 170:
"TrunkSpace",
"TrunkSpace",
"MaxSpeed",
"MaxSpeed",
"HorsePower",
"FuelSpace",
"FuelSpace",
"Seats",
"Seats",
"ArmourRating",
"ArmourRating",
"ClassName"
"ClassName",
"WeaponPrimary"
],
],
"format": "block"
"format": "block"
Line 179: Line 184:
[[Category:Vehicle Templates]]
[[Category:Vehicle Templates]]
</noinclude>
</noinclude>
<includeonly>
[[Category:General]]
[[Category:Vehicles]]
</includeonly>
1,718

edits