Difference between revisions of "Template:Vehicle"

From Roleplay UK Wiki
Jump to navigation Jump to search
m (Updated)
(removed pricing option)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: right">
{| class="infobox"
{| class="infobox"
|+ style="background-color: #c1c1c1;" |{{{VehName}}}
|+ class="infobox-title"|{{{VehName}}}
|+ [[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|colspan="2"|[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|-
|-
| '''Type:'''
| '''Type:'''
| [[{{{VehicleType}}}]]
| [[{{{VehicleType}}}]]
|-
|-
| '''Classname:'''
| '''Legal Status:'''
| {{{ClassName}}}
|-
| '''Buy Price:'''
| {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{formatnum:{{{BuyPrice}}}}}}}
|-
| '''Rental Price:'''
| {{#if: {{{RentalPrice|}}} | £{{formatnum:{{{RentalPrice}}}}} | {{#ifeq: {{{BuyPrice}}} | -1 | Not Rentable | £{{formatnum:{{#expr: {{{BuyPrice}}}/2 round 0}}}}}}}}
|-
| '''Retrieval Price:'''
| £{{formatnum:{{{RetrievalPrice}}}}}
|-
| '''Sell Price:'''
| £{{formatnum:{{{SellPrice}}}}}
|-
| '''Chop Shop Price:'''
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{formatnum:{{{ChopPrice}}}}} | Not stealable }} | Unknown}}
|-
| '''Legal Status'''
| {{#ifeq: {{{VehicleIllegal}}} | 1 | Illegal | Legal}}
| {{#ifeq: {{{VehicleIllegal}}} | 1 | Illegal | Legal}}
|- {{#if: {{{WeaponPrimary|}}} | | style="display: none;" }}
| '''Weapon:'''
| {{{WeaponPrimary}}}
|-
|-
| '''Trunk Space:'''
| '''Trunk Space:'''
Line 33: Line 17:
| '''Max Speed:'''
| '''Max Speed:'''
| {{{MaxSpeed}}} km/h
| {{{MaxSpeed}}} km/h
|- {{#if: {{{HorsePower|}}} | | style="display: none;" }}
| '''Horse Power:'''
| {{{HorsePower}}}
|-
| '''Fuel Capacity:'''
| {{{FuelSpace}}}
|-
|-
| '''Seats:'''
| '''Seats:'''
| {{{Seats}}}
| {{{Seats}}}
|-
|-
| '''Armour Rating:'''
| {{{ArmourRating}}}
|}
|}
</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 48: Line 39:
"type": "wiki-file-name",
"type": "wiki-file-name",
"required": true,
"required": true,
"example": "Image_Name.jpg"
"example": "Image_Name.jpg",
"autovalue": ""
},
},
"VehName": {
"VehName": {
"label": "Vehicle Name",
"label": "Vehicle Name",
"description": "Name of the Vehicle",
"description": "Name of the Vehicle",
"type": "string",
"type": "line",
"required": true,
"required": true,
"example": "Hatchback (Sport)"
"example": "Hatchback (Sport)"
Line 59: Line 51:
"ClassName": {
"ClassName": {
"label": "Class Name",
"label": "Class Name",
"description": "Internal Class Name of the Vehicle",
"description": "Doesn't display publicly - Internal use only",
"example": "C_Hatchback_01_sport_F",
"example": "C_Hatchback_01_sport_F",
"type": "string",
"type": "line",
"suggested": true
"suggested": true
},
},
Line 96: Line 88:
"ChopPrice": {
"ChopPrice": {
"label": "Chop Shop Price",
"label": "Chop Shop Price",
"description": "How much you get if you chop the vehicle if possible - If not possible, remove this field",
"description": "How much you get paid to scrap or how much to steal.  If can't be stolen enter -1",
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"example": "If unable to be stolen - enter -1"
"example": "If unable to be stolen - enter -1",
"autovalue": ""
},
},
"TrunkSpace": {
"TrunkSpace": {
Line 114: Line 107:
"suggested": true,
"suggested": true,
"example": "250"
"example": "250"
},
"FuelSpace": {
"label": "Fuel Space",
"description": "Total internal fuel space value",
"type": "number",
"suggested": true,
"example": "45"
},
},
"Seats": {
"Seats": {
Line 121: Line 121:
"suggested": true,
"suggested": true,
"example": "5"
"example": "5"
},
"ArmourRating": {
"label": "Armour Rating",
"description": "Internal Amour Rating of the vehicle",
"type": "number",
"suggested": true,
"example": "10"
},
},
"VehicleType": {
"VehicleType": {
"label": "Vehicle Type",
"label": "Vehicle Type",
"description": "Vehicle Type, used to link to a page to show requirements.",
"description": "Vehicle Type, used to link to a page to show requirements.",
"example": "MRAP",
"example": "Car, Truck, MRAP, Helicopter, Plane",
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"suggested": true
Line 132: Line 139:
"label": "Vehicle Illegal",
"label": "Vehicle Illegal",
"type": "boolean",
"type": "boolean",
"autovalue": "false",
"autovalue": "0",
"required": true
"required": true,
"description": "Indicates if the vehicle is illegal or not.  Set 0 for Legal and 1 for Illegal",
"example": "1",
"default": "0"
},
"WeaponPrimary": {
"description": "Name of the primary vehicle mounted weapon.",
"type": "line"
},
"HorsePower": {
"label": "Horse Power",
"description": "Total Horsepower of Vehicle",
"example": "50",
"type": "number",
"suggested": true
}
}
},
},
Line 141: Line 162:
"VehName",
"VehName",
"VehicleType",
"VehicleType",
"ClassName",
"BuyPrice",
"BuyPrice",
"RentalPrice",
"RentalPrice",
Line 150: Line 170:
"TrunkSpace",
"TrunkSpace",
"MaxSpeed",
"MaxSpeed",
"Seats"
"HorsePower",
"FuelSpace",
"Seats",
"ArmourRating",
"ClassName",
"WeaponPrimary"
],
],
"format": "block"
"format": "block"
Line 159: Line 184:
[[Category:Vehicle Templates]]
[[Category:Vehicle Templates]]
</noinclude>
</noinclude>
<includeonly>
[[Category:General]]
[[Category:Vehicles]]
</includeonly>

Latest revision as of 11: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