Difference between revisions of "Template:TankMobility"

From War Thunder Wiki
Jump to: navigation, search
(Switched to Specs calls, translated parameters (except мощность (horsepower)), separated for readability, changed AoA default to "__" (N/A implies no AoA instead of unfilled). I believe {{Specs|mass}} includes AoA weight so that may need to change)
(Added docpage)
Line 29: Line 29:
 
| {{#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>
Generates power to weight ratio
+
{{doc}}
<nowiki>{{tankMobility|<!--weight= -->|<!--AoAweight= -->|<!--abSpeed= -->|abMinHp= |<!--abMaxHp= -->|<!--rbSpeed= -->|rbMinHp= |<!--rbMaxHp=--> }}</nowiki>
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 19:38, 7 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}}