Difference between revisions of "Template:WoWs SM MS"
Revision as of 12:42, 23 May 2016 | Latest revision as of 20:04, 7 October 2021 Rearrange modules | |||
4 intermediate revisions by 3 users not shown | ||||
Line 1: | Line 1: | |||
? | <includeonly>{{#if:{{{2|}}}| | + | <includeonly>{{#vardefine:str_module|{{#switch:{{{2}}}|artillery=Main Battery Guns|flightcontrol=Flight Control|hull=Hull|suo=Fire Control System|fighter=Attack Aircraft|torpedobomber=Torpedo Bombers|divebomber=Bombers|SkipBomber=Skip Bombers|torpedoes=Torpedoes|Sonar=Sonar|engine=Engine|#default=NA}} }}{{#if:{{{2|}}}|<div class="b-modules_item b-horizontal-pane js-horizontal-pane"><table class="{{#ifeq:{{{1|list}}}|list|t-modules sortable|t-modules}}"><tr> | |
? | <th style="min-width: | + | <th style="min-width:120px;">[[File:Module_wows_{{{2|}}}.png|class=b-modules_img b-modules_img__wows|{{#var:str_module}}|link=Ship:Modules]]</th> | |
{{#ifeq:{{{1|list}}}|list|<th style="min-width:100px;">Ship</th><th style="min-width:20px;">Config</th>}} | {{#ifeq:{{{1|list}}}|list|<th style="min-width:100px;">Ship</th><th style="min-width:20px;">Config</th>}} | |||
{{#vardefine:i_m|3}}{{#while:|{{{{{#var:i_m}}|}}}| | {{#vardefine:i_m|3}}{{#while:|{{{{{#var:i_m}}|}}}| | |||
Line 7: | Line 7: | |||
<th class="unsortable" style="width:100%;"></th> | <th class="unsortable" style="width:100%;"></th> | |||
<th style="min-width:50px;"><span title="Research price" class="commentDrop" style="border-bottom:1px dotted">Research price</span><br /><span class="measure">(exp)</span></th> | <th style="min-width:50px;"><span title="Research price" class="commentDrop" style="border-bottom:1px dotted">Research price</span><br /><span class="measure">(exp)</span></th> | |||
? | <th style="min-width: | + | <th style="min-width:60px;"><span title="Purchase price" class="commentDrop" style="border-bottom:1px dotted">Purchase price</span><br /><span class="measure">({{Credits}})</span></th></tr> | |
{{#vardefine:list_as|{{#ifeq:{{{1|list}}}|list|{{#shiplist:ships|{{#var:m_f}}}}|{{{1|}}}}}}}{{#vardefine:as_i|0}}{{#while:|{{#if:{{#explode:{{#var:list_as}}|;|{{#var:as_i}}}}|true}}|{{#vardefine:cship|{{#explode:{{#var:list_as}}|;|{{#var:as_i}}}}}} | {{#vardefine:list_as|{{#ifeq:{{{1|list}}}|list|{{#shiplist:ships|{{#var:m_f}}}}|{{{1|}}}}}}}{{#vardefine:as_i|0}}{{#while:|{{#if:{{#explode:{{#var:list_as}}|;|{{#var:as_i}}}}|true}}|{{#vardefine:cship|{{#explode:{{#var:list_as}}|;|{{#var:as_i}}}}}} | |||
{{#vardefine:list_m|{{#shipchars:{{#var:cship}}|{{WoWs_Module|{{{2|}}}}}}}}}{{#vardefine:l_i|0}}{{#while:|{{#if:{{#explode:{{#var:list_m}}|;|{{#var:l_i}}}}|true}}| | {{#vardefine:list_m|{{#shipchars:{{#var:cship}}|{{WoWs_Module|{{{2|}}}}}}}}}{{#vardefine:l_i|0}}{{#while:|{{#if:{{#explode:{{#var:list_m}}|;|{{#var:l_i}}}}|true}}| |
Latest revision as of 20:04, 7 October 2021
Category: