Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Legends ShipList"

Jump to: navigation, search
Revision as of 22:44, 22 May 2019Revision as of 22:51, 22 May 2019
Line 3:Line 3:
 <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> <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>
 <!--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>+{{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>
 <!-- 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! --> <!-- 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|}}}
Line 35:Line 35:
 [[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}} }}</table></td>{{#vardefine:i|0}}
?<td width="14%"><!-- Tier V --><table>{{#while:|{{#explode:{{{tier5|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier6|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]]+<td width="14%"><!-- Tier V --><table>{{#while:|{{#explode:{{{tier5|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier5|}}}|,|{{#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}} }}</table></td>{{#vardefine:i|0}}

Revision as of 22:51, 22 May 2019

Documentation‎

Usage:

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

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: