Difference between revisions of "Template:Vehicle"

From Roleplay UK Wiki
Jump to navigation Jump to search
(Add automatic rental price)
m (Fix round operator)
Line 11: Line 11:
|-
|-
| '''Rental Price:'''
| '''Rental Price:'''
| {{#if: {{{RentalPrice|}}} | £{{{RentalPrice}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{#expr: round({{{BuyPrice}}}/2)}}}}}}
| {{#if: {{{RentalPrice|}}} | £{{{RentalPrice}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{#expr: {{{BuyPrice}}}/2 round 0}}}}}}
|-
|-
| '''Retrieval Price:'''
| '''Retrieval Price:'''

Revision as of 01:52, 14 January 2019

{{{VehName}}} [[File:{{{Image}}}|center|top|class=infobox-image|200px]]
Classname: {{{ClassName}}}
Buy Price: £{{{BuyPrice}}}
Rental Price: £Expression error: Unrecognized punctuation character "{".
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

Template parameters

ParameterDescriptionTypeStatus
Vehicle ImageImage

File name must be exact - ensure its uploaded

Example
Image_Name.jpg
Filerequired
Vehicle NameVehName

Name of the Vehicle

Example
Hatchback (Sport)
Stringrequired
Class NameClassName

Internal Class Name of the Vehicle

Example
C_Hatchback_01_sport_F
Stringsuggested
Buy PriceBuyPrice

Total Buy Price of vehicle without 50% sale. No £ needed. -1 if only rentable.

Example
250,000
Numberrequired
Rental PriceRentalPrice

Total Rental Price of vehicle, only set this to override default 50% pricing. No £ Needed

Example
250,000
Numberoptional
Retrieval PriceRetrievalPrice

How much it costs to retrieve from the garage. No £ Needed

Default
1,000
Example
250,000
Numbersuggested
Sell PriceSellPrice

How much the vehicle sells for in the garage. No £ Needed

Default
1,000
Example
250,000
Numbersuggested
Can be stolen?CanBeStolen?

Can the vehicle be stolen - Either True of False

Example
True or False
Booleanrequired
Chop Shop PriceChopPrice

How much you get if you chop the vehicle if possible - If not possible, remove this field

Example
If unable to be stolen - Remove this field
Numbersuggested
Trunk SizeTrunkSpace

Total trunk size of the vehicle

Example
45
Numberrequired
Max SpeedMaxSpeed

Max Speed of the Vehicle

Example
250
Numbersuggested
Fuel SpaceFuelSpace

Total internal fuel space value

Example
45
Numbersuggested
SeatsSeats

Total seats in vehicle

Example
5
Numbersuggested
Armour RatingArmourRating

Internal Amour Rating of the vehicle

Example
10
Numbersuggested