Шаблон:WoWs SC test — различия между версиями
Версия 06:33, 18 июля 2018 | Версия 06:36, 18 июля 2018 | |||
Строка 2: | Строка 2: | |||
<div class="wows_ver"><span title="Актуальная версия данных">[[Ship:Обновление {{WoWs_CurrentVersion}}|{{WoWs_CurrentVersion}}]]</span></div><div class="b-performance_title b-performance_title__header">{{#var:ship_name}}</div></div><div style="position: relative; border-bottom: 1px solid #cfcfcf"">[[Файл:{{#var:ship_name}}_wows_main.jpg|298px]]</div><div class="b-performance_position" style="font-weight: bold; border-bottom: 1px solid #cfcfcf">[[Ship:{{WoWs_Class|{{#var:s_class}}|bm}}|{{WoWs_Class|{{#var:s_class}}|bs}}]] | [[Ship:Корабли {{WoWs_Nation|{{#var:nation}}|bv}}|{{WoWs_Nation|{{#var:nation}}|bi}}]] | {{Уровень|{{#var:level}}}} ур.</div><!-- | <div class="wows_ver"><span title="Актуальная версия данных">[[Ship:Обновление {{WoWs_CurrentVersion}}|{{WoWs_CurrentVersion}}]]</span></div><div class="b-performance_title b-performance_title__header">{{#var:ship_name}}</div></div><div style="position: relative; border-bottom: 1px solid #cfcfcf"">[[Файл:{{#var:ship_name}}_wows_main.jpg|298px]]</div><div class="b-performance_position" style="font-weight: bold; border-bottom: 1px solid #cfcfcf">[[Ship:{{WoWs_Class|{{#var:s_class}}|bm}}|{{WoWs_Class|{{#var:s_class}}|bs}}]] | [[Ship:Корабли {{WoWs_Nation|{{#var:nation}}|bv}}|{{WoWs_Nation|{{#var:nation}}|bi}}]] | {{Уровень|{{#var:level}}}} ур.</div><!-- | |||
Ветка | Ветка | |||
? | -->{{#ifeq:{{#rpos:{{#var:children}}|;}}|-1|<div style="padding: 7px; text-align: center"><table cellspacing="0" style="width: 100%; text-align: center"><tr>{{#if:{{#var:ancestors}}|<td>{{#vardefine:sc_i|0}}{{#while:|{{#if:{{#explode:{{#var:ancestors}}|;|{{#var:sc_i}}}}|true}}|{{#vardefine:sc_name|{{#shipstr:{{#shipchars:{{#explode:{{#var:ancestors}}|;|{{#var:sc_i}}}}|mark}}}}}}[[Файл:{{#var:sc_name}}_icon_small.png|{{#var:sc_name}}|link=Ship:{{#var:sc_name}}]]{{#vardefine:sc_i|{{#expr:{{#var:sc_i}}+1}}}}}}</td><td>[[Ship:{{#var:sc_name}}|{{#var:sc_name}}]]</td></tr><tr><td colspan="2">[[Файл:Arrow_down.png|link=]]</td></tr><tr>}}<td><span class="b-battles-levels_interval">[[Файл:{{#var:ship_name}}_icon_small.png|link=]]</span></td><td> | + | -->{{#ifeq:{{#rpos:{{#var:children}}|;}}|-1|<div style="padding: 7px; text-align: center"><table cellspacing="0" style="width: 100%; text-align: center"><tr>{{#if:{{#var:ancestors}}|<td>{{#vardefine:sc_i|0}}{{#while:|{{#if:{{#explode:{{#var:ancestors}}|;|{{#var:sc_i}}}}|true}}|{{#vardefine:sc_name|{{#shipstr:{{#shipchars:{{#explode:{{#var:ancestors}}|;|{{#var:sc_i}}}}|mark}}}}}}[[Файл:{{#var:sc_name}}_icon_small.png|{{#var:sc_name}}|link=Ship:{{#var:sc_name}}]]{{#vardefine:sc_i|{{#expr:{{#var:sc_i}}+1}}}}}}</td><td>[[Ship:{{#var:sc_name}}|{{#var:sc_name}}]]</td></tr><tr><td colspan="2">[[Файл:Arrow_down.png|link=]]</td></tr><tr>}}<td><span class="b-battles-levels_interval">[[Файл:{{#var:ship_name}}_icon_small.png|link=]]</span></td><td>{{#var:ship_name}}</td>{{#if:{{#var:children}}|</tr><tr><td colspan="2">[[Файл:Arrow_down.png|link=]]</td></tr><tr><td>{{#vardefine:sc_i|0}}{{#while:|{{#if:{{#explode:{{#var:children}}|;|{{#var:sc_i}}}}|true}}|{{#vardefine:sc_name|{{#shipstr:{{#shipchars:{{#explode:{{#var:children}}|;|{{#var:sc_i}}}}|mark}}}}}}[[Файл:{{#var:sc_name}}_icon_small.png|{{#var:sc_name}}|link=Ship:{{#var:sc_name}}]]{{#vardefine:sc_i|{{#expr:{{#var:sc_i}}+1}}}}}}</td><td>[[Ship:{{#var:sc_name}}|{{#var:sc_name}}]]</td>}}</tr></table></div>|<div style="padding: 7px; text-align: center"><table cellspacing="0" style="width: 100%; text-align: center"><tr>{{#if:{{#var:ancestors}}|<td>{{#vardefine:sc_i|0}}{{#while:|{{#if:{{#explode:{{#var:ancestors}}|;|{{#var:sc_i}}}}|true}}|{{#vardefine:sc_name|{{#shipstr:{{#shipchars:{{#explode:{{#var:ancestors}}|;|{{#var:sc_i}}}}|mark}}}}}}[[Файл:{{#var:sc_name}}_icon_small.png|{{#var:sc_name}}|link=Ship:{{#var:sc_name}}]]{{#vardefine:sc_i|{{#expr:{{#var:sc_i}}+1}}}}}}</td><td>[[Ship:{{#var:sc_name}}|{{#var:sc_name}}]]</td></tr><tr><td colspan="2">[[Файл:Arrow_down.png|link=]]</td></tr><tr>}}<td>[[Файл:{{#var:ship_name}}_icon_small.png|link=]]</td><td><span class="b-battles-levels_interval">{{#var:ship_name}}</span></td>{{#if:{{#var:children}}|</tr><tr><td colspan="2">[[Файл:Arrow_down.png|link=]]</td></tr><tr><td colspan="2">{{#vardefine:sc_i|0}}{{#while:|{{#if:{{#explode:{{#var:children}}|;|{{#var:sc_i}}}}|true}}|{{#vardefine:sc_name|{{#shipstr:{{#shipchars:{{#explode:{{#var:children}}|;|{{#var:sc_i}}}}|mark}}}}}}[[Файл:{{#var:sc_name}}_icon_small.png|{{#var:sc_name}}|link=Ship:{{#var:sc_name}}]]{{#vardefine:sc_i|{{#expr:{{#var:sc_i}}+1}}}}}}</td>}}</tr></table></div>}}<!-- | |
Переключатель | Переключатель | |||
--><div class="center topStockSwitcher" style="border-top: 1px solid #cfcfcf"><div class="switcherCtrlBtn {{#ifeq:{{#var:ts}}|stock|active}}"><span {{#ifeq:{{#var:ts}}|top|id="toStock"}}>сток</span></div><div class="switcherCtrlBtn {{#ifeq:{{#var:ts}}|top|active}}"><span {{#ifeq:{{#var:ts}}|stock|id="toTop"}}> топ</span></div></div><!-- | --><div class="center topStockSwitcher" style="border-top: 1px solid #cfcfcf"><div class="switcherCtrlBtn {{#ifeq:{{#var:ts}}|stock|active}}"><span {{#ifeq:{{#var:ts}}|top|id="toStock"}}>сток</span></div><div class="switcherCtrlBtn {{#ifeq:{{#var:ts}}|top|active}}"><span {{#ifeq:{{#var:ts}}|stock|id="toTop"}}> топ</span></div></div><!-- |
Версия 06:36, 18 июля 2018
Категория: