Difference between revisions of "Template:Vehicle"

186 bytes removed ,  02:30, 14 January 2019
Add logic to chop shop price to replace can be stolen
m (Category changed from vehicles to vehicle templates)
(Add logic to chop shop price to replace can be stolen)
Line 18: Line 18:
| '''Sell Price:'''
| '''Sell Price:'''
| £{{{SellPrice}}}
| £{{{SellPrice}}}
|-
| '''Can be stolen?'''
| {{{CanBeStolen?}}}
|-
|-
| '''Chop Shop Price:'''
| '''Chop Shop Price:'''
| £{{{ChopPrice}}}
| {{#if: {{{ChopPrice|}}} | {{#ifexpr: {{{ChopPrice}}} > 0 | £{{{ChopPrice}}} | Not stealable }} | Unknown}}
|-
|-
| '''Trunk Space:'''
| '''Trunk Space:'''
Line 85: Line 82:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"example": "250,000",
"example": "1,000",
"default": "1,000"
"default": "1,000"
},
},
Line 93: Line 90:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"example": "250,000",
"example": "1,000",
"default": "1,000"
"default": "1,000"
},
},
Line 101: Line 98:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"example": "If unable to be stolen - Remove this field"
"example": "If unable to be stolen - enter -1"
},
},
"TrunkSpace": {
"TrunkSpace": {
Line 137: Line 134:
"suggested": true,
"suggested": true,
"example": "10"
"example": "10"
},
"CanBeStolen?": {
"label": "Can be stolen?",
"description": "Can the vehicle be stolen - Either True of False",
"example": "True or False",
"type": "boolean",
"required": true
}
}
},
},
Line 155: Line 145:
"RetrievalPrice",
"RetrievalPrice",
"SellPrice",
"SellPrice",
"CanBeStolen?",
"ChopPrice",
"ChopPrice",
"TrunkSpace",
"TrunkSpace",