Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:XboxTankData"

Jump to: navigation, search
Revision as of 11:28, 13 April 2015Latest revision as of 11:38, 8 October 2016 
13 intermediate revisions by 3 users not shown
Line 6:Line 6:
  |{{PAGENAME}}  |{{PAGENAME}}
 }}}}}} }}}}}}
?{{#vardefine:class|{{lc:{{#gw_vehicle_plain_attr:wotx:{{#var:tank}}|attr=vehicle_type}}}}}}+{{#vardefine:class|{{lc:{{#xboxchars:{{#var:tank}}|class}}}}}}
?{{#vardefine:classFooter|{{#switch:{{#var:class}}+{{#vardefine:classFooter|{{#switch:{{#xboxchars:{{#var:tank}}|class}}
? |lightTank = light+ |lightTank = Light Tanks
? |mediumTank = medium+ |mediumTank = Medium Tanks
? |heavyTank = heavy+ |heavyTank = Heavy Tanks
? |AT-SPG = td+ |AT-SPG = Tank Destroyers
? |SPG = spg+ |SPG = Self-Propelled Guns
 }}}} }}}}
?{{#vardefine:nationCode|{{#gw_vehicle_plain_attr:wotx:{{#var:tank}}|attr=nation}}}}+{{#vardefine:nationCode|{{#xboxchars:{{#var:tank}}|nation}}}}
 {{#vardefine:nation|{{#switch:{{#var:nationCode}} {{#vardefine:nation|{{#switch:{{#var:nationCode}}
  |ussr = USSR  |ussr = USSR
Line 23:Line 23:
  |china = China  |china = China
  |japan = Japan  |japan = Japan
 + |czech = Czechoslovakia
 + |sweden = Sweden
 }}}} }}}}
?{{#vardefine:level|{{#gw_vehicle_plain_attr:wotx:{{#var:tank}}|attr=level}}}}+{{#vardefine:level|{{#xboxchars:{{#var:tank}}|level}}}}
?{{#vardefine:premium|{{#gw_vehicle_plain_attr:wotx:{{#var:tank}}|attr=is_premium}}}}+{{#vardefine:premium|{{#xboxchars:{{#var:tank}}|gold}}}}
 </div> </div>
 <div class="b-performance"> <div class="b-performance">
 <div class="b-performance_border"> <div class="b-performance_border">
 <h3 class="b-performance_title b-performance_title__header">{{PAGENAME}} (Stock)</h3> <h3 class="b-performance_title b-performance_title__header">{{PAGENAME}} (Stock)</h3>
?[[image:{{#ifexist:Image:Anno{{PAGENAME}}.png|Anno{{PAGENAME}}.png{{!}}Icon|NoRender3000.png|Missing Image}}|center]]+[[image:Anno{{PAGENAME}}.png|232px|center]]
 {{#gw_vehicle_params:wotx:{{#var:tank}}|data=price,health,weight|title=Totals}} {{#gw_vehicle_params:wotx:{{#var:tank}}|data=price,health,weight|title=Totals}}
 {{#gw_vehicle_params:wotx:{{#var:tank}}|data=crew|title=Crew}} {{#gw_vehicle_params:wotx:{{#var:tank}}|data=crew|title=Crew}}
Line 41:Line 43:
 </div> </div>
 <div class="b-description"> <div class="b-description">
?{{#gw_vehicle_annotation:wotx:{{#var:tank}} }}{{#gw_vehicle_plain_attr:wotx:{{#var:tank}}|attr=description_i18n}}<p>{{{1|}}}</p>+{{#gw_vehicle_annotation:wotx:{{#var:tank}} }}{{#xboxstr:{{#xboxchars:{{#var:tank}}|description}}}}<p>{{{1|}}}</p>
 </div> </div>
  
Line 85:Line 87:
 UK#{{#gw_vehicle_list:wotx: nation = uk | class = {{#var:class}} | order = level | style = text | divider = • }} | UK#{{#gw_vehicle_list:wotx: nation = uk | class = {{#var:class}} | order = level | style = text | divider = • }} |
 Germany#{{#gw_vehicle_list:wotx: nation = germany | class = {{#var:class}} | order = level | style = text | divider = • }} | Germany#{{#gw_vehicle_list:wotx: nation = germany | class = {{#var:class}} | order = level | style = text | divider = • }} |
 +France#{{#gw_vehicle_list:wotx: nation = france | class = {{#var:class}} | order = level | style = text | divider = • }} |
 USSR#{{#gw_vehicle_list:wotx: nation = ussr | class = {{#var:class}} | order = level | style = text | divider = • }} | USSR#{{#gw_vehicle_list:wotx: nation = ussr | class = {{#var:class}} | order = level | style = text | divider = • }} |
 China#{{#gw_vehicle_list:wotx: nation = china | class = {{#var:class}} | order = level | style = text | divider = • }} | China#{{#gw_vehicle_list:wotx: nation = china | class = {{#var:class}} | order = level | style = text | divider = • }} |
?Japan#{{#gw_vehicle_list:wotx: nation = japan | class = {{#var:class}} | order = level | style = text | divider = • }}+Japan#{{#gw_vehicle_list:wotx: nation = japan | class = {{#var:class}} | order = level | style = text | divider = • }} |
 +Czechoslovakia#{{#gw_vehicle_list:wotx: nation = czech | class = {{#var:class}} | order = level | style = text | divider = • }}|
 +Sweden#{{#gw_vehicle_list:wotx: nation = sweden | class = {{#var:class}} | order = level | style = text | divider = • }}
 }} }}
 {{#ifeq:{{#var:premium}}|1 {{#ifeq:{{#var:premium}}|1
Line 95:Line 100:
 UK#{{#gw_vehicle_list:wotx: nation = uk | gold = 1 | order = level | style = text | divider = • }} | UK#{{#gw_vehicle_list:wotx: nation = uk | gold = 1 | order = level | style = text | divider = • }} |
 Germany#{{#gw_vehicle_list:wotx: nation = germany | gold = 1 | order = level | style = text | divider = • }} | Germany#{{#gw_vehicle_list:wotx: nation = germany | gold = 1 | order = level | style = text | divider = • }} |
 +France#{{#gw_vehicle_list:wotx: nation = france | gold = 1 | order = level | style = text | divider = • }} |
 USSR#{{#gw_vehicle_list:wotx: nation = ussr | gold = 1 | order = level | style = text | divider = • }} | USSR#{{#gw_vehicle_list:wotx: nation = ussr | gold = 1 | order = level | style = text | divider = • }} |
 China#{{#gw_vehicle_list:wotx: nation = china | gold = 1 | order = level | style = text | divider = • }} | China#{{#gw_vehicle_list:wotx: nation = china | gold = 1 | order = level | style = text | divider = • }} |
?Japan#{{#gw_vehicle_list:wotx: nation = japan | gold = 1 | order = level | style = text | divider = • }}+Japan#{{#gw_vehicle_list:wotx: nation = japan | gold = 1 | order = level | style = text | divider = • }} |
 +Czechoslovakia#{{#gw_vehicle_list:wotx: nation = czech | gold = 1 | order = level | style = text | divider = • }}|
 +Sweden#{{#gw_vehicle_list:wotx: nation = sweden | gold = 1 | order = level | style = text | divider = • }}
 +}}
 +|}}{{OtherLangs}}
 +</div>{{#switch:{{lc:{{#var:nation}}}}
 +|germany=[[Category:XBOX:German Tanks]]
 +|ussr=[[Category:XBOX:USSR Tanks]]
 +|usa=[[Category:XBOX:USA Tanks]]
 +|france=[[Category:XBOX:French Tanks]]
 +|uk=[[Category:XBOX:British Tanks]]
 +|china=[[Category:XBOX:Chinese Tanks]]
 +|japan=[[Category:XBOX:Japanese Tanks]]
 +|czech=[[Category:XBOX:Czech Tanks]]
 +|sweden=[[Category:XBOX:Swedish Tanks]]
 +}}{{#switch:{{lc:{{#var:class}}}}
 +|light=[[Category:XBOX:Light Tanks]]
 +|lighttank=[[Category:XBOX:Light Tanks]]
 +|medium=[[Category:XBOX:Medium Tanks]]
 +|mediumtank=[[Category:XBOX:Medium Tanks]]
 +|heavy=[[Category:XBOX:Heavy Tanks]]
 +|heavytank=[[Category:XBOX:Heavy Tanks]]
 +|spg=[[Category:XBOX:Self-Propelled Guns]]
 +|tspg=[[Category:XBOX:Self-Propelled Guns]]
 +|td=[[Category:XBOX:Tank Destroyers]]
 +|ttd=[[Category:XBOX:Tank Destroyers]]
 +|at-spg=[[Category:XBOX:Tank Destroyers]]
 +}}{{#switch:{{lc:{{#var:level}}}}
 +|i|1=[[Category:XBOX:Tier I Tanks]]
 +|ii|2=[[Category:XBOX:Tier II Tanks]]
 +|iii|3=[[Category:XBOX:Tier III Tanks]]
 +|iv|4=[[Category:XBOX:Tier IV Tanks]]
 +|v|5=[[Category:XBOX:Tier V Tanks]]
 +|vi|6=[[Category:XBOX:Tier VI Tanks]]
 +|vii|7=[[Category:XBOX:Tier VII Tanks]]
 +|viii|8=[[Category:XBOX:Tier VIII Tanks]]
 +|ix|9=[[Category:XBOX:Tier IX Tanks]]
 +|x|10=[[Category:XBOX:Tier X Tanks]]
 }} }}
?|}} 
?</div> 
 </includeonly> </includeonly>
 <noinclude> <noinclude>
Line 118:Line 159:
 *<nowiki>}}</nowiki> *<nowiki>}}</nowiki>
 ==Template== ==Template==
 +<big>'''WARNING: DO NOT ASSIGN VALUES TO TANK= UNLESS YOU KNOW WHAT YOU ARE DOING AND WHAT WILL HAPPEN PERFECTLY. LEAVE IT BLANK.'''</big><hr>
 +
 <pre> <pre>
 {{XboxTankData|Tank= {{XboxTankData|Tank=
Line 146:Line 189:
 }} }}
 </pre> </pre>
? 
 [[Category:Haswell's_Storage_of_Spare_Time]] [[Category:Haswell's_Storage_of_Spare_Time]]
 [[Category:C/P Templates]] [[Category:C/P Templates]]
 </noinclude> </noinclude>

Latest revision as of 11:38, 8 October 2016


Usage

  • {{tankData This places the core panels supported by the auto gen data.
  • |tank= Specify the tank code. Required for widget automation. If not specified, it will default to the page's name.
  • |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.
  • |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}}
  • }}

Template

WARNING: DO NOT ASSIGN VALUES TO TANK= UNLESS YOU KNOW WHAT YOU ARE DOING AND WHAT WILL HAPPEN PERFECTLY. LEAVE IT BLANK.
{{XboxTankData|Tank=
|

|Gallery=

|InTheGame_pros=

|InTheGame_cons=

|InTheGame_performance=

|InTheGame_research=

|InTheGame_equipment=

|History=

|HistoricalGallery=

|Ref_references=

|Ref_sources=

|Ref_links=

}}