Difference between revisions of "Template:AirCompressor"

From War Thunder Wiki
Jump to: navigation, search
(table for compressor)
 
m (debugging)
Line 6: Line 6:
 
! 100% Engine power
 
! 100% Engine power
 
! WEP Engine power
 
! WEP Engine power
{{#while: |{{#expr:{{#var:counter}} <= {{{stages|1}}}}}|
+
{{#while: |{{#expr:{{#var:counter}} <= {{{stages|1}}}}}|<br>
 
{{!}}-
 
{{!}}-
 
! Setting {{#var:counter}}
 
! Setting {{#var:counter}}
Line 13: Line 13:
 
|}
 
|}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
<nowiki>[[AirCompressor|stages = |alt1 = |power1 = | wepMult1 = (pick this)|wep1 = (or this)|alt2 = ...]]</nowiki>
+
<nowiki>{{AirCompressor|stages = |alt1 = |power1 = | wepMult1 = (pick this)|wep1 = (or this)|alt2 = ...}}</nowiki>
 
{{doc}}
 
{{doc}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 03:29, 5 November 2019

{{AirCompressor|stages = |alt1 = |power1 = | wepMult1 = (pick this)|wep1 = (or this)|alt2 = ...}}

Description

The Air-Compressor template is used to create a table for showing multiple turbocharger stages.

Use

First define how many stages there are and then add for every stage a alt, power and wepMult property.

{{AirCompressor
| stages = 2
| alt1 = x 
| power1 = y
| wepMult1 = z
| alt2 = x2
| power2 = y2
| wepMult2 = z2
... 
}}

Examples of use

Two stages:

Compressor Optimal altitude 100% Engine power WEP Engine power
Setting 1 1000 m 200 hp 600 hp
Setting 2 2000 m 500 hp 2000 hp


{{AirCompressor
| stages = 2
| alt1 = 1000
| power1 = 200
| wepMult1 = 3
| alt2 = 2000
| power2 = 500
| wepMult2 = 4
}}