Bienvenue sur le Wiki de Wargaming.net !
Variantes

Modèle:WoWs ShipsList : Différence entre versions

Aller à : navigation, rechercher
Version du 16 juin 2016 à 15:32
Page créée avec « <includeonly>{{#vardefine:sl_list|{{#shiplist:ships|{{#if:{{{1|}}}|nation={{{1}}}}};{{#if:{{{2|}}}|class={{{2}}}}};{{#if:{{{3|}}}|level={{{3}}}}}|level}}}}{{#vardefine:sl_... »
 
Version du 16 juin 2016 à 18:21
Page blanchie
Ligne 1 :Ligne 1 :
?<includeonly>{{#vardefine:sl_list|{{#shiplist:ships|{{#if:{{{1|}}}|nation={{{1}}}}};{{#if:{{{2|}}}|class={{{2}}}}};{{#if:{{{3|}}}|level={{{3}}}}}|level}}}}{{#vardefine:sl_i|0}}{{#vardefine:sl_img_size|{{{6|235}}}}}{{#vardefine:sl_rlist|{{#while:|{{#if:{{#explode:{{#var:sl_list}}|;|{{#var:sl_i}}}}|true}}|{{#vardefine:sl_code|{{#explode:{{#var:sl_list}}|;|{{#var:sl_i}}}}}}{{#vardefine:sl_name|{{#shipstr:{{#shipchars:{{#var:sl_code}}|mark}}}}}}{{#ifeq:{{#if:{{{4|}}}|{{#ifeq:{{{4}}}|0|{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0|0|1}}|{{#ifeq:{{{4}}}|1|{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0|1|0}}|0}}}}|1}}|1|{{#switch:{{{5|text}}}+ 
?|icons=<div class="tleft" style="clear:none;">[[File:Ship_{{#var:sl_code}}.png|{{{6|214}}}px|link=Ship:{{#var:sl_name}}]]<br/><center><span style="color:#AD7A07;"><b>{{Tier|{{#shipattr:level}}}}</b></span>&nbsp;[[Ship:{{#var:sl_name}}|{{#var:sl_name}}]]{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0|&nbsp;{{Doubloons}}}}</center></div>+
?|tiles=<div class="b-description-img b-description-img__indent b-description-img__single"><div class="b-description-img_flag b-description-img_flag__{{lc:{{#shipattr:nation}}}}"></div><div class="l-description-img_class"><span class="b-description-img_type b-description-img_type__{{lc:{{#shipattr:class}}}}{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0|-premium}}"></span><span class="b-description-img_class">{{Tier|{{#shipattr:level}}}}</span></div><div class="b-description-img_vehicle">[[File:Ship_{{#var:sl_code}}.png|160px|link=Ship:{{#var:sl_name}}|left]]</div><div class="l-description-img_price"><span class="b-description-img_price{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0|<nowiki> </nowiki>b-description-img_price__gold}}">{{#var:sl_name}}</span></div>{{#if:{{{rotator|}}}|<a href="#" class="b-description-img_360"></a>}}</div>+
?|gallery=<li class="gallerybox" style="width: {{#var:sl_img_size}}px"><div style="width: {{#var:sl_img_size}}px"><div class="thumb" style="width: {{#expr:{{#var:sl_img_size}}-5}}px; height:{{#expr:({{#var:sl_img_size}}-5)*0.625}}px;"><div style="margin:13px auto;">[[File:{{#var:sl_name}}_wows_main.jpg|{{#expr:{{#var:sl_img_size}}-5}}px]]</div></div><div class="gallerytext"><center><span class="b-tech-nav_icon b-tech-nav_icon__{{lc:{{#shipattr:class}}}}"></span><span style="color:#AD7A07;"><b>{{Tier|{{#shipattr:level}}}}</b></span>&nbsp;[[Ship:{{#var:sl_name}}|{{#var:sl_name}}]]{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0|&nbsp;{{Doubloons}}}}</center></div></div></li>+
?|#default=<nowiki> </nowiki><span>{{#ifexpr:{{#var:sl_i}}>0|{{{6|•}}}}}&nbsp;<b>{{Tier|{{#shipattr:level}}}}</b>&nbsp;[[Ship:{{#var:sl_name}}|{{#var:sl_name}}]]{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0|{{Doubloons}}}}</span>}}}}{{#vardefine:sl_i|{{#expr:{{#var:sl_i}}+1}}}}}}}}{{#switch:{{{5|text}}}|gallery=<ul class="gallery">{{#var:sl_rlist}}</ul>|#default={{#var:sl_rlist}}}}</includeonly><noinclude>{{Doc}}[[Category:WoWs templates]]<noinclude>+

Version du 16 juin 2016 à 18:21