Добро пожаловать на Леста Игры Wiki!

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

Перейти к: навигация, поиск
Версия 01:52, 18 июля 2018Версия 02:06, 18 июля 2018
Строка 6:Строка 6:
 -->{{#switch: {{#var:modes_icons|0}} -->{{#switch: {{#var:modes_icons|0}}
  | 0 = <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|{{#var:ship_name}}|link=]]</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>  | 0 = <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|{{#var:ship_name}}|link=]]</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>
? | 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></tr><tr><td>[[Файл:Arrow_down.png|link=]]</td></tr><tr>}}<td>[[Файл:{{#var:ship_name}}_icon_small.png|{{#var:ship_name}}|link=]]</td>{{#if:{{#var:children}}|</tr><tr><td>[[Файл: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>}}</tr></table></div>}}<!--+ | 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></tr><tr><td>[[Файл:Arrow_down.png|link=]]{{#var:children}}</td></tr><tr>}}<td>[[Файл:{{#var:ship_name}}_icon_small.png|{{#var:ship_name}}|link=]]</td>{{#if:{{#var:children}}|</tr><tr><td>[[Файл: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>}}</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"}}>&nbsp;топ</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"}}>&nbsp;топ</span></div></div><!--

Версия 02:06, 18 июля 2018

en:Template:WoWs_SC
Категория: