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

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

Перейти к: навигация, поиск
Версия 16:33, 3 декабря 2015Версия 16:35, 3 декабря 2015
Строка 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}}}}}}{{#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}}}}}};">{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}&nbsp;</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}}}}}}{{#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}}}}}};">{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}&nbsp;</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|5}}+{{WoWs_cmp||ussr,usa|cruiser|5}}
 [[Категория:Шаблоны WoWs]]</noinclude> [[Категория:Шаблоны WoWs]]</noinclude>

Версия 16:35, 3 декабря 2015

Шаблон:WoWs cmp