Difference between revisions of "Template:Vehicle"

225 bytes added ,  03:06, 14 January 2019
Add legal status
(Add vehicle type (Car, Truck, MRAP, Air, Boat) etc)
(Add legal status)
Line 3: Line 3:
|+ style="background-color: #c1c1c1;" |{{{VehName}}}
|+ style="background-color: #c1c1c1;" |{{{VehName}}}
|+ [[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|+ [[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|-
| '''Type:'''
| [[{{{VehicleType}}}]]
|-
|-
| '''Classname:'''
| '''Classname:'''
| {{{ClassName}}}
| {{{ClassName}}}
|-
| '''Type:'''
| [[{{{VehicleType}}}]]
|-
|-
| '''Buy Price:'''
| '''Buy Price:'''
Line 24: Line 24:
| '''Chop Shop Price:'''
| '''Chop Shop Price:'''
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{formatnum:{{{ChopPrice}}}}} | Not stealable }} | Unknown}}
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{formatnum:{{{ChopPrice}}}}} | Not stealable }} | Unknown}}
|-
| '''Legal Status'''
| {{#ifeq: {{{VehicleIllegal}}} | 1 | Illegal | Legal}}
|-
|-
| '''Trunk Space:'''
| '''Trunk Space:'''
Line 144: Line 147:
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"suggested": true
},
"VehicleIllegal": {
"label": "Vehicle Illegal",
"type": "boolean",
"autovalue": "false",
"required": true
}
}
},
},
Line 150: Line 159:
"Image",
"Image",
"VehName",
"VehName",
"VehicleType",
"ClassName",
"ClassName",
"VehicleType",
"BuyPrice",
"BuyPrice",
"RentalPrice",
"RentalPrice",
Line 157: Line 166:
"SellPrice",
"SellPrice",
"ChopPrice",
"ChopPrice",
"VehicleIllegal",
"TrunkSpace",
"TrunkSpace",
"MaxSpeed",
"MaxSpeed",