Difference between revisions of "Template:Vehicle"

401 bytes removed ,  11:10, 28 April 2020
removed pricing option
m (Correct documentation)
(removed pricing option)
 
(6 intermediate revisions by 2 users not shown)
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}}}/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:'''
| '''Legal Status:'''
Line 32: Line 17:
| '''Max Speed:'''
| '''Max Speed:'''
| {{{MaxSpeed}}} km/h
| {{{MaxSpeed}}} km/h
|-
|- {{#if: {{{HorsePower|}}} | | style="display: none;" }}
| '''Horse Power:'''
| '''Horse Power:'''
| {{{HorsePower}}}
| {{{HorsePower}}}
Line 54: 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": {
Line 102: 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,
Line 146: Line 132:
"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 198: Line 184:
[[Category:Vehicle Templates]]
[[Category:Vehicle Templates]]
</noinclude>
</noinclude>
<includeonly>
[[Category:General]]
[[Category:Vehicles]]
</includeonly>
1,718

edits