• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:Calc AdjAA/ShipAA Tableline"

From Kancolle Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
|{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(8) round 2}}
 
|{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(8) round 2}}
 
|{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(9) round 2}}
 
|{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(9) round 2}}
|{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(10) round 2}}</includeonly><noinclude>
+
|{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(10) round 2}}
 +
!
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}} round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}} round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(2) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(3) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(4) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(5) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(6) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(7) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(8) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(9) round 2}}
 +
|{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }}{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 0.35| 30 = 0.35| 11 = 0.4|12 = 0.6| 3 = 0.25| 0.2}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 11 = 1.5| 0}}*sqrt(10) round 2}}</includeonly><noinclude>
  
 
This template create a line for a table which contain the Ship Adjusted AA of an equipment for all improvement level.
 
This template create a line for a table which contain the Ship Adjusted AA of an equipment for all improvement level.
Line 32: Line 44:
 
{{Calc AdjAA/ShipAA Tableline
 
{{Calc AdjAA/ShipAA Tableline
 
|Name=10cm Twin High-angle Gun Mount
 
|Name=10cm Twin High-angle Gun Mount
 +
}}
 +
{{Calc AdjAA/ShipAA Tableline
 +
|Name=12cm Single High-angle Gun Mount
 
}}
 
}}
 
|}
 
|}

Revision as of 14:21, 30 November 2024


This template create a line for a table which contain the Ship Adjusted AA of an equipment for all improvement level.

{{Calc AdjAA/ShipAA Tableline
|Name= (string) Name of the equipment
}}

Example:

{{Calc AdjAA/Header}}
{{Calc AdjAA/ShipAA Tableline
|Name=10cm Twin High-angle Gun Mount
}}
|}
Name Anti-Air Ship Adjusted Anti-Air Fleet Adjusted Anti-Air
0★ 1★ 2★ 3★ 4★ 5★ 6★ 7★ 8★ 9★ 10★ 0★ 1★ 2★ 3★ 4★ 5★ 6★ 7★ 8★ 9★ 10★
Equipment Card 10cm Twin High-angle Gun Mount.png 7 28 30 30.83 31.46 32 32.47 32.9 33.29 33.66 34 34.32 2.45 4.45 5.28 5.91 6.45 6.92 7.35 7.74 8.11 8.45 8.77
Equipment Card 12cm Single High-angle Gun Mount.png 3 12 14 14.83 15.46 16 16.47 16.9 17.29 17.66 18 18.32 1.05 3.05 3.88 4.51 5.05 5.52 5.95 6.34 6.71 7.05 7.37