Difference between revisions of "Template:Vehicle"

From Roleplay UK Wiki
Jump to navigation Jump to search
m (Fix error on template page)
(removed pricing option)
 
Line 5: Line 5:
| '''Type:'''
| '''Type:'''
| [[{{{VehicleType}}}]]
| [[{{{VehicleType}}}]]
|-
| '''Buy Price:'''
| {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{formatnum:{{{BuyPrice}}}}}}}
|-
| '''Rental Price:'''
| {{#if: {{{RentalPrice|}}} | £{{formatnum:{{{RentalPrice}}}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{formatnum:{{#expr: {{{BuyPrice|0}}}/2 round 0}}}}}}}}
|-
| '''Retrieval Price:'''
| {{#ifeq: {{{RetrievalPrice}}} | -1 | Not Retrievable | £{{formatnum:{{{RetrievalPrice}}}}}}}
|-
| '''Sell Price:'''
| {{#ifeq: {{{SellPrice}}} | -1 | Not Sellable | £{{formatnum:{{{SellPrice}}}}}}}
|-
| '''Chop Shop Price:'''
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{formatnum:{{{ChopPrice}}}}} | Not Stealable }} | Unknown}}
|-
|-
| '''Legal Status:'''
| '''Legal Status:'''

Latest revision as of 10:10, 28 April 2020

{{{VehName}}}
[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
Type: [[{{{VehicleType}}}]]
Legal Status: Legal
Weapon: {{{WeaponPrimary}}}
Trunk Space: {{{TrunkSpace}}}
Max Speed: {{{MaxSpeed}}} km/h
Horse Power: {{{HorsePower}}}
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
Auto value
Filerequired
Vehicle NameVehName

Name of the Vehicle

Example
Hatchback (Sport)
Linerequired
Vehicle TypeVehicleType

Vehicle Type, used to link to a page to show requirements.

Example
Car, Truck, MRAP, Helicopter, Plane
Page namesuggested
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 paid to scrap or how much to steal. If can't be stolen enter -1

Example
If unable to be stolen - enter -1
Auto value
Numbersuggested
Vehicle IllegalVehicleIllegal

Indicates if the vehicle is illegal or not. Set 0 for Legal and 1 for Illegal

Default
0
Example
1
Auto value
0
Booleanrequired
Trunk SizeTrunkSpace

Total trunk size of the vehicle

Example
45
Numberrequired
Max SpeedMaxSpeed

Max Speed of the Vehicle

Example
250
Numbersuggested
Horse PowerHorsePower

Total Horsepower of Vehicle

Example
50
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
Class NameClassName

Doesn't display publicly - Internal use only

Example
C_Hatchback_01_sport_F
Linesuggested
WeaponPrimaryWeaponPrimary

Name of the primary vehicle mounted weapon.

Lineoptional