1,694 bytes added
, 2 months ago
<includeonly>
|-
|{{#switch: {{{Type}}}| HA Gun = {{Green Gun}}| AAFD = {{AAFD}}| Radar = {{Radar}}| AA Gun = {{AA Gun}}| T3 = {{AA Shell}}| 46cm = {{Large Gun}}| {{Empty}}}} [[{{{Name}}}]]
|{{{AA}}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=0}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=1}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=2}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=3}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=4}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=5}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=6}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=7}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=8}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=9}}
|{{Calc AdjAA/ShipAA|AA={{{AA}}}|Type={{{Type}}}|Star=10}}
</includeonly><noinclude>
This template create a line for a table which contain the Ship Adjusted AA of an equipment for all improvement level.
<pre>
{{Calc AdjAA/ShipAA Tableline
|Name= (string) Name of the equipment
|AA= (interger) AA stat of the equipment
|Type= (string) type of the equipment only
}}
</pre>
Example:
<pre>
{|class="wikitable sortable"
!rowspan=2|Name!!rowspan=2|{{AA}}!!colspan=11|Ship Adjusted Anti-Air
|-
!0★!!1★!!2★!!3★!!4★!!5★!!6★!!7★!!8★!!9★!!10★
{{Calc AdjAA/ShipAA Tableline
|Name=10cm Twin High-angle Gun Mount
|AA=7
|Type=HA Gun
}}
|}
</pre>
{|class="wikitable sortable"
!rowspan=2|Name!!rowspan=2|{{AA}}!!colspan=11|Ship Adjusted Anti-Air
|-
!0★!!1★!!2★!!3★!!4★!!5★!!6★!!7★!!8★!!9★!!10★
{{Calc AdjAA/ShipAA Tableline
|Name=10cm Twin High-angle Gun Mount
|AA=7
|Type=HA Gun
}}
|}