Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Legends ShipList"

Jump to: navigation, search
Revision as of 22:03, 22 May 2019
Created the template
 
Revision as of 22:12, 22 May 2019
Line 25:Line 25:
 <td width="14%"><!-- Tier I --><table>{{#while:|{{#explode:{{{tier1|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier1|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]] <td width="14%"><!-- Tier I --><table>{{#while:|{{#explode:{{{tier1|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier1|}}}|,|{{#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>+}}</table></td>{{#vardefine:i|0}}
 <td width="14%"><!-- Tier II --><table>{{#while:|{{#explode:{{{tier2|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier2|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]] <td width="14%"><!-- Tier II --><table>{{#while:|{{#explode:{{{tier2|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier2|}}}|,|{{#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>+}}</table></td>{{#vardefine:i|0}}
 <td width="14%"><!-- Tier III --><table>{{#while:|{{#explode:{{{tier3|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier3|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]] <td width="14%"><!-- Tier III --><table>{{#while:|{{#explode:{{{tier3|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier3|}}}|,|{{#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>+}}</table></td>{{#vardefine:i|0}}
 <td width="14%"><!-- Tier IV --><table>{{#while:|{{#explode:{{{tier4|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier4|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]] <td width="14%"><!-- Tier IV --><table>{{#while:|{{#explode:{{{tier4|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier4|}}}|,|{{#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>+}}</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:{{{tier6|}}}|,|{{#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>+}}</table></td>{{#vardefine:i|0}}
 <td width="14%"><!-- Tier VI --><table>{{#while:|{{#explode:{{{tier6|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier6|}}}|,|{{#var:i}}}}}}<tr><td>[[File:Legends_{{#var:str}}.png|link=Navy:{{#var:str}}|125px]] <td width="14%"><!-- Tier VI --><table>{{#while:|{{#explode:{{{tier6|}}}|,|{{#var:i}}}}|{{#vardefine:str|{{#explode:{{{tier6|}}}|,|{{#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>+}}</table></td>{{#vardefine:i|0}}
 <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>+}}</table></td>{{#vardefine:i|0}}
 </tr> </tr>
 </table> </table>

Revision as of 22:12, 22 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: