Difference between revisions of "User:Jareel_Skaj/DPSGraph"
Jareel_Skaj (talk | contribs) (Created template for visualizing damage output) |
Jareel_Skaj (talk | contribs) (Added option to define a custom number of guns) |
||
Line 20: | Line 20: | ||
<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}}}}}}} / {{#var:max}}) * {{#var:maxHeight}} round 0 | ||
− | }}px; display: flex; " title="{{User:U12017485/DPS|{{{code{{#var:i}}}}}|{{{tnt{{#var:i}}}}}}} kg/min with {{#unit:{{{code{{#var:i}}}}}|weapon|main|1|name}}"></div> | + | |{{{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> | ||
{{#vardefine: i | {{#vardefine: i | ||
| {{#expr: {{#var: i }} + 1 }} | | {{#expr: {{#var: i }} + 1 }} | ||
Line 40: | Line 41: | ||
}} | }} | ||
</div> | </div> | ||
− | </div></includeonly><noinclude>Sample: | + | </div> |
− | {{ | + | </includeonly><noinclude>Sample: |
+ | {{User:U12017485/DPSGraph | ||
|code1=jp_destroyer_yugumo | |code1=jp_destroyer_yugumo | ||
|tnt1=2.31 | |tnt1=2.31 | ||
Line 52: | Line 54: | ||
|code5=uk_destroyer_tribal | |code5=uk_destroyer_tribal | ||
|tnt5=3 | |tnt5=3 | ||
− | }}</noinclude> | + | |code6=uk_destroyer_tribal |
+ | |tnt6=3 | ||
+ | |broadsideGuns6 = 1 | ||
+ | }} | ||
+ | </noinclude> |
Revision as of 21:31, 21 February 2023
Sample:
354.2 kg/min
39 kg/min
0
IJN Yugumo
USS Fletcher
Z12 Erich Giese
Moskva
HMS Eskimo
HMS Eskimo