Difference between revisions of "Template:TankMobility/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Parameters: specified manual parameters.)
(Added TemplateData (test))
Line 31: Line 31:
 
|abMinHp=2,032
 
|abMinHp=2,032
 
|rbMinHp=1,327}}</nowiki>
 
|rbMinHp=1,327}}</nowiki>
 +
<templatedata>
 +
{
 +
    "params": {
 +
        "abMinHp": {
 +
            "label": "AB stock horsepower",
 +
            "description": "The unupgraded horsepower of the engine in Arcade battles",
 +
            "example": "1,300",
 +
            "type": "number",
 +
            "suggested": true
 +
        },
 +
        "rbMinHp": {
 +
            "label": "RB stock horsepower",
 +
            "description": "The unupgraded horsepower of the engine in Realistic/Simulator battles",
 +
            "example": "1,300",
 +
            "type": "number",
 +
            "suggested": true
 +
        },
 +
        "AoAweight": {
 +
            "label": "Add-on Armour weight",
 +
            "description": "The additional weight of any unlockable modifications on the vehicle. If not applicable, remove this parameter or leave blank.",
 +
            "example": "0.5",
 +
            "type": "number",
 +
            "suggested": true
 +
        },
 +
        "weight": {
 +
            "label": "Weight",
 +
            "description": "The weight of the vehicle. Only set if the default value is incorrect.",
 +
            "type": "number",
 +
            "default": "{{Specs|mass}}"
 +
        },
 +
        "abForwardSpeed": {
 +
            "label": "AB maximum forward speed",
 +
            "description": "The maximum forward speed of the vehicle in Arcade battles. Only set if the default value is incorrect.",
 +
            "type": "number",
 +
            "default": "{{Specs|speed|forward|ab}}"
 +
        },
 +
        "rbForwardSpeed": {
 +
            "label": "RB maximum forward speed",
 +
            "description": "The maximum forward speed of the vehicle in Realistic/Simulator battles. Only set if the default value is incorrect.",
 +
            "type": "number",
 +
            "default": "{{Specs|speed|forward|rb}}"
 +
        },
 +
        "abReverseSpeed": {
 +
            "label": "AB maximum reverse speed",
 +
            "description": "The maximum reverse speed of the vehicle in Arcade battles. Only set if the default value is incorrect.",
 +
            "type": "number",
 +
            "default": "{{Specs|speed|back|ab}}"
 +
        },
 +
        "rbReverseSpeed": {
 +
            "label": "RB maximum reverse speed",
 +
            "description": "The maximum reverse speed of the vehicle in Realistic/Simulator battles. Only set if the default value is incorrect.",
 +
            "type": "number",
 +
            "default": "{{Specs|speed|back|rb}}"
 +
        },
 +
        "abMaxHp": {
 +
            "label": "AB maximum engine horsepower",
 +
            "description": "The upgraded horsepower of the engine in Arcade battles. Only set if the default value is incorrect.",
 +
            "type": "number",
 +
            "default": "{{Specs|engine|мощность|ab}}"
 +
        },
 +
        "rbMaxHp": {
 +
            "label": "RB maximum engine horsepower",
 +
            "description": "The upgraded horsepower of the engine in Realistic/Simulator battles. Only set if the default value is incorrect.",
 +
            "type": "number",
 +
            "default": "{{Specs|engine|мощность|rb}}"
 +
        }
 +
    },
 +
    "description": "This template inserts a standardised ground vehicle mobility table. Most values are entered automatically, although these can still be overridden with the template parameters.",
 +
    "paramOrder": [
 +
        "abMinHp",
 +
        "rbMinHp",
 +
        "AoAweight",
 +
        "weight",
 +
        "abForwardSpeed",
 +
        "rbForwardSpeed",
 +
        "abReverseSpeed",
 +
        "rbReverseSpeed",
 +
        "abMaxHp",
 +
        "rbMaxHp"
 +
    ],
 +
    "format": "inline"
 +
}
 +
</templatedata>

Revision as of 22:43, 23 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
  • (manual) 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
  • (manual) 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
  • (manual) 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
|AoAweight=
|abMinHp=2,032
|rbMinHp=1,327}}

This template inserts a standardised ground vehicle mobility table. Most values are entered automatically, although these can still be overridden with the template parameters.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
AB stock horsepowerabMinHp

The unupgraded horsepower of the engine in Arcade battles

Default
empty
Example
1,300
Auto value
empty
Numbersuggested
RB stock horsepowerrbMinHp

The unupgraded horsepower of the engine in Realistic/Simulator battles

Default
empty
Example
1,300
Auto value
empty
Numbersuggested
Add-on Armour weightAoAweight

The additional weight of any unlockable modifications on the vehicle. If not applicable, remove this parameter or leave blank.

Default
empty
Example
0.5
Auto value
empty
Numbersuggested
Weightweight

The weight of the vehicle. Only set if the default value is incorrect.

Default
{{Specs|mass}}
Example
empty
Auto value
empty
Numberoptional
AB maximum forward speedabForwardSpeed

The maximum forward speed of the vehicle in Arcade battles. Only set if the default value is incorrect.

Default
{{Specs|speed|forward|ab}}
Example
empty
Auto value
empty
Numberoptional
RB maximum forward speedrbForwardSpeed

The maximum forward speed of the vehicle in Realistic/Simulator battles. Only set if the default value is incorrect.

Default
{{Specs|speed|forward|rb}}
Example
empty
Auto value
empty
Numberoptional
AB maximum reverse speedabReverseSpeed

The maximum reverse speed of the vehicle in Arcade battles. Only set if the default value is incorrect.

Default
{{Specs|speed|back|ab}}
Example
empty
Auto value
empty
Numberoptional
RB maximum reverse speedrbReverseSpeed

The maximum reverse speed of the vehicle in Realistic/Simulator battles. Only set if the default value is incorrect.

Default
{{Specs|speed|back|rb}}
Example
empty
Auto value
empty
Numberoptional
AB maximum engine horsepowerabMaxHp

The upgraded horsepower of the engine in Arcade battles. Only set if the default value is incorrect.

Default
{{Specs|engine|мощность|ab}}
Example
empty
Auto value
empty
Numberoptional
RB maximum engine horsepowerrbMaxHp

The upgraded horsepower of the engine in Realistic/Simulator battles. Only set if the default value is incorrect.

Default
{{Specs|engine|мощность|rb}}
Example
empty
Auto value
empty
Numberoptional