Difference between revisions of "Template:AirStats"

From War Thunder Wiki
Jump to: navigation, search
(Fixing up template page to be standardized with others - included doc link)
(Adjusted for the relatively common case where abClimb1 and rbClimb1 are equal)
 
Line 1: Line 1:
 
<includeonly>{| class="wikitable" style="text-align:center"
 
<includeonly>{| class="wikitable" style="text-align:center"
 
! rowspan="2" | Characteristics
 
! rowspan="2" | Characteristics
! colspan="2" | Max Speed<br />(km/h at {{{maxSpeedAlt|_,___}}} m)
+
! colspan="2" | Max Speed<br>(km/h at {{{maxSpeedAlt|_,___}}} m)
! rowspan="2" | Max altitude<br />(meters)
+
! rowspan="2" | Max altitude<br>(meters)
! colspan="2" | Turn time<br />(seconds)
+
! colspan="2" | Turn time<br>(seconds)
! colspan="2" | Rate of climb<br />(meters/second)
+
! colspan="2" | Rate of climb<br>(meters/second)
! rowspan="2" | Take-off run<br />(meters)
+
! rowspan="2" | Take-off run<br>(meters)
 
|-
 
|-
 
! AB !! RB !! AB !! RB !! AB !! RB
 
! AB !! RB !! AB !! RB !! AB !! RB
 
|-
 
|-
 
! Stock
 
! Stock
| {{{abSpeed1|___}}} || {{{rbSpeed1|___}}} || rowspan="2" | {{{maxAlt|{{#unit:{{#var:me}}|ceiling}}}}} || {{{abTurn1|__._}}} || {{{rbTurn1|__._}}} || {{{abClimb1|__._ }}}|| {{{rbClimb1|__._}}} || rowspan="2" | {{{takeoff|___}}}
+
| {{{abSpeed1|___}}} || {{{rbSpeed1|___}}} || rowspan="2" | {{{maxAlt|{{Specs|ceiling}}}}} || {{{abTurn1|__._}}} || {{{rbTurn1|__._}}} || {{#ifeq: {{{abClimb1|__._}}} | {{{rbClimb1|__._}}} | colspan="2" {{!}} {{{abClimb1|__._}}} | {{{abClimb1|__._}}} {{!}}{{!}} {{{rbClimb1|__._}}} | 'colspan="2" | {{{abClimb1|__._}}}'}} || rowspan="2" | {{{takeoff|___}}}
 
|-
 
|-
 
! Upgraded
 
! Upgraded
| {{{abSpeed2|___}}} || {{{rbSpeed2|___}}} || {{{abTurn2|__._}}} || {{{rbTurn2|__._}}} || {{{abClimb2|__._ }}}|| {{{rbClimb2|__._}}}  
+
| {{{abSpeed2|___}}} || {{{rbSpeed2|___}}} || {{{abTurn2|__._}}} || {{{rbTurn2|__._}}} || {{{abClimb2|__._}}} || {{{rbClimb2|__._}}}
 
|-
 
|-
 
|}</includeonly>
 
|}</includeonly>

Latest revision as of 23:09, 2 November 2019


Description

The template AirStats is used to assist in the creation of tables for in-game aircraft specification tables regarding flight characteristics.

Code

{{AirStats
|maxSpeedAlt=
<!--Stock stats-->
|abSpeed1=
|rbSpeed1=
|maxAlt= (Optional - can delete for pages with working {{Specs-Card}} template)
|abTurn1=
|rbTurn1=
|abClimb1=
|rbClimb1=
|takeoff=
<!--Spaded stats-->
|abSpeed2=
|rbSpeed2=
|abTurn2=
|rbTurn2=
|abClimb2=
|rbClimb2=
}}

Parameters

Example

Code:

{{AirStats
|maxSpeedAlt=5700
<!--Stock stats-->
|abSpeed1=700
|rbSpeed1=550
|maxAlt=7500
|abTurn1=10
|rbTurn1=5
|abClimb1=8.0
|rbClimb1=6.0
|takeoff=300
<!--Spaded stats-->
|abSpeed2=800
|rbSpeed2=650
|abTurn2=15
|rbTurn2=7.5
|abClimb2=10.0
|rbClimb2=7.5
}}

Generated:

Characteristics Max Speed
(km/h at 5700 m)
Max altitude
(meters)
Turn time
(seconds)
Rate of climb
(meters/second)
Take-off run
(meters)
AB RB AB RB AB RB
Stock 700 550 7500 10 5 8.0 6.0 300
Upgraded 800 650 15 7.5 10.0 7.5