Difference between revisions of "Template:TankMobility/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Test wrapping in spoiler)
(Reworked TemplateData instructions)
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
== Parameters ==
 
== Parameters ==
 
* ''(automatic)'' '''weight''' - Weight of the tank
 
* ''(automatic)'' '''weight''' - Weight of the tank
* ''(manual)'' '''AoAweight''' - Weight of the tank's add-on armour packages
+
* '''AoAweight''' - Weight of the tank's add-on armour packages
 
* ''(automatic)'' '''abForwardSpeed''' - Maximum forward speed of the tank in Arcade modes
 
* ''(automatic)'' '''abForwardSpeed''' - Maximum forward speed of the tank in Arcade modes
 
* ''(automatic)'' '''abReverseSpeed''' - Maximum reverse speed of the tank in Arcade modes
 
* ''(automatic)'' '''abReverseSpeed''' - Maximum reverse speed of the tank in Arcade modes
* ''(manual)'' '''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)'' '''rbForwardSpeed''' - Maximum forward speed of the tank in Realistic/Simulator modes
 
* ''(automatic)'' '''rbForwardSpeed''' - Maximum forward speed of the tank in Realistic/Simulator modes
 
* ''(automatic)'' '''rbReverseSpeed''' - Maximum reverse speed of the tank in Realistic/Simulator modes
 
* ''(automatic)'' '''rbReverseSpeed''' - Maximum reverse speed of the tank in Realistic/Simulator modes
* ''(manual)'' '''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
  
Line 22: 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}}
<nowiki>{{tankMobility}}</nowiki>
+
<pre>{{tankMobility}}</pre>
  
  
 
Use of the template supplemented by non-automatic values
 
Use of the template supplemented by non-automatic values
 
{{tankMobility|AoAweight=|abMinHp=2,032|rbMinHp=1,327}}
 
{{tankMobility|AoAweight=|abMinHp=2,032|rbMinHp=1,327}}
<nowiki>{{tankMobility
+
<pre>{{tankMobility|abMinHp=2,032|rbMinHp=1,327|AoAweight=}}</pre>
|AoAweight=
+
{{Sp-begin|TemplateData}}
|abMinHp=2,032
+
<div style="text-align:left">
|rbMinHp=1,327}}</nowiki>
 
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 57: Line 56:
 
         "weight": {
 
         "weight": {
 
             "label": "Weight",
 
             "label": "Weight",
             "description": "The weight of the vehicle. Do not override unless the default value is incorrect.",
+
             "description": "Do not override unless the displayed value is incorrect. The weight of the vehicle.",
             "type": "number",
+
             "type": "number"
            "example": "14.0"
 
 
         },
 
         },
 
         "abForwardSpeed": {
 
         "abForwardSpeed": {
 
             "label": "AB maximum forward speed",
 
             "label": "AB maximum forward speed",
             "description": "The maximum forward speed of the vehicle in Arcade battles. Do not override unless the default value is incorrect.",
+
             "description": "Do not override unless the displayed value is incorrect. The maximum forward speed of the vehicle in Arcade battles.",
             "type": "number",
+
             "type": "number"
            "example": "14"
 
 
         },
 
         },
 
         "rbForwardSpeed": {
 
         "rbForwardSpeed": {
 
             "label": "RB maximum forward speed",
 
             "label": "RB maximum forward speed",
             "description": "The maximum forward speed of the vehicle in Realistic/Simulator battles. Do not override unless the default value is incorrect.",
+
             "description": "Do not override unless the displayed value is incorrect. The maximum forward speed of the vehicle in Realistic/Simulator battles.",
             "type": "number",
+
             "type": "number"
            "example": "14"
 
 
         },
 
         },
 
         "abReverseSpeed": {
 
         "abReverseSpeed": {
 
             "label": "AB maximum reverse speed",
 
             "label": "AB maximum reverse speed",
             "description": "The maximum reverse speed of the vehicle in Arcade battles. Do not override unless the default value is incorrect.",
+
             "description": "Do not override unless the displayed value is incorrect. The maximum reverse speed of the vehicle in Arcade battles.",
             "type": "number",
+
             "type": "number"
            "example": "14"
 
 
         },
 
         },
 
         "rbReverseSpeed": {
 
         "rbReverseSpeed": {
 
             "label": "RB maximum reverse speed",
 
             "label": "RB maximum reverse speed",
             "description": "The maximum reverse speed of the vehicle in Realistic/Simulator battles. Do not override unless the default value is incorrect.",
+
             "description": "Do not override unless the displayed value is incorrect. The maximum reverse speed of the vehicle in Realistic/Simulator battles.",
             "type": "number",
+
             "type": "number"
            "example": "14"
 
 
         },
 
         },
 
         "abMaxHp": {
 
         "abMaxHp": {
             "label": "AB maximum engine horsepower",
+
             "label": "AB maximum horsepower",
             "description": "The upgraded horsepower of the engine in Arcade battles. Do not override unless the default value is incorrect.",
+
             "description": "Do not override unless the displayed value is incorrect. The upgraded horsepower of the engine in Arcade battles.",
             "type": "number",
+
             "type": "number"
            "example": "1,400"
 
 
         },
 
         },
 
         "rbMaxHp": {
 
         "rbMaxHp": {
             "label": "RB maximum engine horsepower",
+
             "label": "RB maximum horsepower",
             "description": "The upgraded horsepower of the engine in Realistic/Simulator battles. Do not override unless the default value is incorrect.",
+
             "description": "Do not override unless the displayed value is incorrect. The upgraded horsepower of the engine in Realistic/Simulator battles.",
             "type": "number",
+
             "type": "number"
            "example": "1,400"
 
 
         }
 
         }
 
     },
 
     },
Line 114: Line 106:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
</div>
 +
{{Sp-end}}

Revision as of 08:46, 28 May 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 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 Upgraded Stock Upgraded
Arcade 81 38 50.2 2,032 2,862 40.48 57.01
Realistic 73 34 1,327 1,500 26.43 29.88
{{tankMobility|abMinHp=2,032|rbMinHp=1,327|AoAweight=}}