Difference between revisions of "Template:Legends ShipList"
Revision as of 22:44, 22 May 2019 | Latest revision as of 08:41, 14 March 2024 | |||
68 intermediate revisions by 4 users not shown | ||||
Line 1: | Line 1: | |||
? | <includeonly> | + | <includeonly>{{#vardefine:i|0}}{{#vardefine:ico|{{Legends_ParamList|{{{section}}}|flag}}}}<div class="b-popup"><div class="b-popup_headx js-tech-nav_headx"><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:inline;"><div> | |
? | {{#vardefine:i|0}} | + | ||
? | <div class="b-popup"><div class="b- | + | ||
<!--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--> | |||
? | + | {{#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! --> | <!-- 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|}}} | |||
? | ||||
}} | }} | |||
<!--table for the shiplist--> | <!--table for the shiplist--> | |||
<h2 class="b-heading2 b-heading2__noindent" style="margin-top: 2px">Ships</h2> | <h2 class="b-heading2 b-heading2__noindent" style="margin-top: 2px">Ships</h2> | |||
? | <table> | + | <div style="width:100%;overflow:auto; display: flex; align-items: flex-start;"><table class="legends-ship-list2"> | |
<tr> | <tr> | |||
? | <th>Tier I</th> | + | {{#if:{{{tier1|}}}|<th>Tier I</th>}} | |
? | <th>Tier II</th> | + | {{#if:{{{tier2|}}}|<th>Tier II</th>}} | |
? | <th>Tier III</th> | + | {{#if:{{{tier3|}}}|<th>Tier III</th>}} | |
? | <th>Tier IV</th> | + | {{#if:{{{tier4|}}}|<th>Tier IV</th>}} | |
? | <th>Tier V</th> | + | {{#if:{{{tier5|}}}|<th>Tier V</th>}} | |
? | <th>Tier VI</th> | + | {{#if:{{{tier6|}}}|<th>Tier VI</th>}} | |
? | <th>Tier VII</th> | + | {{#if:{{{tier7|}}}|<th>Tier VII</th>}} | |
+ | {{#if:{{{tier8|}}}|<th>Tier VIII</th>}} | |||
+ | {{#if:{{{tier9|}}}|<th>Legendary</th>}} | |||
</tr> | </tr> | |||
<!--all ships have to be inserted below. A comma separated list is required, no white-spaces allowed! | <!--all ships have to be inserted below. A comma separated list is required, no white-spaces allowed! | |||
The while-loop creates a new table-row for every single element of the list and displays the image and a link to the ship. No check wether these ship names are correct or not!--> | The while-loop creates a new table-row for every single element of the list and displays the image and a link to the ship. No check wether these ship names are correct or not!--> | |||
<tr> | <tr> | |||
? | <td width=" | + | {{#if:{{{tier1|}}}|<td width="11%"><!-- Tier I --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier1|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier1|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
[[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=" | + | {{#if:{{{tier2|}}}|<td width="11%"><!-- Tier II --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier2|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier2|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
[[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=" | + | {{#if:{{{tier3|}}}|<td width="11%"><!-- Tier III --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier3|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier3|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
[[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=" | + | {{#if:{{{tier4|}}}|<td width="11%"><!-- Tier IV --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier4|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier4|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
[[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=" | + | {{#if:{{{tier5|}}}|<td width="11%"><!-- Tier V --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier5|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier5|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
[[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=" | + | {{#if:{{{tier6|}}}|<td width="11%"><!-- Tier VI --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier6|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier6|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
[[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=" | + | {{#if:{{{tier7|}}}|<td width="11%"><!-- Tier VII --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier7|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier7|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
[[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}}}} | |
? | </tr> | + | {{#if:{{{tier8|}}}|<td width="11%"><!-- Tier VIII --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier8|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier8|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
? | </table> | + | [[Navy:{{#var:str}}|{{#var:str}}]]</td></tr>{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | |
? | }} | + | }}</table></td>{{#vardefine:i|0}}}} | |
? | </div></div></div> | + | {{#if:{{{tier9|}}}|<td width="11%"><!-- Legendary --><table class="legends-ship-list-sub">{{#while:|{{#explode:{{{tier9|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier9|}}}|,|{{#var:i}}}}}}<tr><td style="text-align: center;">[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|110px]]<br> | |
? | </includeonly> | + | [[Navy:{{#var:str}}|{{#var:str}}]]</td></tr>{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | |
? | <noinclude>{{doc}}[[Category: | + | }}</table></td>{{#vardefine:i|0}}}}</tr></table></div>}}</div></div></div></includeonly> | |
+ | <noinclude>{{doc}}[[Category:Legends-templates]]</noinclude> |
Latest revision as of 08:41, 14 March 2024
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: