Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Legends ShipData"

Jump to: navigation, search
Revision as of 20:58, 25 May 2024Revision as of 21:14, 25 May 2024
Line 1:Line 1:
 <includeonly>{{#switch:{{{1|}}} <includeonly>{{#switch:{{{1|}}}
 <!--**************** USA: Show these categories: ****************--> <!--**************** USA: Show these categories: ****************-->
 +|usa_show_legendary_ships=yes
 |usa_cc_show_ships=yes |usa_cc_show_ships=yes
 |usa_cc_tt_show_ships=yes |usa_cc_tt_show_ships=yes
Line 66:Line 67:
 |usa_cv_tt_tier9=Midway, |usa_cv_tt_tier9=Midway,
 <!--**************** Japan: Show these categories: ****************--> <!--**************** Japan: Show these categories: ****************-->
 +|ijn_show_legendary_ships=yes
 |ijn_cc_show_ships=yes |ijn_cc_show_ships=yes
 |ijn_cc_tt_show_ships=yes |ijn_cc_tt_show_ships=yes
Line 131:Line 133:
 |ijn_cv_tt_tier9=Hakuryū, |ijn_cv_tt_tier9=Hakuryū,
 <!--**************** UK: Show these categories: ****************--> <!--**************** UK: Show these categories: ****************-->
 +|uk_show_legendary_ships=yes
 |uk_cc_show_ships=yes |uk_cc_show_ships=yes
 |uk_cc_tt_show_ships=yes |uk_cc_tt_show_ships=yes
Line 196:Line 199:
 |uk_cv_tt_tier9= |uk_cv_tt_tier9=
 <!--**************** German: Show these categories: ****************--> <!--**************** German: Show these categories: ****************-->
 +|ger_show_legendary_ships=yes
 |ger_cc_show_ships=yes |ger_cc_show_ships=yes
 |ger_cc_tt_show_ships=yes |ger_cc_tt_show_ships=yes
Line 261:Line 265:
 |ger_cv_tt_tier9= |ger_cv_tt_tier9=
 <!--**************** France: Show these categories: ****************--> <!--**************** France: Show these categories: ****************-->
 +|fr_show_legendary_ships=yes
 |fr_cc_show_ships=yes |fr_cc_show_ships=yes
 |fr_cc_tt_show_ships=yes |fr_cc_tt_show_ships=yes
Line 326:Line 331:
 |fr_cv_tt_tier9= |fr_cv_tt_tier9=
 <!--**************** USSR: Show these categories: ****************--> <!--**************** USSR: Show these categories: ****************-->
 +|ussr_show_legendary_ships=yes
 |ussr_cc_show_ships=yes |ussr_cc_show_ships=yes
 |ussr_cc_tt_show_ships=yes |ussr_cc_tt_show_ships=yes
Line 391:Line 397:
 |ussr_cv_tt_tier9= |ussr_cv_tt_tier9=
 <!--**************** Italy: Show these categories: ****************--> <!--**************** Italy: Show these categories: ****************-->
 +|it_show_legendary_ships=yes
 |it_cc_show_ships=yes |it_cc_show_ships=yes
 |it_cc_tt_show_ships=yes |it_cc_tt_show_ships=yes
Line 456:Line 463:
 |it_cv_tt_tier9= |it_cv_tt_tier9=
 <!--**************** Pan-America: Show these categories: ****************--> <!--**************** Pan-America: Show these categories: ****************-->
 +|peu_show_legendary_ships=yes
 |peu_cc_show_ships=yes |peu_cc_show_ships=yes
 |peu_cc_tt_show_ships=yes |peu_cc_tt_show_ships=yes
Line 587:Line 595:
 |asia_cv_tt_tier9= |asia_cv_tt_tier9=
 <!--**************** Commonwealth: Show these categories: ****************--> <!--**************** Commonwealth: Show these categories: ****************-->
 +|cmw_show_legendary_ships=yes
 |cmw_cc_show_ships=yes |cmw_cc_show_ships=yes
 |cmw_cc_tt_show_ships= |cmw_cc_tt_show_ships=

Revision as of 21:14, 25 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