Difference between revisions of "Template:AutoRoF"
Revision as of 11:28, 10 August 2014 Width increase, added extra line for more common appearance | Revision as of 11:30, 10 August 2014 Width decrease (mag relod will not go to one line, so removing additional size) | |||
Line 10: | Line 10: | |||
{{#vardefine:magReloadTime|{{#expr:60/{{#var:magRoF}}}}}}</div> | {{#vardefine:magReloadTime|{{#expr:60/{{#var:magRoF}}}}}}</div> | |||
{{#expr:60*({{#var:magSize}}/({{#var:clipReloadTime}}+({{#var:magSize}}-1)*{{#var:magReloadTime}})) round 2}} {{#ifeq:{{#var:sidebar}}|yes | {{#expr:60*({{#var:magSize}}/({{#var:clipReloadTime}}+({{#var:magSize}}-1)*{{#var:magReloadTime}})) round 2}} {{#ifeq:{{#var:sidebar}}|yes | |||
? | |<div class="wiki_tooltip">▲<div align="center"><span class="tooltip_brown"><b>Automatic Gun</b | + | |<div class="wiki_tooltip">▲<div align="center"><span class="tooltip_brown"><b>Automatic Gun</b> | |
? | + | ________________________ | ||
Burst Length: {{#if:{{#var:burstLength}}|{{#var:burstLength}} rounds|1 round}}<br /> | Burst Length: {{#if:{{#var:burstLength}}|{{#var:burstLength}} rounds|1 round}}<br /> | |||
Magazine Size: {{#var:magSize}} round{{#ifexpr:{{#var:magSize}} > 1|s|}}<br /> | Magazine Size: {{#var:magSize}} round{{#ifexpr:{{#var:magSize}} > 1|s|}}<br /> | |||
Burst Reload Time: {{#vardefineecho:magreloaddtimeround|:{{#expr:{{#var:magReloadTime}}round2}}}} s<br /> | Burst Reload Time: {{#vardefineecho:magreloaddtimeround|:{{#expr:{{#var:magReloadTime}}round2}}}} s<br /> | |||
Magazine Reload Time: {{#var:clipReloadTime}} s<br /> | Magazine Reload Time: {{#var:clipReloadTime}} s<br /> | |||
? | + | ________________________ | ||
Click [[Automatic_Loader|here]] for more information.</span></div></div> | Click [[Automatic_Loader|here]] for more information.</span></div></div> | |||
|}} | |}} |
Revision as of 11:30, 10 August 2014
Usage
{{AutoRoF|tankcode|gun|sidebar}}
- Tank code should be used to specify the tank. The tank codes are listed here: https://wiki.wargaming.net/ru/WoT:Коды_техники in the Code column (the 3rd column).
- gun = stock or top
- sidebar = yes for explanation triangle, no for only RoF