Добро пожаловать на Wargaming.net Wiki!

Шаблон:WoWs cmp — различия между версиями

Перейти к: навигация, поиск
Версия 17:18, 6 декабря 2015Текущая версия на 17:21, 23 августа 2017 
Строка 3:Строка 3:
 {{#vardefine:side|{{#explode:{{#var:cmp_sides}}|;|{{#var:cmp_i}}}}}}{{#vardefine:raw_row|{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}{{#vardefine:cmp_j|0}}{{#while:|{{#if:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|true}}|;{{#vardefine:code|{{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|0}}}}{{#vardefine:ts|{{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|1}}}}{{#if:{{#var:ts}}||{{#vardefine:ts|top}}}}{{#vardefine:cur_v|{{WoWs_GD|{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|0}}|||{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|1}}}}}}{{#ifeq:{{#var:cur_v}}||0|{{#var:cur_v}}}}{{#vardefine:lv|{{#ifeq:{{#var:cmp_j}}|0|{{#var:cur_v}}|{{#ifexpr:{{#var:cur_v}}{{#var:side}}{{#var:lv}}|{{#var:cur_v}}|{{#var:lv}}}}}}}}{{#vardefine:hv|{{#ifeq:{{#var:cmp_j}}|0|{{#var:cur_v}}|{{#ifexpr:{{#var:cur_v}}{{#var:side}}{{#var:hv}}|{{#var:hv}}|{{#var:cur_v}}}}}}}}{{#vardefine:cmp_j|{{#expr:{{#var:cmp_j}}+1}}}}}}}}{{#if:{{#var:sr}}|<tr><td>{{#explode:{{#var:raw_row}}|;|0}}</td>{{#vardefine:row_ind|1}}{{#while:|{{#if:{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}|true}}|<td style="background-color: #{{#ifeq:{{#var:lv}}|{{#var:hv}}|{{#var:c0}}|{{#switch:{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}|{{#var:lv}}={{#var:c1}}|{{#var:hv}}={{#var:c3}}|#default={{#var:c2}}}}}};">{{#ifeq:{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}|0|&nbsp;|{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}}}</td>{{#vardefine:row_ind|{{#expr:{{#var:row_ind}}+1}}}}}}</tr>}}{{#vardefine:cmp_i|{{#expr:{{#var:cmp_i}}+1}}}}}}</table> {{#vardefine:side|{{#explode:{{#var:cmp_sides}}|;|{{#var:cmp_i}}}}}}{{#vardefine:raw_row|{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}{{#vardefine:cmp_j|0}}{{#while:|{{#if:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|true}}|;{{#vardefine:code|{{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|0}}}}{{#vardefine:ts|{{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|1}}}}{{#if:{{#var:ts}}||{{#vardefine:ts|top}}}}{{#vardefine:cur_v|{{WoWs_GD|{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|0}}|||{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|1}}}}}}{{#ifeq:{{#var:cur_v}}||0|{{#var:cur_v}}}}{{#vardefine:lv|{{#ifeq:{{#var:cmp_j}}|0|{{#var:cur_v}}|{{#ifexpr:{{#var:cur_v}}{{#var:side}}{{#var:lv}}|{{#var:cur_v}}|{{#var:lv}}}}}}}}{{#vardefine:hv|{{#ifeq:{{#var:cmp_j}}|0|{{#var:cur_v}}|{{#ifexpr:{{#var:cur_v}}{{#var:side}}{{#var:hv}}|{{#var:hv}}|{{#var:cur_v}}}}}}}}{{#vardefine:cmp_j|{{#expr:{{#var:cmp_j}}+1}}}}}}}}{{#if:{{#var:sr}}|<tr><td>{{#explode:{{#var:raw_row}}|;|0}}</td>{{#vardefine:row_ind|1}}{{#while:|{{#if:{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}|true}}|<td style="background-color: #{{#ifeq:{{#var:lv}}|{{#var:hv}}|{{#var:c0}}|{{#switch:{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}|{{#var:lv}}={{#var:c1}}|{{#var:hv}}={{#var:c3}}|#default={{#var:c2}}}}}};">{{#ifeq:{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}|0|&nbsp;|{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}}}</td>{{#vardefine:row_ind|{{#expr:{{#var:row_ind}}+1}}}}}}</tr>}}{{#vardefine:cmp_i|{{#expr:{{#var:cmp_i}}+1}}}}}}</table>
 </includeonly><noinclude> </includeonly><noinclude>
?{{WoWs_cmp|||cruiser, destroyer|3}}+{{WoWs_cmp|||cruiser|1}}
 [[Категория:Шаблоны WoWs]]</noinclude> [[Категория:Шаблоны WoWs]]</noinclude>

Текущая версия на 17:21, 23 августа 2017

Шаблон:WoWs cmp