Modèle:WoWs ShipsList : Différence entre versions
Version du 27 juin 2020 à 21:23 | Version du 5 juillet 2020 à 14:21 | |||
Ligne 3 : | Ligne 3 : | |||
|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> | |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>{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0| [[Ship:{{#var:sl_name}}|<span style="color:DarkGoldenRod;">{{#var:sl_name}}</span>]] {{Doubloons}}| [[Ship:{{#var:sl_name}}|{{#var:sl_name}}]]}}</center></div></div></li> | |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>{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0| [[Ship:{{#var:sl_name}}|<span style="color:DarkGoldenRod;">{{#var:sl_name}}</span>]] {{Doubloons}}| [[Ship:{{#var:sl_name}}|{{#var:sl_name}}]]}}</center></div></div></li> | |||
? | |#default=<nowiki> </nowiki><span>{{#ifexpr:{{#var:sl_i}}>0|{{{6|•}}}}} <b>{{Tier|{{#shipattr:level}}}}</b>{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0| [[Ship:{{#var:sl_name}}|<span style="color:DarkGoldenRod;">{{#var:sl_name}}</span>]]{{Doubloons}}| [[Ship:{{#var:sl_name}}|{{#var:sl_name}}]]}}</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> | + | |#default=<nowiki> </nowiki><span>{{#ifexpr:{{#var:sl_i}}>0|{{{6|•}}}}} <b>{{Tier|{{#shipattr:level}}}}</b>{{#ifexpr:{{WoWs_GD|Прем|{{#var:sl_code}}}}>0| [[Ship:{{#var:sl_name}}|<span style="color:DarkGoldenRod;">{{#var:sl_name}}</span>]]{{Doubloons}}| [[Ship:{{#var:sl_name}}|{{#var:sl_name}}]]}}</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 5 juillet 2020 à 14:21
Utilisation
{{WoWs_ShipsList| ''nation'' | ''class'' | ''tier'' | ''premium'' | ''format'' | ''parameter'' }}
- nation - navires d'une des nations suivantes :
japan;uk;france;ussr;usa;germany;pan_asia;spain;europe;netherlands;italy;commonwealth;pan_america (liste générée via le modèle {{WoWs Nation}}).
- class - navires d'une des classes suivantes :
Destroyer;Cruiser;Battleship;AirCarrier(liste générée via le modèle {{WoWs Class}}).
- tier - navires du tier précisé (en chiffre arabe).
- premium - navires premium ou non (à 1 si oui, 0 sinon)
- format - icons (doit être encadré par des balises div), gallery ou tiles(par défaut).
- parameter - pour les formats gallery et icons : taille des images. Si aucun format défini : caractères utilisés pour séparer la liste des navires.
Exemples
{{WoWs_ShipsList|europe|Destroyer}}
II Tátra • III Romulus • IV Klas Horn • V Visby • V Muavenet • VI Västerås • VI Stord • VII Skåne • VII Grom • VII Błyskawica • VII Stord '43 • VIII Öland • VIII Split • VIII Orkan • IX Östergötland • IX Lambros Katsonis • IX Velos • IX Friesland • IX Jäger • X Halland • X Gdańsk • X Småland • X Ragnar • ★ Dalarna
{{WoWs_ShipsList|usa,japan||5|||}}
V New York V Oklahoma V Texas V Omaha V Marblehead V Marblehead Lima V Rattlehead V Nicholas V Hill
{{WoWs_ShipsList|usa,japan||5|||>>>}}
V New York >>> V Oklahoma >>> V Texas >>> V Omaha >>> V Marblehead >>> V Marblehead Lima >>> V Rattlehead >>> V Nicholas >>> V Hill
{{WoWs_ShipsList|usa,japan||7|1}}
• VII Florida • VII West Virginia '44 • VII California • VII Atlanta • VII Indianapolis • VII Atlanta B • VII Boise • VII Flint • VII Sims • VII Sims B • VII Ashitaka • VII Hyūga • VII Tokachi • VII Maya • VII ARP Myōkō • VII ARP Ashigara • VII ARP Haguro • VII Southern Dragon • VII Eastern Dragon • VII ARP Nachi • VII Yūdachi
<div class="wot-frame-1">{{WoWs_ShipsList|usa||7||icons}}</div>
<div class="wot-frame-1">{{WoWs_ShipsList|usa||7||icons|107}}</div>
<div class="wot-frame-1">{{WoWs_ShipsList|usa||7||tiles}}</div>
{{WoWs_ShipsList|usa||7|0|gallery}}
VII Colorado VII New Orleans VII Helena VII Mahan
{{WoWs_ShipsList|usa||7|0|gallery|200}}
VII Colorado VII New Orleans VII Helena VII Mahan