Difference between revisions of "User:Jareel_Skaj/DPS"

From War Thunder Wiki
Jump to: navigation, search
(Added option to define a custom number of guns)
(Formatting changed, packed everything into {{#expr: to hopefully avoid Expression error: Unexpected * operator.)
Line 9: Line 9:
  
 
<!-- Code for debugging: Guns: {{{3|{{#expr: {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|amount}} * {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|guns}} }}}}} in slot {{{group|main}}} {{{slot|1}}} RoF {{{rof|{{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|firerate}}}}} -->
 
<!-- Code for debugging: Guns: {{{3|{{#expr: {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|amount}} * {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|guns}} }}}}} in slot {{{group|main}}} {{{slot|1}}} RoF {{{rof|{{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|firerate}}}}} -->
</noinclude><includeonly>{{#expr: {{{3|{{#expr: {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|amount}} * {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|guns}} }}}}} * {{{rof|{{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|firerate}}}}} * {{{2}}} round 2}}<includeonly>
+
</noinclude><includeonly>{{#expr:  
 +
    {{#expr:
 +
        {{{3|
 +
            {{#expr:
 +
                {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|amount}} * {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|guns}}
 +
            }}
 +
        }}}
 +
    }}
 +
    *
 +
    {{#expr:
 +
        {{{rof|
 +
            {{#unit:{{{1}}}|weapon|{{{group|main}}}|{{{slot|1}}}|firerate}}
 +
        }}}
 +
    }}
 +
    *
 +
    {{#expr:{{{2}}}}}
 +
    round 2
 +
}}<includeonly>

Revision as of 13:24, 23 February 2023

How to use: {{User:U12017485/DPS|<explosive filler>|<(optional) number of guns in all relevant turrets>}}

Yugumo: 138.6 == 138.6
Yugumo, 1 gun: 23.1

Helgoland, default guns: 652.8
Helgoland, 8 guns (broadside): 435.2
Helgoland, 1 gun: 54.4