Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Legends ShipData"

Jump to: navigation, search
Revision as of 20:38, 27 April 2024Revision as of 12:36, 1 May 2024
Line 184:Line 184:
 |uk_bb_tt_tier3=Orion, |uk_bb_tt_tier3=Orion,
 |uk_bb_pr_tier3=Agincourt,Bellerophon, |uk_bb_pr_tier3=Agincourt,Bellerophon,
?|uk_bb_tt_tier4=Iron Duke,+|uk_bb_tt_tier4=Iron Duke, Tiger
?|uk_bb_pr_tier4=Tiger,+|uk_bb_pr_tier4=
?|uk_bb_tt_tier5=Queen Elizabeth,+|uk_bb_tt_tier5=Queen Elizabeth, Renown
?|uk_bb_pr_tier5=Renown,AL Queen Elizabeth,Warspite,Warspite B,Repulse,+|uk_bb_pr_tier5=AL Queen Elizabeth,Warspite,Warspite B,Repulse,
?|uk_bb_tt_tier6=King George V,+|uk_bb_tt_tier6=King George V, Rooke
?|uk_bb_pr_tier6=Rooke,Duke of York,Nelson,Nelson W,Hood,Collingwood,Resistance,+|uk_bb_pr_tier6=Duke of York,Nelson,Nelson W,Hood,Collingwood,Resistance,
?|uk_bb_tt_tier7=Vanguard,+|uk_bb_tt_tier7=Vanguard,Hawke
?|uk_bb_pr_tier7=Hawke,Monarch,Lion,+|uk_bb_pr_tier7=Monarch,Lion,
?|uk_bb_tt_tier8=Temeraire,+|uk_bb_tt_tier8=Temeraire,Duncan
?|uk_bb_pr_tier8=Duncan,Marlborough,+|uk_bb_pr_tier8=Marlborough,
 |uk_bb_tt_tier9=Conqueror, |uk_bb_tt_tier9=Conqueror,
 |uk_cv_tt_tier3=Hermes, |uk_cv_tt_tier3=Hermes,
Line 290:Line 290:
 |fr_cc_tt_tier5=La Galissonnière, |fr_cc_tt_tier5=La Galissonnière,
 |fr_cc_pr_tier5=De Grasse, |fr_cc_pr_tier5=De Grasse,
?|fr_cc_tt_tier6=Algérie,+|fr_cc_tt_tier6=Algérie, Toulon
?|fr_cc_pr_tier6=Toulon,Algérie W,Charlemagne,+|fr_cc_pr_tier6=Algérie W,Charlemagne,
?|fr_cc_tt_tier7=Charles Martel,+|fr_cc_tt_tier7=Charles Martel, Cherbourg
?|fr_cc_pr_tier7=Cherbourg,Bayard,+|fr_cc_pr_tier7=Bayard,
?|fr_cc_tt_tier8=Saint-Louis,+|fr_cc_tt_tier8=Saint-Louis,Brest
?|fr_cc_pr_tier8=Brest,Carnot,+|fr_cc_pr_tier8=Carnot,
 |fr_cc_tt_tier9=Colbert,Henri IV, |fr_cc_tt_tier9=Colbert,Henri IV,
 |fr_dd_tt_tier2=Fusilier, |fr_dd_tt_tier2=Fusilier,

Revision as of 12:36, 1 May 2024


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,
  • The last ship name in a row must also end with a comma.


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

I  Albany,  
II  St. Louis,  
III  Phoenix,  
IV  Omaha,  
V  Pensacola,  
V  Dallas,  
VI  New Orleans,  
VI  Helena,  
VII  Baltimore,  
VII  Cleveland,  


  • 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
Legends_Dallas.png
V  Dallas
Legends_Helena.png
VI  Helena
Legends_Baltimore.png
VII  Baltimore
Legends_Cleveland.png
VII  Cleveland