Difference between revisions of "User:Jareel_Skaj/DPSGraph"

From War Thunder Wiki
Jump to: navigation, search
(Added ability to define custom name)
(Reduced the number of loops, added defaultMin and defaultMax to allow for further optimizations)
 
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: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}}) }}}}{{#while:
+
}}}}{{#vardefine:baseline|{{#expr: floor(0.9*{{#var:min}}) }}}}{{#vardefine:i|1}}<div style="display: inline-block; position: relative; width: auto;">
| {{{tnt{{#var:i}} |}}}
 
| <nowiki />
 
* {{{tnt{{#var:i}}}}}
 
{{#vardefine: i
 
  | {{#expr: {{#var: i }} + 1 }}
 
}}
 
}}<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 }}

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