Difference between revisions of "User:Jareel_Skaj/DPSGraph"
Jareel_Skaj (talk | contribs) (Added ability to define penetration) |
Jareel_Skaj (talk | contribs) (Reduced the number of loops, added defaultMin and defaultMax to allow for further optimizations) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:i|1}}{{#vardefine:maxHeight|200}}{{#vardefine:itemWidth|1.5em}}{{#vardefine:itemSpacing|0.2em}}{{#vardefine:min|9999}}{{#vardefine:max|0}}{{#while: | + | <includeonly>{{#vardefine:i|1}}{{#vardefine:maxHeight|200}}{{#vardefine:itemWidth|1.5em}}{{#vardefine:itemSpacing|0.2em}}{{#vardefine:min|{{{defaultMin|9999}}}}}{{#vardefine:max|{{{defaultMax|0}}}}}{{#ifexpr:{{#var:min}}=9999|{{#while: |
− | | {{{tnt{{#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}}}}}|{{{broadsideGuns{{#var:i}}|}}}}}|{{#vardefine:max| {{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#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}}) }}}} | + | }}}}{{#vardefine:baseline|{{#expr: floor(0.9*{{#var:min}}) }}}}{{#vardefine:i|1}}<div style="display: inline-block; position: relative; width: auto;"> |
− | |||
− | |||
− | |||
− | {{#vardefine: i | ||
− | |||
− | |||
− | }}<div style="display: inline-block; position: relative; width: auto;"> | ||
<div style="border:0 solid black; border-left-width: 1px; border-bottom-width: 1px; display: flex; align-items: flex-end; position: relative; width: auto;"> | <div style="border:0 solid black; border-left-width: 1px; border-bottom-width: 1px; display: flex; align-items: flex-end; position: relative; width: auto;"> | ||
{{#vardefine:i| 1 }} | {{#vardefine:i| 1 }} | ||
Line 35: | Line 27: | ||
| {{{tnt{{#var:i}} |}}} | | {{{tnt{{#var:i}} |}}} | ||
| <nowiki /> | | <nowiki /> | ||
− | <div style=""><div style="writing-mode: vertical-rl; width: {{#var:itemWidth}}; margin-right: {{#var:itemSpacing}}; text-align: left;">{{#unit:{{{code{{#var:i}}}}}|pseudonym}}</div></div> | + | <div style=""><div style="writing-mode: vertical-rl; width: {{#var:itemWidth}}; margin-right: {{#var:itemSpacing}}; text-align: left;">{{{name{{#var:i}}|{{#unit:{{{code{{#var:i}}}}}|pseudonym}}}}}</div></div> |
{{#vardefine: i | {{#vardefine: i | ||
| {{#expr: {{#var: i }} + 1 }} | | {{#expr: {{#var: i }} + 1 }} | ||
Line 64: | Line 56: | ||
|broadsideGuns6 = 1 | |broadsideGuns6 = 1 | ||
|color6=#B08382 | |color6=#B08382 | ||
+ | |name6=Eskimo Test | ||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:05, 20 November 2024
Sample:
354.2 kg/min
39 kg/min
0
IJN Yugumo
USS Fletcher
Z12 Erich Giese
Moskva
HMS Eskimo
Eskimo Test