Difference between revisions of "Template:Vehicle"

From Roleplay UK Wiki
Jump to navigation Jump to search
m (Category changed from vehicles to vehicle templates)
(Add logic to chop shop price to replace can be stolen)
Line 18: Line 18:
| '''Sell Price:'''
| '''Sell Price:'''
| £{{{SellPrice}}}
| £{{{SellPrice}}}
|-
| '''Can be stolen?'''
| {{{CanBeStolen?}}}
|-
|-
| '''Chop Shop Price:'''
| '''Chop Shop Price:'''
| £{{{ChopPrice}}}
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{{ChopPrice}}} | Not stealable }} | Unknown}}
|-
|-
| '''Trunk Space:'''
| '''Trunk Space:'''
Line 85: Line 82:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"example": "250,000",
"example": "1,000",
"default": "1,000"
"default": "1,000"
},
},
Line 93: Line 90:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"example": "250,000",
"example": "1,000",
"default": "1,000"
"default": "1,000"
},
},
Line 101: Line 98:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"example": "If unable to be stolen - Remove this field"
"example": "If unable to be stolen - enter -1"
},
},
"TrunkSpace": {
"TrunkSpace": {
Line 137: Line 134:
"suggested": true,
"suggested": true,
"example": "10"
"example": "10"
},
"CanBeStolen?": {
"label": "Can be stolen?",
"description": "Can the vehicle be stolen - Either True of False",
"example": "True or False",
"type": "boolean",
"required": true
}
}
},
},
Line 155: Line 145:
"RetrievalPrice",
"RetrievalPrice",
"SellPrice",
"SellPrice",
"CanBeStolen?",
"ChopPrice",
"ChopPrice",
"TrunkSpace",
"TrunkSpace",

Revision as of 02:30, 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}}}
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

Template parameters

This template prefers block formatting of 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
1,000
Numbersuggested
Sell PriceSellPrice

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

Default
1,000
Example
1,000
Numbersuggested
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 - enter -1
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