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

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

Перейти к: навигация, поиск
Версия 11:14, 26 сентября 2015Версия 11:21, 26 сентября 2015
Строка 2:Строка 2:
 }}{{#vardefine:cmp_ships|{{#if:{{{1|}}}|{{{1|}}}|{{#shiplist:ships|{{#if:{{{2|}}}|nation={{{2}}}}};{{#if:{{{3|}}}|class={{{3}}}}};{{#if:{{{4|}}}|level={{{4}}}}}|level}}}}}}<table class="t-modules"><tr><th>Параметр\Корабль</th>{{#vardefine:cmp_j|0}}{{#while:|{{#if:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|true}}|<th><big>{{#shipstr:{{#shipchars:{{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|0}}|mark}}}} ({{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|1}})</big></th>{{#vardefine:cmp_j|{{#expr:{{#var:cmp_j}}+1}}}}}}</tr> }}{{#vardefine:cmp_ships|{{#if:{{{1|}}}|{{{1|}}}|{{#shiplist:ships|{{#if:{{{2|}}}|nation={{{2}}}}};{{#if:{{{3|}}}|class={{{3}}}}};{{#if:{{{4|}}}|level={{{4}}}}}|level}}}}}}<table class="t-modules"><tr><th>Параметр\Корабль</th>{{#vardefine:cmp_j|0}}{{#while:|{{#if:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|true}}|<th><big>{{#shipstr:{{#shipchars:{{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|0}}|mark}}}} ({{#explode:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|-|1}})</big></th>{{#vardefine:cmp_j|{{#expr:{{#var:cmp_j}}+1}}}}}}</tr>
 {{#vardefine:cmp_i|0}}{{#while:|{{#if:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|true}}| {{#vardefine:cmp_i|0}}{{#while:|{{#if:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|true}}|
?<tr><td>{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}</td>{{#vardefine:cmp_j|0}}{{#while:|{{#if:{{#explode:{{#var:cmp_ships}}|;|{{#var:cmp_j}}}}|true}}|+{{#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}}}}{{WoWs_GD|{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|0}}|||{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|1}}}}{{#vardefine:cmp_j|{{#expr:{{#var:cmp_j}}+1}}}}}}}}<tr>{{#vardefine:row_ind|0}}{{#while:|{{#if:{{#explode:{{#var:raw_row}}|;|{{#var:row_ind}}}}|true}}|<td>{{#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>
?<td>{{#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}}}}{{WoWs_GD|{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|0}}|||{{#explode:{{#explode:{{#var:cmp_list}}|;|{{#var:cmp_i}}}}|-|1}}}}</td>+
?{{#vardefine:cmp_j|{{#expr:{{#var:cmp_j}}+1}}}}}}</tr>+
?{{#vardefine:cmp_i|{{#expr:{{#var:cmp_i}}+1}}}}}}</table>+
 </includeonly><noinclude> </includeonly><noinclude>
 {{WoWs_cmp||||1}} {{WoWs_cmp||||1}}
 [[Категория:Шаблоны WoWs]]</noinclude> [[Категория:Шаблоны WoWs]]</noinclude>

Версия 11:21, 26 сентября 2015

Шаблон:WoWs cmp