Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:TankData"

Jump to: navigation, search
Revision as of 19:03, 23 October 2016Latest revision as of 16:47, 3 July 2019
Undo revision 285357 by keep_on_trying:ru (talk)
 
12 intermediate revisions by 3 users not shown
Line 18:Line 18:
  |china = China  |china = China
  |japan = Japan  |japan = Japan
? |czech = Czechoslovakia+ |czech = Czech
  |sweden = Sweden  |sweden = Sweden
 + |italy = Italy
 + |poland = Poland
 }}}} }}}}
 {{#vardefine:nation2|{{#switch:{{#var:nation}} {{#vardefine:nation2|{{#switch:{{#var:nation}}
Line 29:Line 31:
  |China = Chinese  |China = Chinese
  |Japan = Japanese  |Japan = Japanese
? |Czech = Czech+ |Czech = Czechoslovakian
? |Czechoslovakia = Czech+
  |Sweden = Swedish  |Sweden = Swedish
 + |Italy = Italian
 + |Poland = Polish
 }}}} }}}}
 {{#vardefine:level|{{#combatchars:{{#var:tank}}|level}}}} {{#vardefine:level|{{#combatchars:{{#var:tank}}|level}}}}
Line 112:Line 115:
 * History}} * History}}
 }}{{#if:{{{HistoricalGallery|}}}||[[Category:Append: Historical Gallery]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}} }}{{#if:{{{HistoricalGallery|}}}||[[Category:Append: Historical Gallery]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* Historical Gallery}}}}{{#if:{{{Ref_references|}}}||{{#if:{{{Ref_sources|}}}||{{#if:{{{Ref_links|}}}||[[Category:Append: Sources and External Links]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}+* Historical Gallery}}}}{{#if:{{{Ref_references|}}}||{{#if:{{{Ref_sources|}}}||{{#if:{{{Ref_links|}}}||[[Category:Append: Sources and External Links]]}}}}
?* Sources and External Links}}}}}}+}}{{#ifeq:{{#var:append}}|1|{{Append|{{#var:appendContent}}}}}}
?}}{{#ifeq:{{#var:append}}|1|<div class="b-status b-status__info">{{Append|{{AppendContentNavbar|{{#var:appendContent}}}}}}</div>}}+
 {{Sidebar {{Sidebar
 |name={{#var:name}} |name={{#var:name}}
 |shortname={{#var:tank}} |shortname={{#var:tank}}
?|nation=[[{{#var:nation}}]]+|nation={{#var:nation}}
 |premium={{#ifeq:{{#var:premium}}|Premium|yes|no}} |premium={{#ifeq:{{#var:premium}}|Premium|yes|no}}
 |notInShop={{#var:gift}} |notInShop={{#var:gift}}
?|class=[[{{#var:class}}]]+|class={{#var:class}}
 |tier={{#var:level}} |tier={{#var:level}}
 |cost={{formatnum:{{#combatchars:{{#var:tank}}|price}}}} |cost={{formatnum:{{#combatchars:{{#var:tank}}|price}}}}
Line 214:Line 216:
 |SubArc_6_Elv={{{Sidebar_SubArc_6_Elv|}}} |SubArc_6_Elv={{{Sidebar_SubArc_6_Elv|}}}
 }} }}
?{{TankDescription|{{Flag|{{#var:nation}}|{{#var:tank}}}}<p>The '''{{#var:name}}''' is a{{#ifeq:{{#var:nation2}}|American|n|}} [[{{#var:nation}}|{{#var:nation2}}]] tier {{#var:level}}{{#var:premiumLink}} {{#var:classLink}}. {{#ifeq:{{#var:gift}}|yes|{{#var:giftDesc}}}}</p><p>{{#wotstr:{{#combatchars:{{#var:tank}}|description}}}}</p><p>{{{1|}}}</p>{{#ifeq:{{#var:premium}}|Premium||<p>{{#var:children}}</p>}}}}+{{TankDescription|{{Flag|{{#var:nation}}|{{#var:tank}}}}<p>The '''{{#var:name}}''' is a{{#ifeq:{{#var:nation2}}|American|n|}}{{#ifeq:{{#var:nation2}}|Italian|n|}} [[{{#var:nation}}|{{#var:nation2}}]] tier {{#var:level}}{{#var:premiumLink}} {{#var:classLink}}. {{#ifeq:{{#var:gift}}|yes|{{#var:giftDesc}}}}</p><p>{{#wotstr:{{#combatchars:{{#var:tank}}|description}}}}</p><p>{{{1|}}}</p>{{#ifeq:{{#var:premium}}|Premium||<p>{{#var:children}}</p>}}}}
?<div class="b-wiki-panel">+ 
 {{Popup {{Popup
 |header=<h3>Modules / Available Equipment and Consumables</h3> |header=<h3>Modules / Available Equipment and Consumables</h3>
Line 274:Line 276:
 Japan#{{#gw_vehicle_list:wot: nation = japan | class = {{#var:classCode}} | order = level | style = text | divider = • }}| Japan#{{#gw_vehicle_list:wot: nation = japan | class = {{#var:classCode}} | order = level | style = text | divider = • }}|
 Czechoslovakia#{{#gw_vehicle_list:wot: nation = czech | class = {{#var:classCode}} | order = level | style = text | divider = • }}| Czechoslovakia#{{#gw_vehicle_list:wot: nation = czech | class = {{#var:classCode}} | order = level | style = text | divider = • }}|
?Sweden#{{#gw_vehicle_list:wot: nation = sweden | class = {{#var:classCode}} | order = level | style = text | divider = • }}+Sweden#{{#gw_vehicle_list:wot: nation = sweden | class = {{#var:classCode}} | order = level | style = text | divider = • }}|
 +Italy#{{#gw_vehicle_list:wot: nation = italy | class = {{#var:classCode}} | order = level | style = text | divider = • }} |
 +Poland#{{#gw_vehicle_list:wot: nation = poland | class = {{#var:classCode}} | order = level | style = text | divider = • }}
 }} }}
 {{#ifeq:{{#var:premium}}|Premium {{#ifeq:{{#var:premium}}|Premium
Line 287:Line 291:
 Japan#{{#gw_vehicle_list:wot: nation = japan | gold = 1 | order = level | style = text | divider = • }}| Japan#{{#gw_vehicle_list:wot: nation = japan | gold = 1 | order = level | style = text | divider = • }}|
 Czechoslovakia#{{#gw_vehicle_list:wot: nation = czech | gold = 1 | order = level | style = text | divider = • }}| Czechoslovakia#{{#gw_vehicle_list:wot: nation = czech | gold = 1 | order = level | style = text | divider = • }}|
?Sweden#{{#gw_vehicle_list:wot: nation = sweden | gold = 1 | order = level | style = text | divider = • }}+Sweden#{{#gw_vehicle_list:wot: nation = sweden | gold = 1 | order = level | style = text | divider = • }}|
 +Italy#{{#gw_vehicle_list:wot: nation = italy | gold = 1 | order = level | style = text | divider = • }}|
 +Poland#{{#gw_vehicle_list:wot: nation = poland | gold = 1 | order = level | style = text | divider = • }}
 }} }}
?|}}{{OtherLangs}}+}}
 +{{OtherLangs}}
 </div> </div>
 </includeonly><noinclude> </includeonly><noinclude>

Latest revision as of 16:47, 3 July 2019

Usage

  • {{TankData This places the core panels supported by the auto gen data.
  • |Tank= Specify the tank code. See Notes above. Required for CombatChars automation. If not specified, it will default to the page's name.
  • | This leaves a field to place optional custom text that is included in the description. Will not place {{append}} if left blank.
  • |InTheGame_pros= Pros for the Player Opinion panel. Please use * and a new line for each "pro". Usage of "above average" will be removed. Will place {{append}} if left blank.
  • |InTheGame_cons= Cons for the Player Opinion panel. Please use * and a new line for each "con". Usage of "below average" will be removed. Will place {{append}} if left blank.
  • |InTheGame_performance= General area for in game tank performance info for the Player Opinion panel. Please use regular paragraph structure for this area. You can use images and tables as needed. Will place {{append}} if left blank.
  • |InTheGame_research= Optional general area for early research info for the Player Opinion panel. For those tanks where it is not obvious, use this area to detail a suggested research path. A good use for this area is to mention if you need to research tracks before a gun upgrade, etc. Will not place {{append}} if left blank.
  • |InTheGame_equipment= Suggested equipment list for the Player Opinion panel using the Template:EquipmentPanel. Please use the format found there. Will place {{append}} if left blank.
  • |Gallery= Additional image content for the gallery panel. The four screenshots ({{PAGENAME}}_front_left.jpg etc.) are added automatically. Place each image on a new line. Will place {{append}} if left blank and none of the four screenshots if found.
  • |History= General area for tank history info. Please use regular paragraph structure for this area. You can use images and tables as needed. Will place {{append}} if left blank.
  • |HistoricalGallery= Image content for the historical gallery panel. Place each image on a new line. Will place {{append}} if left blank.
  • |Ref_references= see below
  • |Ref_sources= see below
  • |Ref_links= see below
Panels for references, sources and external links. We don't have a reference list template ( {{reflist}} ) so place any references manually with [number] in the text. Then in the References section please use # (the actual # symbol, not a number) and a new line for each reference cited. If not referenced in the text with a [number] leave References blank and use Sources and/or External Links to cite where you found the info used in the article. Place a book's or other offline resource's bibliography info in Sources. For online resources use External Links. Please use * and a new line for each entry. If left blank after the = will place {{append}}
  • }}

For ease of reading while in the edit panel please place anything you add to the sections on the line below the = (except for the first | and the sources).

Template

{{TankData|Tank= ''Please leave space after ''='' blank except in specific circumstances''

| ''Free text - intro section''

|Gallery= ''Gallery of (ingame) tank images''

|InTheGame_pros= ''Short highlights of most useful attributes of tank''

|InTheGame_cons= ''Short highlights of most challenging attributes of tank''

|InTheGame_performance= ''Free space for description of how a tank plays '''in its elite configuration'''''

|InTheGame_research= ''Space to overview research progression and any major aspects of the experience while advancing the vehicle''

|InTheGame_equipment=

|InTheGame_Equipment_Builds=

|InTheGame_builds=
(both will activate the same section)

|External_Reviews= ''For external review links (Youtube, etc)''

|History= ''History of the tank''

|HistoricalGallery= ''Historical images of the tank''

|Ref_references=

|Ref_sources=

|Ref_links=

}}

Cut dried version for reasons of laziness

{{TankData|Tank= 

| 

|Gallery= 

|InTheGame_pros= 

|InTheGame_cons= 

|InTheGame_performance= 

|InTheGame_research= 

|InTheGame_equipment=

|InTheGame_Equipment_Builds=

|External_Reviews= 

|History= 

|HistoricalGallery= 

|Ref_references=

|Ref_sources=

|Ref_links=

}}
Category: