Difference between revisions of "Template:Vehicle"

169 bytes added ,  02:51, 14 January 2019
Add automatic rental price
(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: {{{RentalPrice}}} | -1 | Not Rentable | £{{{RentalPrice}}}}}
| {{#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 without 50% sale. No £ Needed",
"description": "Total Rental Price of vehicle, only set this to override default 50% pricing. No £ Needed",
"type": "number",
"type": "number",
"required": true,
"required": false,
"example": "250,000"
"example": "250,000"
},
},