Difference between revisions of "Template:TankMobility"
m (Plan B Conditional Tables) |
blastedryan (talk | contribs) (correcting for AoA as described in my response on the talk page) |
||
Line 1: | Line 1: | ||
+ | {{#if:{{{AoAweight|}}} | ||
+ | |{{#vardefine:emptyweight|{{#expr:{{{weight|{{Specs|mass}}}}}-{{{AoAweight|}}}}}}} | ||
+ | |{{#vardefine:emptyweight|{{{weight|{{Specs|mass}}}}}}}}} | ||
<includeonly>{| class="wikitable" style="text-align:center" width="70%" | <includeonly>{| class="wikitable" style="text-align:center" width="70%" | ||
! rowspan="2" | Game Mode | ! rowspan="2" | Game Mode | ||
Line 10: | Line 13: | ||
! Stock | ! Stock | ||
! Upgraded | ! Upgraded | ||
− | ! Stock | + | ! {{Annotation|Stock|without Add-on Armour}} |
− | ! Upgraded | + | ! {{Annotation|Upgraded|with Add-on Armour}} |
|- | |- | ||
! Arcade | ! Arcade | ||
| {{{abSpeed|{{Specs|speed|forward|ab}}}}} | | {{{abSpeed|{{Specs|speed|forward|ab}}}}} | ||
− | | rowspan="2" | {{ | + | | rowspan="2" |{{#var:emptyweight}} |
{{#if:{{{AoAweight|}}}|{{!}} rowspan="2" {{!}} {{{AoAweight|}}}}} | {{#if:{{{AoAweight|}}}|{{!}} rowspan="2" {{!}} {{{AoAweight|}}}}} | ||
| {{{abMinHp|_,___}}} | | {{{abMinHp|_,___}}} | ||
| {{{abMaxHp|{{#replace:{{Specs|engine|мощность|ab}}||,}}}}} | | {{{abMaxHp|{{#replace:{{Specs|engine|мощность|ab}}||,}}}}} | ||
− | | {{#if:{{{abMinHp|}}}|{{#expr:{{#replace:{{{abMinHp}}}|,}}/{{ | + | | {{#if:{{{abMinHp|}}}|{{#expr:{{#replace:{{{abMinHp}}}|,}}/{{#var:emptyweight}} round 2}}|__.__}} |
| {{#if:{{{abMaxHp|{{Specs|engine|мощность|ab}}}}}|{{#expr:{{#replace:{{{abMaxHp|{{Specs|engine|мощность|ab}}}}}}}/{{#replace:{{{weight|{{Specs|mass}}}}}}} round 2}}|__.__}} | | {{#if:{{{abMaxHp|{{Specs|engine|мощность|ab}}}}}|{{#expr:{{#replace:{{{abMaxHp|{{Specs|engine|мощность|ab}}}}}}}/{{#replace:{{{weight|{{Specs|mass}}}}}}} round 2}}|__.__}} | ||
|- | |- | ||
Line 26: | Line 29: | ||
| {{{rbMinHp|_,___}}} | | {{{rbMinHp|_,___}}} | ||
| {{{rbMaxHp|{{#replace:{{Specs|engine|мощность|rb}}||,}}}}} | | {{{rbMaxHp|{{#replace:{{Specs|engine|мощность|rb}}||,}}}}} | ||
− | | {{#if:{{{rbMinHp|}}}|{{#expr:{{#replace:{{{rbMinHp}}}|,}}/{{ | + | | {{#if:{{{rbMinHp|}}}|{{#expr:{{#replace:{{{rbMinHp}}}|,}}/{{#var:emptyweight}} round 2}}|__.__}} |
| {{#if:{{{rbMaxHp|{{Specs|engine|мощность|rb}}}}}|{{#expr:{{#replace:{{{rbMaxHp|{{Specs|engine|мощность|rb}}}}}}}/{{#replace:{{{weight|{{Specs|mass}}}}}}} round 2}}|__.__}} | | {{#if:{{{rbMaxHp|{{Specs|engine|мощность|rb}}}}}|{{#expr:{{#replace:{{{rbMaxHp|{{Specs|engine|мощность|rb}}}}}}}/{{#replace:{{{weight|{{Specs|mass}}}}}}} round 2}}|__.__}} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> |
Revision as of 15:35, 11 February 2020
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 | 81 | 38 | 50.2 | _,___ | 2,862 | __.__ | 57.01 |
Realistic | 73 | 34 | _,___ | 1,500 | __.__ | 29.88 |
{{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 | 81 | 38 | 40.2 | 10 | 2,032 | 2,862 | 50.55 | 57.01 |
Realistic | 73 | 34 | 1,327 | 1,500 | 33.01 | 29.88 |
{{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 |