Difference between revisions of "User:Jareel_Skaj/DPSGraph"
Jareel_Skaj (talk | contribs) (Added ability to define colors (defaults to #94a4b0 if colorDefault is not provided)) |
Jareel_Skaj (talk | contribs) (Added ability to define penetration) |
||
Line 20: | Line 20: | ||
<div style="background-color: {{{color{{#var:i}}|{{{colorDefault|#94a4b0}}}}}}; width: {{#var:itemWidth}}; margin-right: {{#var:itemSpacing}}; height: {{#expr: | <div style="background-color: {{{color{{#var:i}}|{{{colorDefault|#94a4b0}}}}}}; width: {{#var:itemWidth}}; margin-right: {{#var:itemSpacing}}; height: {{#expr: | ||
({{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}|{{{broadsideGuns{{#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; align-items: flex-end; justify-content: center;" 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}}">{{#ifexpr:{{{pen{{#var:i}}|0}}} and {{{penMax|0}}}|<div title="Penetration: {{{pen{{#var:i}}|0}}} mm @ {{{penDegrees|0}}}° @ {{{penRange|1000}}} m" style="background-color: #b0bec5; width: 0.3em; height: {{#expr:({{{pen{{#var:i}}|0}}}/{{{penMax|0}}}) * {{#var:maxHeight}} round 0}}px;"></div>|}}</div> |
{{#vardefine: i | {{#vardefine: i | ||
| {{#expr: {{#var: i }} + 1 }} | | {{#expr: {{#var: i }} + 1 }} | ||
Line 45: | Line 45: | ||
{{User:U12017485/DPSGraph | {{User:U12017485/DPSGraph | ||
|colorDefault=#355166 | |colorDefault=#355166 | ||
+ | |penMax=50 | ||
+ | |penDegrees=30 | ||
+ | |penRange=500 | ||
|code1=jp_destroyer_yugumo | |code1=jp_destroyer_yugumo | ||
|tnt1=2.31 | |tnt1=2.31 | ||
+ | |pen1=28 | ||
|code2=us_destroyer_fletcher | |code2=us_destroyer_fletcher | ||
|tnt2=3.22 | |tnt2=3.22 |
Revision as of 21:12, 19 November 2024
Sample:
354.2 kg/min
39 kg/min
0
IJN Yugumo
USS Fletcher
Z12 Erich Giese
Moskva
HMS Eskimo
HMS Eskimo