Difference between revisions of "Template:TankMobility"

From War Thunder Wiki
Jump to: navigation, search
m (Including missing end tags.)
m (Plan B Conditional Tables)
Line 7: Line 7:
 
! {{Annotation|Max Speed|Maximum forward speed (km/h)}}
 
! {{Annotation|Max Speed|Maximum forward speed (km/h)}}
 
! {{Annotation|Weight|Vehicle Weight (tons)}}
 
! {{Annotation|Weight|Vehicle Weight (tons)}}
{{#if:{{{AoAweight|}}}|<th>{{Annotation|AoA Weight|Add-on Armour Weight (tons)}}</th>}}
+
{{#if:{{{AoAweight|}}}|! {{Annotation|AoA Weight|Add-on Armour Weight (tons)}}}}
 
! Stock
 
! Stock
 
! Upgraded
 
! Upgraded
Line 16: Line 16:
 
| {{{abSpeed|{{Specs|speed|forward|ab}}}}}
 
| {{{abSpeed|{{Specs|speed|forward|ab}}}}}
 
| rowspan="2" | {{{weight|{{Specs|mass}}}}}
 
| rowspan="2" | {{{weight|{{Specs|mass}}}}}
{{#if:{{{AoAweight|}}}|<td> rowspan="2"</td> <td> {{{AoAweight|}}}</td>}}
+
{{#if:{{{AoAweight|}}}|{{!}} rowspan="2" {{!}} {{{AoAweight|}}}}}
 
| {{{abMinHp|_,___}}}
 
| {{{abMinHp|_,___}}}
 
| {{{abMaxHp|{{#replace:{{Specs|engine|мощность|ab}}||,}}}}}
 
| {{{abMaxHp|{{#replace:{{Specs|engine|мощность|ab}}||,}}}}}

Revision as of 13:58, 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
  • 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

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 80 37 51.6 _,___ 2,862 __.__ 55.47
Realistic 72 33 _,___ 1,500 __.__ 29.07
{{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 Upgraded Stock Upgraded
Arcade 80 37 51.6 2,032 2,862 39.38 55.47
Realistic 72 33 1,327 1,500 25.72 29.07
{{tankMobility
|AoAweight=
|abMinHp=2,032
|rbMinHp=1,327}}