Difference between revisions of "Template:TankMobility/Documentation"
(Created docpage) |
|||
| (9 intermediate revisions by 3 users not shown) | |||
| Line 5: | Line 5: | ||
== Parameters == | == Parameters == | ||
| − | * ''(automatic)'' '''weight''' - Weight of the tank | + | * ''(automatic)'' '''weight''' - Weight of the tank (including add-on armour) |
* '''AoAweight''' - Weight of the tank's add-on armour packages | * '''AoAweight''' - Weight of the tank's add-on armour packages | ||
| − | * ''(automatic)'' ''' | + | * ''(automatic)'' '''abForwardSpeed''' - Maximum forward speed of the tank in Arcade modes |
| + | * ''(automatic)'' '''abReverseSpeed''' - Maximum reverse speed of the tank in Arcade modes | ||
* '''abMinHp''' - Stock horsepower output of the tank's engine in AB | * '''abMinHp''' - Stock horsepower output of the tank's engine in AB | ||
* ''(automatic)'' '''abMaxHp''' - Spaded horsepower output of the tank's engine in AB | * ''(automatic)'' '''abMaxHp''' - Spaded horsepower output of the tank's engine in AB | ||
| − | * ''(automatic)'' ''' | + | * ''(automatic)'' '''rbForwardSpeed''' - Maximum forward speed of the tank in Realistic/Simulator modes |
| + | * ''(automatic)'' '''rbReverseSpeed''' - Maximum reverse speed of the tank in Realistic/Simulator modes | ||
* '''rbMinHp''' - Stock horsepower output of the tank's engine in RB/SB | * '''rbMinHp''' - Stock horsepower output of the tank's engine in RB/SB | ||
* ''(automatic)'' '''rbMaxHp''' - Spaded horsepower output of the tank's engine in RB/SB | * ''(automatic)'' '''rbMaxHp''' - Spaded horsepower output of the tank's engine in RB/SB | ||
| + | |||
| + | Manual parameters are optional and must be added by the Wiki user. | ||
== Examples of use == | == Examples of use == | ||
| Line 18: | Line 22: | ||
The default table filled automatically from data of the {{Specs-Link|{{#var:me}}}} | The default table filled automatically from data of the {{Specs-Link|{{#var:me}}}} | ||
{{tankMobility}} | {{tankMobility}} | ||
| − | + | <pre>{{tankMobility}}</pre> | |
Use of the template supplemented by non-automatic values | Use of the template supplemented by non-automatic values | ||
| − | {{tankMobility | + | {{tankMobility|abMinHp=2,032|rbMinHp=1,327|AoAweight=10}} |
| − | + | <pre>{{tankMobility|abMinHp=2,032|rbMinHp=1,327|AoAweight=10}}</pre> | |
| − | |AoAweight= | + | {{Sp-begin|TemplateData}} |
| − | |abMinHp | + | <div style="text-align:left"> |
| − | + | <templatedata> | |
| + | { | ||
| + | "params": { | ||
| + | "abMinHp": { | ||
| + | "label": "AB stock horsepower", | ||
| + | "description": "The unupgraded horsepower of the engine in Arcade battles", | ||
| + | "example": "1,400", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "rbMinHp": { | ||
| + | "label": "RB stock horsepower", | ||
| + | "description": "The unupgraded horsepower of the engine in Realistic/Simulator battles", | ||
| + | "example": "1,400", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "AoAweight": { | ||
| + | "label": "Add-on Armour weight", | ||
| + | "description": "The additional weight of any unlockable modifications on the vehicle. If not applicable, remove this parameter or leave blank.", | ||
| + | "example": "0.5", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "weight": { | ||
| + | "label": "Weight", | ||
| + | "description": "Do not override unless the displayed value is incorrect. The weight of the vehicle.", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "abForwardSpeed": { | ||
| + | "label": "AB maximum forward speed", | ||
| + | "description": "Do not override unless the displayed value is incorrect. The maximum forward speed of the vehicle in Arcade battles.", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "rbForwardSpeed": { | ||
| + | "label": "RB maximum forward speed", | ||
| + | "description": "Do not override unless the displayed value is incorrect. The maximum forward speed of the vehicle in Realistic/Simulator battles.", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "abReverseSpeed": { | ||
| + | "label": "AB maximum reverse speed", | ||
| + | "description": "Do not override unless the displayed value is incorrect. The maximum reverse speed of the vehicle in Arcade battles.", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "rbReverseSpeed": { | ||
| + | "label": "RB maximum reverse speed", | ||
| + | "description": "Do not override unless the displayed value is incorrect. The maximum reverse speed of the vehicle in Realistic/Simulator battles.", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "abMaxHp": { | ||
| + | "label": "AB maximum horsepower", | ||
| + | "description": "Do not override unless the displayed value is incorrect. The upgraded horsepower of the engine in Arcade battles.", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "rbMaxHp": { | ||
| + | "label": "RB maximum horsepower", | ||
| + | "description": "Do not override unless the displayed value is incorrect. The upgraded horsepower of the engine in Realistic/Simulator battles.", | ||
| + | "type": "number" | ||
| + | } | ||
| + | }, | ||
| + | "description": "This template inserts a standardised ground vehicle mobility table. Most values are entered automatically, although these can still be overridden with the template parameters.", | ||
| + | "paramOrder": [ | ||
| + | "abMinHp", | ||
| + | "rbMinHp", | ||
| + | "AoAweight", | ||
| + | "weight", | ||
| + | "abForwardSpeed", | ||
| + | "rbForwardSpeed", | ||
| + | "abReverseSpeed", | ||
| + | "rbReverseSpeed", | ||
| + | "abMaxHp", | ||
| + | "rbMaxHp" | ||
| + | ], | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
| + | </div> | ||
| + | {{Sp-end}} | ||
Latest revision as of 20:20, 18 June 2022
Description
This template inserts a standardised ground vehicle mobility table using values from Template:Specs. These can be overridden with the template parameters.
Parameters
- (automatic) weight - Weight of the tank (including add-on armour)
- AoAweight - Weight of the tank's add-on armour packages
- (automatic) abForwardSpeed - Maximum forward speed of the tank in Arcade modes
- (automatic) abReverseSpeed - Maximum reverse speed of the tank in Arcade modes
- abMinHp - Stock horsepower output of the tank's engine in AB
- (automatic) abMaxHp - Spaded horsepower output of the tank's engine in AB
- (automatic) rbForwardSpeed - Maximum forward speed of the tank in Realistic/Simulator modes
- (automatic) rbReverseSpeed - Maximum reverse speed of the tank in Realistic/Simulator modes
- rbMinHp - Stock horsepower output of the tank's engine in RB/SB
- (automatic) rbMaxHp - Spaded horsepower output of the tank's engine in RB/SB
Manual parameters are optional and must be added by the Wiki user.
Examples of use
The default table filled automatically from data of the Type 90 (B)
| Game Mode | Max Speed (km/h) | Weight (tons) | Engine power (horsepower) | Power-to-weight ratio (hp/ton) | |||
|---|---|---|---|---|---|---|---|
| Forward | Reverse | Stock | Upgraded | Stock | Upgraded | ||
| Arcade | Expression error: Unexpected * operator. | _,___ | __.__ | __.__ | |||
| Realistic | _,___ | __.__ | __.__ | ||||
{{tankMobility}}
Use of the template supplemented by non-automatic values
| Game Mode | Max Speed (km/h) | Weight (tons) | Engine power (horsepower) | Power-to-weight ratio (hp/ton) | ||||
|---|---|---|---|---|---|---|---|---|
| Forward | Reverse | Stock | AoA | Stock | Upgraded | Stock | Upgraded | |
| Arcade | -10 | 10 | 2,032 | -203.2 | __.__ | |||
| Realistic | 1,327 | -132.7 | __.__ | |||||
{{tankMobility|abMinHp=2,032|rbMinHp=1,327|AoAweight=10}}
This template inserts a standardised ground vehicle mobility table. Most values are entered automatically, although these can still be overridden with the template parameters.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| AB stock horsepower | abMinHp | The unupgraded horsepower of the engine in Arcade battles
| Number | suggested |
| RB stock horsepower | rbMinHp | The unupgraded horsepower of the engine in Realistic/Simulator battles
| Number | suggested |
| Add-on Armour weight | AoAweight | The additional weight of any unlockable modifications on the vehicle. If not applicable, remove this parameter or leave blank.
| Number | suggested |
| Weight | weight | Do not override unless the displayed value is incorrect. The weight of the vehicle.
| Number | optional |
| AB maximum forward speed | abForwardSpeed | Do not override unless the displayed value is incorrect. The maximum forward speed of the vehicle in Arcade battles.
| Number | optional |
| RB maximum forward speed | rbForwardSpeed | Do not override unless the displayed value is incorrect. The maximum forward speed of the vehicle in Realistic/Simulator battles.
| Number | optional |
| AB maximum reverse speed | abReverseSpeed | Do not override unless the displayed value is incorrect. The maximum reverse speed of the vehicle in Arcade battles.
| Number | optional |
| RB maximum reverse speed | rbReverseSpeed | Do not override unless the displayed value is incorrect. The maximum reverse speed of the vehicle in Realistic/Simulator battles.
| Number | optional |
| AB maximum horsepower | abMaxHp | Do not override unless the displayed value is incorrect. The upgraded horsepower of the engine in Arcade battles.
| Number | optional |
| RB maximum horsepower | rbMaxHp | Do not override unless the displayed value is incorrect. The upgraded horsepower of the engine in Realistic/Simulator battles.
| Number | optional |

