Modèle:AutoRoF : Différence entre versions
Version du 10 août 2014 à 11:21 | Version du 10 août 2014 à 11:24 Added line to force tooltip to have a given width rather than wrapping around widest word, problem did not exist when magreloadtime was unrounded (30 character number output) | |||
Ligne 11 : | Ligne 11 : | |||
{{#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><br /> | |<div class="wiki_tooltip">▲<div align="center"><span class="tooltip_brown"><b>Automatic Gun</b><br /> | |||
+ | _________________________ | |||
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 /> |
Version du 10 août 2014 à 11:24
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