Difference between revisions of "User:DnaGonite/templateTest"

From War Thunder Wiki
Jump to: navigation, search
Line 1: Line 1:
{{#vardefine:isTurn|{{#ifeq:{{{TurnTimeStockAB|}}}{{{TurnSpeedStockAB|}}}{{{TurnTimeSpadedAB|}}}{{{TurnSpeedSpadedAB|}}}{{{TurnTimeStockRB|}}}{{{TurnSpeedStockRB|}}}{{{TurnTimeSpadedRB|}}}{{{TurnSpeedSpadedRB|}}}|{{{TurnTimeStockAB}}}{{{TurnSpeedStockAB}}}{{{TurnTimeSpadedA|}}}{{{TurnSpeedSpadedAB}}}{{{TurnTimeStockRB}}}{{{TurnSpeedStockRB}}}{{{TurnTimeSpadedRB}}}{{{TurnSpeedSpadedRB}}}|1|}}}}<!--
+
<includeonly>{{#vardefine:isTurn|{{#if:{{{TurnTimeStockAB|}}}{{{TurnSpeedStockAB|}}}{{{TurnTimeSpadedAB|}}}{{{TurnSpeedSpadedAB|}}}{{{TurnTimeStockRB|}}}{{{TurnSpeedStockRB|}}}{{{TurnTimeSpadedRB|}}}{{{TurnSpeedSpadedRB|}}}|1|}}}}{{#vardefine:isStockAB|{{#ifeq:{{{SpeedForwardStockAB|}}}{{{SpeedBackStockAB|}}}|{{{SpeedForwardStockAB}}}{{{SpeedBackStockAB}}}|1|}}}}{{#vardefine:isStockRB|{{#ifeq:{{{SpeedForwardStockRB|}}}{{{SpeedBackStockRB|}}}|{{{SpeedForwardStockRB}}}{{{SpeedBackStockRB}}}|1|}}}}{{#vardefine:isStockIntroAB|{{#ifexpr:0{{#var:isStockAB}}=1 or (0{{#var:isStockAB}}!=1 and {{{TurnTimeStockAB|0}}}!=0)|1|}}}}{{#vardefine:isStockIntroRB|{{#ifexpr:0{{#var:isStockRB}}=1 or (0{{#var:isStockRB}}!=1 and {{{TurnTimeStockRB|0}}}!=0)|1|}}}}<!--
--> {{#vardefine:isStockAB|{{#ifeq:{{{SpeedForwardStockAB|}}}{{{SpeedBackStockAB|}}}|{{{SpeedForwardStockAB}}}{{{SpeedBackStockAB}}}|1|}}}}<!--
 
--> {{#vardefine:isStockRB|{{#ifeq:{{{SpeedForwardStockRB|}}}{{{SpeedBackStockRB|}}}|{{{SpeedForwardStockRB}}}{{{SpeedBackStockRB}}}|1|}}}}<!--
 
--> {{#vardefine:isStockIntroAB|{{#ifexpr:0{{#var:isStockAB}}=1 or (0{{#var:isStockAB}}!=1 and {{{TurnTimeStockAB|0}}}!=0)|1|}}}}<!--
 
--> {{#vardefine:isStockIntroRB|{{#ifexpr:0{{#var:isStockRB}}=1 or (0{{#var:isStockRB}}!=1 and {{{TurnTimeStockRB|0}}}!=0)|1|}}}}<!--
 
 
--> {| class="wikitable" style="text-align:center"
 
--> {| class="wikitable" style="text-align:center"
 
! colspan="{{#if:{{#var:isTurn}}|6|4}}" | '''Mobility Characteristics'''
 
! colspan="{{#if:{{#var:isTurn}}|6|4}}" | '''Mobility Characteristics'''
Line 10: Line 6:
 
! rowspan="2" | Upgrade Status
 
! rowspan="2" | Upgrade Status
 
! colspan="2" | Maximum Speed (km/h)
 
! colspan="2" | Maximum Speed (km/h)
! rowspan="2" {{#if:{{#var:isTurn}}||style="display:none;"}}| {{Annotation|Turn Time (s)|Time needed to complete a 360° turn at maximum speed}}
+
! rowspan="2" {{#if:{{#var:isTurn}}||style="display:none;"}}| {{Annotation|Turn Time (s) |Time needed to complete a 360° turn at maximum speed}}
 
! rowspan="2" {{#if:{{#var:isTurn}}||style="display:none;"}}| {{Annotation|Turn Radius (m)|At maximum speed}}
 
! rowspan="2" {{#if:{{#var:isTurn}}||style="display:none;"}}| {{Annotation|Turn Radius (m)|At maximum speed}}
 
|-
 
|-
Line 21: Line 17:
 
| {{#if:{{#var:isStockIntroAB}}||style="display:none;"}}| {{{SpeedBackStockAB|___}}}
 
| {{#if:{{#var:isStockIntroAB}}||style="display:none;"}}| {{{SpeedBackStockAB|___}}}
 
| {{#ifexpr: 0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockAB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeStockAB|}}}| ~{{#expr:{{{TurnTimeStockAB}}} round 2}}|___}}|}}
 
| {{#ifexpr: 0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockAB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeStockAB|}}}| ~{{#expr:{{{TurnTimeStockAB}}} round 2}}|___}}|}}
| {{#ifexpr: 0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockAB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#ifeq:{{{TurnSpeedStockAB|}}}{{{TurnTimeStockAB|}}}|{{{TurnSpeedStockAB}}}{{{TurnTimeStockAB}}}| ~{{#expr:({{#if:{{{TurnSpeedStockAB}}}|{{{TurnSpeedStockAB}}}|0}} * 1000 / 3600) * {{#if:{{{TurnTimeStockAB}}}|{{{TurnTimeStockAB}}}|0}} / (2 * pi) round 2}}|___}}|}}
+
| {{#ifexpr: 0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockAB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockAB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#ifeq:{{{TurnSpeedStockAB|}}}{{{TurnTimeStockAB|}}}|{{{TurnSpeedStockAB}}}{{{TurnTimeStockAB}}}| ~{{#expr:({{{TurnSpeedStockAB}}} * 1000 / 3600) * {{{TurnTimeStockAB}}} / (2 * pi) round 2}}|___}}|}}
 
|-
 
|-
 
| {{Annotation|Upgraded|All modifications installed}} || {{{SpeedForwardSpadedAB|{{Specs|speed|forward|ab}}}}} || {{{SpeedBackSpadedAB|{{Specs|speed|back|ab}}}}}
 
| {{Annotation|Upgraded|All modifications installed}} || {{{SpeedForwardSpadedAB|{{Specs|speed|forward|ab}}}}} || {{{SpeedBackSpadedAB|{{Specs|speed|back|ab}}}}}
 
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeSpadedAB|}}}| ~{{#expr:{{{TurnTimeSpadedAB}}} round 2}}|___}}|}}
 
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeSpadedAB|}}}| ~{{#expr:{{{TurnTimeSpadedAB}}} round 2}}|___}}|}}
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#ifeq:{{{TurnSpeedSpadedAB|}}}{{{TurnTimeSpadedAB|}}}|{{{TurnSpeedSpadedAB}}}{{{TurnTimeSpadedAB}}}| ~{{#expr:({{#if:{{{TurnSpeedSpadedAB}}}|{{{TurnSpeedSpadedAB}}}|0}} * 1000 / 3600) * {{#if:{{{TurnTimeSpadedAB}}}|{{{TurnTimeSpadedAB}}}|0}} / (2 * pi) round 2}}|___}}|}}
+
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#ifeq:{{{TurnSpeedSpadedAB|}}}{{{TurnTimeSpadedAB|}}}|{{{TurnSpeedSpadedAB}}}{{{TurnTimeSpadedAB}}}| ~{{#expr:({{{TurnSpeedSpadedAB}}} * 1000 / 3600) * {{{TurnTimeSpadedAB}}} / (2 * pi) round 2}}|___}}|}}
 
|-
 
|-
 
| rowspan="2" | {{Annotation|RB|Realistic Battles}}/{{Annotation|SB|Simulator Battles}}
 
| rowspan="2" | {{Annotation|RB|Realistic Battles}}/{{Annotation|SB|Simulator Battles}}
Line 32: Line 28:
 
| {{#if:{{#var:isStockIntroRB}}||style="display:none;"}}| {{{SpeedBackStockRB|___}}}
 
| {{#if:{{#var:isStockIntroRB}}||style="display:none;"}}| {{{SpeedBackStockRB|___}}}
 
| {{#ifexpr: 0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockRB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeStockRB|}}}| ~{{#expr:{{{TurnTimeStockRB}}} round 2}}|___}}|}}
 
| {{#ifexpr: 0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockRB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeStockRB|}}}| ~{{#expr:{{{TurnTimeStockRB}}} round 2}}|___}}|}}
| {{#ifexpr: 0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockRB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#ifeq:{{{TurnSpeedStockRB|}}}{{{TurnTimeStockRB|}}}|{{{TurnSpeedStockRB}}}{{{TurnTimeStockRB}}}| ~{{#expr:({{#if:{{{TurnSpeedStockRB}}}|{{{TurnSpeedStockRB}}}|0}} * 1000 / 3600) * {{#if:{{{TurnTimeStockRB}}}|{{{TurnTimeStockRB}}}|0}} / (2 * pi) round 2}}|___}}|}}
+
| {{#ifexpr: 0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1 or ((0{{#var:isStockRB}}=1 and 0{{#var:isTurn}}=1)=0 and {{{TurnTimeStockRB|0}}}!=0)||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#ifeq:{{{TurnSpeedStockRB|}}}{{{TurnTimeStockRB|}}}|{{{TurnSpeedStockRB}}}{{{TurnTimeStockRB}}}| ~{{#expr:({{{TurnSpeedStockRB}}} * 1000 / 3600) * {{{TurnTimeStockRB}}} / (2 * pi) round 2}}|___}}|}}
 
|-
 
|-
 
| {{Annotation|Upgraded|All modifications installed}} || {{{SpeedForwardSpadedRB|{{Specs|speed|forward|rb}}}}} || {{{SpeedBackSpadedRB|{{Specs|speed|back|rb}}}}}
 
| {{Annotation|Upgraded|All modifications installed}} || {{{SpeedForwardSpadedRB|{{Specs|speed|forward|rb}}}}} || {{{SpeedBackSpadedRB|{{Specs|speed|back|rb}}}}}
 
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeSpadedRB|}}}| ~{{#expr:{{{TurnTimeSpadedRB}}} round 2}}|___}}|}}
 
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#if:{{{TurnTimeSpadedRB|}}}| ~{{#expr:{{{TurnTimeSpadedRB}}} round 2}}|___}}|}}
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{{TurnSpeedSpadedRB}}}{{{TurnTimeSpadedRB}}}|| ~{{#expr:({{#if:{{{TurnSpeedSpadedRB}}}|{{{TurnSpeedSpadedRB}}}|0}} * 1000 / 3600) * {{#if:{{{TurnTimeSpadedRB}}}|{{{TurnTimeSpadedRB}}}|0}} / (2 * pi) round 2}}|___}}|}}
+
| {{#if:{{#var:isTurn}}||style="display:none;"}}| {{#if:{{#var:isTurn}}|{{#ifeq:{{{TurnSpeedSpadedRB|}}}{{{TurnTimeSpadedRB|}}}|{{{TurnSpeedSpadedRB}}}{{{TurnTimeSpadedRB}}}| ~{{#expr:({{{TurnSpeedSpadedRB}}} * 1000 / 3600) * {{{TurnTimeSpadedRB}}} / (2 * pi) round 2}}|___}}|}}
 
|-
 
|-
|}
+
|}</includeonly><noinclude>
 +
{{doc}}
 +
[[Category:Templates]]
 +
</noinclude>

Revision as of 17:44, 18 September 2020