Difference between revisions of "User:Jareel_Skaj/DPSGraph"
Jareel_Skaj (talk | contribs) (Added option to define a custom number of guns) |
Jareel_Skaj (talk | contribs) (Fixed the calculation issues related to the broadsideGuns. Also: no more Expression error: Unexpected * operator! :D) |
||
Line 2: | Line 2: | ||
| {{{tnt{{#var:i}} |}}} | | {{{tnt{{#var:i}} |}}} | ||
| | | | ||
− | {{#ifexpr:{{#var:min}}>{{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}}}|{{#vardefine:min| {{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}}} }}|}} | + | {{#ifexpr:{{#var:min}}>{{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#var:i}}|}}}}}|{{#vardefine:min|{{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#var:i}}|}}}}} }}|}} |
− | {{#ifexpr:{{#var:max}}<{{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}}}|{{#vardefine:max| {{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}}} }}|}} | + | {{#ifexpr:{{#var:max}}<{{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#var:i}}|}}}}}|{{#vardefine:max| {{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#var:i}}|}}}}} }}|}} |
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | {{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | ||
}}{{#vardefine:baseline|{{#expr: floor(0.9*{{#var:min}}) }}}}{{#while: | }}{{#vardefine:baseline|{{#expr: floor(0.9*{{#var:min}}) }}}}{{#while: | ||
Line 19: | Line 19: | ||
| <nowiki /> | | <nowiki /> | ||
<div style="background-color: #94a4b0; width: {{#var:itemWidth}}; margin-right: {{#var:itemSpacing}}; height: {{#expr: | <div style="background-color: #94a4b0; width: {{#var:itemWidth}}; margin-right: {{#var:itemSpacing}}; height: {{#expr: | ||
− | ({{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}}} / {{#var:max}}) * {{#var:maxHeight}} round 0 | + | ({{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#var:i}}|}}}}} / {{#var:max}}) * {{#var:maxHeight}} round 0 |
|{{{broadsideGuns{{#var:i}}|}}}}}px; display: flex; " title=" | |{{{broadsideGuns{{#var:i}}|}}}}}px; display: flex; " title=" | ||
{{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#var:i}}|}}}}} kg/min with {{{broadsideGuns{{#var:i}}|{{#expr: {{#unit:{{{code{{#var:i}}}}}|weapon|{{{group|main}}}|{{{slot|1}}}|amount}} * {{#unit:{{{code{{#var:i}}}}}|weapon|{{{group|main}}}|{{{slot|1}}}|guns}} }}}}} x {{#unit:{{{code{{#var:i}}}}}|weapon|main|1|name}}"></div> | {{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#var:i}}|}}}}} kg/min with {{{broadsideGuns{{#var:i}}|{{#expr: {{#unit:{{{code{{#var:i}}}}}|weapon|{{{group|main}}}|{{{slot|1}}}|amount}} * {{#unit:{{{code{{#var:i}}}}}|weapon|{{{group|main}}}|{{{slot|1}}}|guns}} }}}}} x {{#unit:{{{code{{#var:i}}}}}|weapon|main|1|name}}"></div> |
Revision as of 14:07, 23 February 2023
Sample:
354.2 kg/min
39 kg/min
0
IJN Yugumo
USS Fletcher
Z12 Erich Giese
Moskva
HMS Eskimo
HMS Eskimo