Difference between revisions of "Template:Vehicle"
Jump to navigation
Jump to search
(Move noinclude) |
(Add automatic rental price) |
||
Line 4: | Line 4: | ||
|+ [[File:{{{Image}}}|center|top|class=infobox-image|200px]] | |+ [[File:{{{Image}}}|center|top|class=infobox-image|200px]] | ||
|- | |- | ||
| Classname: | | '''Classname:''' | ||
| {{{ClassName}}} | | {{{ClassName}}} | ||
|- | |- | ||
| Buy Price: | | '''Buy Price:''' | ||
| {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{{BuyPrice}}}}} | | {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{{BuyPrice}}}}} | ||
|- | |- | ||
| Rental Price: | | '''Rental Price:''' | ||
| {{#ifeq: {{{ | | {{#if: {{{RentalPrice|}}} | £{{{RentalPrice}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{#expr: round({{{BuyPrice}}}/2)}}}}}} | ||
|- | |- | ||
| Retrieval Price: | | '''Retrieval Price:''' | ||
| £{{{RetrievalPrice}}} | | £{{{RetrievalPrice}}} | ||
|- | |- | ||
| Sell Price: | | '''Sell Price:''' | ||
| £{{{SellPrice}}} | | £{{{SellPrice}}} | ||
|- | |- | ||
| Can be stolen? | | '''Can be stolen?''' | ||
| {{{CanBeStolen?}}} | | {{{CanBeStolen?}}} | ||
|- | |- | ||
| Chop Shop Price: | | '''Chop Shop Price:''' | ||
| £{{{ChopPrice}}} | | £{{{ChopPrice}}} | ||
|- | |- | ||
| Trunk Space: | | '''Trunk Space:''' | ||
| {{{TrunkSpace}}} | | {{{TrunkSpace}}} | ||
|- | |- | ||
| Max Speed: | | '''Max Speed:''' | ||
| {{{MaxSpeed}}} km/h | | {{{MaxSpeed}}} km/h | ||
|- | |- | ||
| Fuel Capacity: | | '''Fuel Capacity:''' | ||
| {{{FuelSpace}}} | | {{{FuelSpace}}} | ||
|- | |- | ||
| Seats: | | '''Seats:''' | ||
| {{{Seats}}} | | {{{Seats}}} | ||
|- | |- | ||
| Armour Rating: | | '''Armour Rating:''' | ||
| {{{ArmourRating}}} | | {{{ArmourRating}}} | ||
|} | |} | ||
Line 75: | Line 75: | ||
"RentalPrice": { | "RentalPrice": { | ||
"label": "Rental Price", | "label": "Rental Price", | ||
"description": "Total Rental Price of vehicle | "description": "Total Rental Price of vehicle, only set this to override default 50% pricing. No £ Needed", | ||
"type": "number", | "type": "number", | ||
"required": | "required": false, | ||
"example": "250,000" | "example": "250,000" | ||
}, | }, |
Revision as of 01:51, 14 January 2019
Classname: | {{{ClassName}}} |
Buy Price: | £{{{BuyPrice}}} |
Rental Price: | £Expression error: Unexpected round operator. |
Retrieval Price: | £{{{RetrievalPrice}}} |
Sell Price: | £{{{SellPrice}}} |
Can be stolen? | {{{CanBeStolen?}}} |
Chop Shop Price: | £{{{ChopPrice}}} |
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 |
Can be stolen? | CanBeStolen? | Can the vehicle be stolen - Either True of False
| Boolean | required |
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 |