Welcome to Wargaming.net Wiki!
Variants

Template:Legends ShipData

Jump to: navigation, search
Documentation‎

Usage

This templete data will add ships to the following pages:

On this template, there are 2 sections for each nation: "Show" and "List"

Show Category Instructions:

  • If show is blank for a category, then that category will NOT display on the pages listed above. For example, if a Legends Update adds Italian Tech Tree CVs, then you would need to add "yes" to show tech tree CVs; and then add the CV ship name(s) to the list section as described below.

Ship List Instructions:

  • Ship Lists are segmented by Nation, Class and Type (i.e., TechTree, Legendary, Premium) and Tier.
  • For example, US, Cruiser, Premium, Tier6 ships are listed as: |usa_cc_pr_tier6=Atlanta,Atlanta B,Boise,Flint,Indianapolis,Indianapolis B
  • The ship list names must be separated with a comma no spaces between ship names.
  • A space is ok within the ship name, for example: Ship Name1,ShipName2,Ship Name3


Examples of use

The following examples use a whileloop template to iterate a display for each ship in the list:
{{Legends_ListWhile|Tier=t6|list={{Legends_ShipData|usa_cc_tt_tier6|}}}}
Typically an if statement is used to only display the list if content exists:
{{#if:{{Legends_ShipData|usa_cc_tt_tier6}}}|{{Legends_ListWhile|Tier=t6|list={{Legends_ShipData|usa_cc_tt_tier6|}}}}}}


Legends_Cruiser_Icon.png  USA Cruisers

IAlbany,  
IISt. Louis,  
IIIPhoenix,  
IVOmaha,  
VPensacola,  
VDallas,  
VINew Orleans,  
VIHelena,  
VIIBaltimore,  
VIICleveland,  


  • Example 2: A Ship List for USA-Cruiser-TechTree-Tier1-7 as images and links
  • This example uses Template:Legends_ListWhile2, but sources from the same ShipData list

Legends_Cruiser_Icon.png  USA Cruisers

Legends_Albany.png
I   Albany
Legends_St._Louis.png
II   St. Louis
Legends_Phoenix.png
III   Phoenix
Legends_Omaha.png
IV   Omaha
Legends_Pensacola.png
V   Pensacola
Legends_Dallas.png
V   Dallas
Legends_New_Orleans.png
Legends_Helena.png
VI   Helena
Legends_Baltimore.png
VII   Baltimore
Legends_Cleveland.png
VII   Cleveland