Difference between revisions of "Template:Vehicle"
Jump to navigation
Jump to search
(Add logic to chop shop price to replace can be stolen) |
(Format numbers) |
||
Line 8: | Line 8: | ||
|- | |- | ||
| '''Buy Price:''' | | '''Buy Price:''' | ||
| {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{{BuyPrice}}}}} | | {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{formatnum:{{{BuyPrice}}}}}}} | ||
|- | |- | ||
| '''Rental Price:''' | | '''Rental Price:''' | ||
| {{#if: {{{RentalPrice|}}} | £{{{RentalPrice}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{#expr: {{{BuyPrice}}}/2 round 0}}}}}} | | {{#if: {{{RentalPrice|}}} | £{{formatnum:{{{RentalPrice}}}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{formatnum:{{#expr: {{{BuyPrice}}}/2 round 0}}}}}}}} | ||
|- | |- | ||
| '''Retrieval Price:''' | | '''Retrieval Price:''' | ||
| £{{{RetrievalPrice}}} | | £{{formatnum:{{{RetrievalPrice}}}}} | ||
|- | |- | ||
| '''Sell Price:''' | | '''Sell Price:''' | ||
| £{{{SellPrice}}} | | £{{formatnum:{{{SellPrice}}}}} | ||
|- | |- | ||
| '''Chop Shop Price:''' | | '''Chop Shop Price:''' | ||
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{{ChopPrice}}} | Not stealable }} | Unknown}} | | {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{formatnum:{{{ChopPrice}}}}} | Not stealable }} | Unknown}} | ||
|- | |- | ||
| '''Trunk Space:''' | | '''Trunk Space:''' |
Revision as of 02:43, 14 January 2019
Classname: | {{{ClassName}}} |
Buy Price: | £{{{BuyPrice}}} |
Rental Price: | £Expression error: Unrecognized punctuation character "{". |
Retrieval Price: | £{{{RetrievalPrice}}} |
Sell Price: | £{{{SellPrice}}} |
Chop Shop Price: | Unknown |
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 |
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 |
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 |