Difference between revisions of "Template:TankMobility"

From War Thunder Wiki
Jump to: navigation, search
m
(Added reverse speed column)
Line 2: Line 2:
 
-->{| class="wikitable" style="text-align:center" width="70%"
 
-->{| class="wikitable" style="text-align:center" width="70%"
 
! rowspan="2" | Game Mode
 
! rowspan="2" | Game Mode
! colspan="{{#if:{{{AoAweight|}}}|3|2}}" | Mobility characteristics
+
! colspan="2" | Max Speed (km/h)
 +
! {{#if:{{{AoAweight|}}}|colspan="2" {{!}}|rowspan="2" {{!}}}} Weight (tons)
 
! colspan="2" | Engine power (horsepower)
 
! colspan="2" | Engine power (horsepower)
 
! colspan="2" | Power-to-weight ratio (hp/ton)
 
! colspan="2" | Power-to-weight ratio (hp/ton)
 
|-
 
|-
! {{Annotation|Max Speed|Maximum forward speed (km/h)}}
+
! Forwards
! {{Annotation|Weight|Vehicle Weight (tons)}}
+
! Backwards
{{#if:{{{AoAweight|}}}|! {{Annotation|AoA Weight|Add-on Armour Weight (tons)}}}}
+
{{#if:{{{AoAweight|}}}|! Stock
 +
! {{Annotation|AoA|Add-on Armour}}}}
 
! Stock
 
! Stock
 
! Upgraded
 
! Upgraded
Line 15: Line 17:
 
|-
 
|-
 
! Arcade
 
! Arcade
| {{{abSpeed|{{Specs|speed|forward|ab}}}}}
+
| {{{abForwardSpeed|{{Specs|speed|forward|ab}}}}}
 +
| {{{abReverseSpeed|{{Specs|speed|back|ab}}}}}
 
| rowspan="2" |{{#expr: {{#var:emptyweight}} round 1}}
 
| rowspan="2" |{{#expr: {{#var:emptyweight}} round 1}}
 
{{#if:{{{AoAweight|}}}|{{!}} rowspan="2" {{!}} {{{AoAweight|}}}}}
 
{{#if:{{{AoAweight|}}}|{{!}} rowspan="2" {{!}} {{{AoAweight|}}}}}
Line 24: Line 27:
 
|-
 
|-
 
! {{Annotation|Realistic|Simulator uses Realistic FMs}}
 
! {{Annotation|Realistic|Simulator uses Realistic FMs}}
| {{{rbSpeed|{{Specs|speed|forward}}}}}
+
| {{{rbForwardSpeed|{{Specs|speed|forward}}}}}
 +
| {{{rbReverseSpeed|{{Specs|speed|back}}}}}
 
| {{{rbMinHp|_,___}}}
 
| {{{rbMinHp|_,___}}}
 
| {{{rbMaxHp|{{#replace:{{Specs|engine|мощность|rb}}||,}}}}}
 
| {{{rbMaxHp|{{#replace:{{Specs|engine|мощность|rb}}||,}}}}}
 
| {{#if:{{{rbMinHp|}}}|{{#expr:{{#replace:{{{rbMinHp}}}|,}}/{{#var:emptyweight}} round 2}}|__.__}}
 
| {{#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>
 
{{doc}}
 
{{doc}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 11:42, 25 March 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

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 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|abMinHp=2,032|rbMinHp=1,327|AoAweight=}}