Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Legends ShipList"

Jump to: navigation, search
Revision as of 14:09, 23 May 2019Revision as of 14:34, 23 May 2019
Line 1:Line 1:
 <includeonly> <includeonly>
 {{#vardefine:i|0}} {{#vardefine:i|0}}
?<div class="b-popup"><div class="b-popup_head js-tech-nav_head"><div><h2>[[File:WoWsLIconBlack.png|link=|25px]]{{{section}}}</h2></div><span class="b-tech-nav_arrow"></span></div><div class="b-popup_content" style="display:none;"><div>+{{#vardefine:ico|{{Legends_ParamList|{{{section}}}|flag}}}}
 +<div class="b-popup"><div class="b-popup_head js-tech-nav_head"><div><h2>{{#if:{{#var:ico}}|{{#var:ico}}|[[File:WoWsLIconBlack.png|link=|25px]]}}{{{section}}}</h2></div><span class="b-tech-nav_arrow"></span></div><div class="b-popup_content" style="display:none;"><div>
 <!--If no text for Gameplay is given, the section gameplay won't appear--> <!--If no text for Gameplay is given, the section gameplay won't appear-->
?{{AnnoWiki |content={{#if:{{Legends_ParamList|{{{section|}}}|icon}}|{{Legends_ParamList|{{{section}}}|icon}}}}{{#if:{{{text|}}}|<h2 class="b-heading2 b-heading2__noindent" style="margin-top: 2px">Gameplay</h2>+{{#vardefine:img|{{Legends_ParamList|{{{section|}}}|icon}}}}
 +{{AnnoWiki |content={{#if:{{#var:img}}|{{#var:img}}}}{{#if:{{{text|}}}|<h2 class="b-heading2 b-heading2__noindent" style="margin-top: 2px">Gameplay</h2>
 +<!-- Provides summary of the gameplay traits and unique aspects of this particular nation's Destroyer line; give some examples and inform the player how to make the most of the ships! -->
 {{{text|}}} {{{text|}}}
 <br><br> <br><br>
Line 42:Line 45:
 <td width="14%"><!-- Tier VII --><table>{{#while:|{{#explode:{{{tier7|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier7|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]] <td width="14%"><!-- Tier VII --><table>{{#while:|{{#explode:{{{tier7|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier7|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]]
 [[Navy:{{#var:str}}|{{#var:str}}]]</td></tr>{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} [[Navy:{{#var:str}}|{{#var:str}}]]</td></tr>{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
?}}</table></td>{{#vardefine:i|0}}</tr></table>}}</div></div></div></includeonly>+}}</table></td>{{#vardefine:i|0}}
 +</tr>
 +</table>
 +}}
 +</div></div></div>
 +</includeonly>
 <noinclude>{{doc}}[[Category:WoWsL-templates]]</noinclude> <noinclude>{{doc}}[[Category:WoWsL-templates]]</noinclude>

Revision as of 14:34, 23 May 2019

Documentation‎

Usage:

{{Legends_ShipList
|section=
|text=
|tier1=
|tier2=
|tier3=
|tier4=
|tier5=
|tier6=
|tier7=
}}

Important: Section should contain only one word! Available are Cruisers, Battleships, Destroyers and Aircraft Carriers.
For each tier a comma separated list of ships might be inserted. Ship names have to be spelled correct, otherwise neither the ship link nor the image will be displayed correct. The ships have to be separated by commas only, there must be no extra space except if it is part of the ship's name!

Category: