Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:AutoGun"

Jump to: navigation, search
Revision as of 10:53, 25 March 2012
Test
Revision as of 10:55, 25 March 2012
Test
Line 44:Line 44:
 {{#while:|{{#if:{{{{{#var:i}}|}}}|true}} {{#while:|{{#if:{{{{{#var:i}}|}}}|true}}
  |{{#if:{{#explode:{{{{{#var:i}}|}}}|,|13}}|<tr><td><p class="error">too many variables</p></td></tr>|  |{{#if:{{#explode:{{{{{#var:i}}|}}}|,|13}}|<tr><td><p class="error">too many variables</p></td></tr>|
? {{#if:{{#explode:{{{{{#var:i}}|}}}|,|11}}+ {{#if:{{#explode:{{{{{#var:i}}|}}}|,|12}}
  |{{#switch:{{#explode:{{{{{#var:i}}|}}}|,|1}}|1={{#vardefine:tr|<span style="display:none">01</span>I}}|2={{#vardefine:tr|<span style="display:none">02</span>II}}|3={{#vardefine:tr|<span style="display:none">03</span>III}}|4={{#vardefine:tr|<span style="display:none">04</span>IV}}|5={{#vardefine:tr|<span style="display:none">05</span>V}}|6={{#vardefine:tr|<span style="display:none">06</span>VI}}|7={{#vardefine:tr|<span style="display:none">07</span>VII}}|8={{#vardefine:tr|<span style="display:none">08</span>VIII}}|9={{#vardefine:tr|<span style="display:none">09</span>IX}}|10={{#vardefine:tr|<span style="display:none">10</span>X}}|#default={{#vardefine:tr|error}}}}  |{{#switch:{{#explode:{{{{{#var:i}}|}}}|,|1}}|1={{#vardefine:tr|<span style="display:none">01</span>I}}|2={{#vardefine:tr|<span style="display:none">02</span>II}}|3={{#vardefine:tr|<span style="display:none">03</span>III}}|4={{#vardefine:tr|<span style="display:none">04</span>IV}}|5={{#vardefine:tr|<span style="display:none">05</span>V}}|6={{#vardefine:tr|<span style="display:none">06</span>VI}}|7={{#vardefine:tr|<span style="display:none">07</span>VII}}|8={{#vardefine:tr|<span style="display:none">08</span>VIII}}|9={{#vardefine:tr|<span style="display:none">09</span>IX}}|10={{#vardefine:tr|<span style="display:none">10</span>X}}|#default={{#vardefine:tr|error}}}}
  {{#vardefine:nm|{{#explode:{{{{{#var:i}}|}}}|,|0}}}}  {{#vardefine:nm|{{#explode:{{{{{#var:i}}|}}}|,|0}}}}

Revision as of 10:55, 25 March 2012

Notes

  • If you have too few or too many variables the module name will be in red.
  • Continue to add | (pipes) to how ever many modules you need.
  • Place variables in order, separated by a comma.
    • name = name of the module
    • tier = tier of the module, acceptable only numbers(1,2,..,10)
    • shells = types of shells available for the gun, must be in same order as damage/penetration, acceptable only AP, APCR, HE, HEAT, HEp; must be separated by "/" (ie. AP/APCR/HE)
    • damage = damage caused by a direct hit, in Hit Points, do not include "(HP)"
    • penetration = the penetration of the gun, in millimeters, do not include "(mm)"
    • rate of fire = the rate of fire of the gun, in rounds per minute, do not include "(r/m)"
    • accuracy = gun accuracy, in meters at 100m, do not include "(m)"
    • aim time = time it takes to full aim, in seconds, do not include "(s)"
    • price = price of the module, in credits
    • weight = weight of the module, in kilograms, do not include "(kg)"
    • compatibility = the vehicle(s) the module is compatible with, arranged by tier, then alphabetically, use the contour template {{contour|c="tank"}} see the contour template for notes.

Template

{{Gun
<!--|name, tier, shells, damage, penetration, rate of fire, accuracy, aim time, price, weight, compatibility-->
|name, tier, shells, damage, penetration, rate of fire, accuracy, aim time, price, weight, compatibility
}}
Category: