Difference between revisions of "Template:Vehicle"
(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}}} | ||
|- | |- | ||
| '''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", | ||
"BuyPrice", | "BuyPrice", | ||
"RentalPrice", | "RentalPrice", | ||
Line 157: | Line 166: | ||
"SellPrice", | "SellPrice", | ||
"ChopPrice", | "ChopPrice", | ||
"VehicleIllegal", | |||
"TrunkSpace", | "TrunkSpace", | ||
"MaxSpeed", | "MaxSpeed", |
Revision as of 03:06, 14 January 2019
Type: | [[{{{VehicleType}}}]] |
Classname: | {{{ClassName}}} |
Buy Price: | £{{{BuyPrice}}} |
Rental Price: | £Expression error: Unrecognized punctuation character "{". |
Retrieval Price: | £{{{RetrievalPrice}}} |
Sell Price: | £{{{SellPrice}}} |
Chop Shop Price: | Unknown |
Legal Status | Legal |
Trunk Space: | {{{TrunkSpace}}} |
Max Speed: | {{{MaxSpeed}}} km/h |
Fuel Capacity: | {{{FuelSpace}}} |
Seats: | {{{Seats}}} |
Armour Rating: | {{{ArmourRating}}} |
Template to be used on all Vehicle pages
Parameter | Description | Type | Status | |
---|---|---|---|---|
Vehicle Image | Image | File name must be exact - ensure its uploaded
| File | required |
Vehicle Name | VehName | Name of the Vehicle
| String | required |
Vehicle Type | VehicleType | Vehicle Type, used to link to a page to show requirements.
| Page name | suggested |
Class Name | ClassName | Internal Class Name of the Vehicle
| String | suggested |
Buy Price | BuyPrice | Total Buy Price of vehicle without 50% sale. No £ needed. -1 if only rentable.
| Number | required |
Rental Price | RentalPrice | Total Rental Price of vehicle, only set this to override default 50% pricing. No £ Needed
| Number | optional |
Retrieval Price | RetrievalPrice | How much it costs to retrieve from the garage. No £ Needed
| Number | suggested |
Sell Price | SellPrice | How much the vehicle sells for in the garage. No £ Needed
| Number | suggested |
Chop Shop Price | ChopPrice | How much you get if you chop the vehicle if possible - If not possible, remove this field
| Number | suggested |
Vehicle Illegal | VehicleIllegal | no description
| Boolean | required |
Trunk Size | TrunkSpace | Total trunk size of the vehicle
| Number | required |
Max Speed | MaxSpeed | Max Speed of the Vehicle
| Number | suggested |
Fuel Space | FuelSpace | Total internal fuel space value
| Number | suggested |
Seats | Seats | Total seats in vehicle
| Number | suggested |
Armour Rating | ArmourRating | Internal Amour Rating of the vehicle
| Number | suggested |