Difference between revisions of "Template:Vehicle"

1,799 bytes added ,  11:10, 28 April 2020
removed pricing option
m
(removed pricing option)
 
(55 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: right">
{| class="infobox"
{| class="infobox"
|+ style="background-color: #c1c1c1;" |[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|+ class="infobox-title"|{{{VehName}}}
|+{{{VehName}}}
|colspan="2"|[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|-
|-
| Classname:
| '''Type:'''
| {{{ClassName}}}
| [[{{{VehicleType}}}]]
|-
|-
| Buy Price:
| '''Legal Status:'''
| £{{{BuyPrice}}}
| {{#ifeq: {{{VehicleIllegal}}} | 1 | Illegal | Legal}}
|- {{#if: {{{WeaponPrimary|}}} | | style="display: none;" }}
| '''Weapon:'''
| {{{WeaponPrimary}}}
|-
|-
| Rental Price:
| '''Trunk Space:'''
| £{{{RentalPrice}}}
|-
| Retrieval Price:
| £{{{RetrievalPrice}}}
|-
| Chop Shop Price:
| £{{{ChopPrice}}}
|-
| Trunk Space:
| {{{TrunkSpace}}}
| {{{TrunkSpace}}}
|-
|-
| Max Speed:
| '''Max Speed:'''
| {{{MaxSpeed}}} KM/H
| {{{MaxSpeed}}} km/h
|- {{#if: {{{HorsePower|}}} | | style="display: none;" }}
| '''Horse Power:'''
| {{{HorsePower}}}
|-
|-
| Fuel Capacity:
| '''Fuel Capacity:'''
| {{{FuelSpace}}}
| {{{FuelSpace}}}
|-
|-
| Seats:
| '''Seats:'''
| {{{Seats}}}
| {{{Seats}}}
|-
|-
| Armour Rating:
| '''Armour Rating:'''
| {{{ArmourRating}}}
| {{{ArmourRating}}}
|}
|}
</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 41: Line 36:
"Image": {
"Image": {
"label": "Vehicle Image",
"label": "Vehicle Image",
"description": "Displays the image of said vehicle.  Ensure its uploaded!",
"description": "File name must be exact - ensure its uploaded",
"type": "wiki-file-name",
"type": "wiki-file-name",
"required": true
"required": true,
"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)"
},
},
"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
},
},
"BuyPrice": {
"BuyPrice": {
"label": "Buy Price",
"label": "Buy Price",
"description": "Total Buy Price of vehicle without 50% sale.",
"description": "Total Buy Price of vehicle without 50% sale. No £ needed. -1 if only rentable.",
"type": "number",
"type": "number",
"required": true
"required": true,
"example": "250,000"
},
},
"RentalPrice": {
"RentalPrice": {
"label": "Rental Price",
"label": "Rental Price",
"description": "Total Rental Price of vehicle without 50% sale.",
"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"
},
},
"RetrievalPrice": {
"RetrievalPrice": {
"label": "Retrieval Price",
"label": "Retrieval Price",
"description": "How much it costs to retrieve from the garage",
"description": "How much it costs to retrieve from the garage.  No £ Needed",
"type": "number",
"type": "number",
"suggested": true
"suggested": true,
"example": "1,000",
"default": "1,000"
},
"SellPrice": {
"label": "Sell Price",
"description": "How much the vehicle sells for in the garage.  No £ Needed",
"type": "number",
"suggested": true,
"example": "1,000",
"default": "1,000"
},
},
"ChopPrice": {
"ChopPrice": {
"label": "Chop Shop Price",
"label": "Chop Shop Price",
"description": "How much you get if you chop the vehicle if possible",
"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",
"autovalue": ""
},
},
"TrunkSpace": {
"TrunkSpace": {
Line 86: Line 98:
"description": "Total trunk size of the vehicle",
"description": "Total trunk size of the vehicle",
"type": "number",
"type": "number",
"required": true
"required": true,
"example": "45"
},
},
"MaxSpeed": {
"MaxSpeed": {
Line 92: Line 105:
"description": "Max Speed of the Vehicle",
"description": "Max Speed of the Vehicle",
"type": "number",
"type": "number",
"suggested": true
"suggested": true,
"example": "250"
},
},
"FuelSpace": {
"FuelSpace": {
Line 98: Line 112:
"description": "Total internal fuel space value",
"description": "Total internal fuel space value",
"type": "number",
"type": "number",
"suggested": true
"suggested": true,
"example": "45"
},
},
"Seats": {
"Seats": {
Line 104: Line 119:
"description": "Total seats in vehicle",
"description": "Total seats in vehicle",
"type": "number",
"type": "number",
"suggested": true
"suggested": true,
"example": "5"
},
},
"ArmourRating": {
"ArmourRating": {
"label": "Armour Rating",
"label": "Armour Rating",
"description": "Internal Amour Rating of the vehicle",
"description": "Internal Amour Rating of the vehicle",
"type": "number",
"suggested": true,
"example": "10"
},
"VehicleType": {
"label": "Vehicle Type",
"description": "Vehicle Type, used to link to a page to show requirements.",
"example": "Car, Truck, MRAP, Helicopter, Plane",
"type": "wiki-page-name",
"suggested": true
},
"VehicleIllegal": {
"label": "Vehicle Illegal",
"type": "boolean",
"autovalue": "0",
"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",
"type": "number",
"suggested": true
"suggested": true
Line 117: Line 161:
"Image",
"Image",
"VehName",
"VehName",
"ClassName",
"VehicleType",
"BuyPrice",
"BuyPrice",
"RentalPrice",
"RentalPrice",
"RetrievalPrice",
"RetrievalPrice",
"SellPrice",
"ChopPrice",
"ChopPrice",
"VehicleIllegal",
"TrunkSpace",
"TrunkSpace",
"MaxSpeed",
"MaxSpeed",
"HorsePower",
"FuelSpace",
"FuelSpace",
"Seats",
"Seats",
"ArmourRating"
"ArmourRating",
]
"ClassName",
"WeaponPrimary"
],
"format": "block"
}
}
</templatedata>
</templatedata>
[[Category:Templates]]
[[Category:Vehicle Templates]]
</noinclude>
</noinclude>
<includeonly>
[[Category:General]]
[[Category:Vehicles]]
</includeonly>
1,718

edits