Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Legends ListWhile2"

Jump to: navigation, search
Revision as of 22:31, 2 May 2024Revision as of 17:13, 16 May 2024
Line 11:Line 11:
 * Creates an image with a page link above a text link to the same page link. * Creates an image with a page link above a text link to the same page link.
 * Separates each variable iteration with a page break in an inline-block div. * 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_ShipList
 <br> <br>
  

Revision as of 17:13, 16 May 2024

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 above a text link to the same page link.
  • 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_ShipList


Example:

Legends_Cruiser_Icon.png  USA Cruisers

Legends_Omaha.png
IV  Omaha
Legends_Marblehead.png
Legends_Rattlehead.png
Legends_Pensacola.png
Legends_Dallas.png
V  Dallas
Legends_Helena.png
VI  Helena
Legends_Des_Moines.png
Des Moines
Legends_Worcester.png
Worcester
Legends_Alaska.png
Alaska