Difference between revisions of "Template:Vehicle"
m (TemplateData updated) |
(removed pricing option) |
||
(48 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" | {| class="infobox" | ||
|+ | |+ class="infobox-title"|{{{VehName}}} | ||
| | |colspan="2"|[[File:{{{Image}}}|center|top|class=infobox-image|200px]] | ||
|- | |- | ||
| | | '''Type:''' | ||
| {{{ | | [[{{{VehicleType}}}]] | ||
|- | |- | ||
| | | '''Legal Status:''' | ||
| | | {{#ifeq: {{{VehicleIllegal}}} | 1 | Illegal | Legal}} | ||
|- {{#if: {{{WeaponPrimary|}}} | | style="display: none;" }} | |||
| '''Weapon:''' | |||
| {{{WeaponPrimary}}} | |||
|- | |- | ||
| | | '''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}}} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 47: | 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": " | "type": "line", | ||
"required": true, | "required": true, | ||
"example": "Hatchback (Sport)" | "example": "Hatchback (Sport)" | ||
Line 58: | Line 51: | ||
"ClassName": { | "ClassName": { | ||
"label": "Class Name", | "label": "Class Name", | ||
"description": "Internal | "description": "Doesn't display publicly - Internal use only", | ||
"example": "C_Hatchback_01_sport_F", | "example": "C_Hatchback_01_sport_F", | ||
"type": " | "type": "line", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"BuyPrice": { | "BuyPrice": { | ||
"label": "Buy Price", | "label": "Buy Price", | ||
"description": "Total Buy Price of vehicle without 50% sale. No £ needed", | "description": "Total Buy Price of vehicle without 50% sale. No £ needed. -1 if only rentable.", | ||
"type": "number", | "type": "number", | ||
"required": true, | "required": true, | ||
Line 72: | Line 65: | ||
"RentalPrice": { | "RentalPrice": { | ||
"label": "Rental Price", | "label": "Rental Price", | ||
"description": "Total Rental Price of vehicle | "description": "Total Rental Price of vehicle, only set this to override default 50% pricing. No £ Needed", | ||
"type": "number", | "type": "number", | ||
"required": | "required": false, | ||
"example": "250,000" | "example": "250,000" | ||
}, | }, | ||
Line 82: | Line 75: | ||
"type": "number", | "type": "number", | ||
"suggested": true, | "suggested": true, | ||
"example": " | "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 | "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 - | "example": "If unable to be stolen - enter -1", | ||
"autovalue": "" | |||
}, | }, | ||
"TrunkSpace": { | "TrunkSpace": { | ||
Line 126: | Line 129: | ||
"example": "10" | "example": "10" | ||
}, | }, | ||
" | "VehicleType": { | ||
"label": " | "label": "Vehicle Type", | ||
"description": " | "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", | "type": "boolean", | ||
"required": true | "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", | |||
"suggested": true | |||
} | } | ||
}, | }, | ||
Line 138: | Line 161: | ||
"Image", | "Image", | ||
"VehName", | "VehName", | ||
" | "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> |
Latest revision as of 10:10, 28 April 2020
[[File:{{{Image}}}|center|top|class=infobox-image|200px]] | |
Type: | [[{{{VehicleType}}}]] |
Legal Status: | Legal |
Trunk Space: | {{{TrunkSpace}}} |
Max Speed: | {{{MaxSpeed}}} km/h |
Fuel Capacity: | {{{FuelSpace}}} |
Seats: | {{{Seats}}} |
Armour Rating: | {{{ArmourRating}}} |
Template to be used on all Vehicle pages
Parameter | Description | Type | Status | |
---|---|---|---|---|
Vehicle Image | Image | File name must be exact - ensure its uploaded
| File | required |
Vehicle Name | VehName | Name of the Vehicle
| Line | required |
Vehicle Type | VehicleType | Vehicle Type, used to link to a page to show requirements.
| Page name | suggested |
Buy Price | BuyPrice | Total Buy Price of vehicle without 50% sale. No £ needed. -1 if only rentable.
| Number | required |
Rental Price | RentalPrice | Total Rental Price of vehicle, only set this to override default 50% pricing. No £ Needed
| Number | optional |
Retrieval Price | RetrievalPrice | How much it costs to retrieve from the garage. No £ Needed
| Number | suggested |
Sell Price | SellPrice | How much the vehicle sells for in the garage. No £ Needed
| Number | suggested |
Chop Shop Price | ChopPrice | How much you get paid to scrap or how much to steal. If can't be stolen enter -1
| Number | suggested |
Vehicle Illegal | VehicleIllegal | Indicates if the vehicle is illegal or not. Set 0 for Legal and 1 for Illegal
| Boolean | required |
Trunk Size | TrunkSpace | Total trunk size of the vehicle
| Number | required |
Max Speed | MaxSpeed | Max Speed of the Vehicle
| Number | suggested |
Horse Power | HorsePower | Total Horsepower of Vehicle
| Number | suggested |
Fuel Space | FuelSpace | Total internal fuel space value
| Number | suggested |
Seats | Seats | Total seats in vehicle
| Number | suggested |
Armour Rating | ArmourRating | Internal Amour Rating of the vehicle
| Number | suggested |
Class Name | ClassName | Doesn't display publicly - Internal use only
| Line | suggested |
WeaponPrimary | WeaponPrimary | Name of the primary vehicle mounted weapon. | Line | optional |