Welcome to Wargaming.net Wiki!
Variants

Template:Legends ListWhile2

Jump to: navigation, search

A "while" statement is like saying, "keep doing this action until a certain condition is no longer true." This template processes a comma separated list, one item at a time, until there are no more items in the list.

  • Creates an image with a page link and a text link to the same page.
  • Separates each variable iteration with a page break in an inline-block div.
  • The primary use is to create ship list on pages based on names in Template:Legends_ShipData


Example:

Legends_Cruiser_Icon.png  USA Cruisers

Legends_Omaha.png
IV   Omaha
Legends_Marblehead.png
IV   Marblehead
Legends_Rattlehead.png
IV   Rattlehead
Legends_Pensacola.png
V   Pensacola
Legends_Dallas.png
V   Dallas
Legends_New_Orleans.png
Legends_Helena.png
VI   Helena
Legends_Alaska.png
Legends_Legendary_Icon.png
  Alaska