Bienvenue sur le Wiki de Wargaming.net !
Variantes

Modèle:TankData : Différence entre versions

Aller à : navigation, rechercher
Version du 13 octobre 2016 à 11:13Version actuelle en date du 7 août 2018 à 13:38 
38 révisions intermédiaires par un autre utilisateur non affichées
Ligne 12 :Ligne 12 :
 {{#vardefine:nation|{{#switch:{{#var:nationCode}} {{#vardefine:nation|{{#switch:{{#var:nationCode}}
  |ussr = USSR  |ussr = USSR
? |germany = Allemagne+ |germany = Germany
? |usa = États-Unis+ |usa = USA
  |france = France  |france = France
? |uk = Royaume-Uni+ |uk = UK
? |china = Chine+ |china = China
? |japan = Japon+ |japan = Japan
? |czech = Tchécoslovaquie+ |czech = Czech
? |sweden = Suède+ |sweden = Sweden
 + |poland = Poland
 + |italy = Italy
 }}}} }}}}
 {{#vardefine:nation2|{{#switch:{{#var:nation}} {{#vardefine:nation2|{{#switch:{{#var:nation}}
  |USSR = Soviétique  |USSR = Soviétique
? |Allemagne = Allemand+ |Germany = Allemand
? |États-Unis = Américain+ |USA = Américain
  |France = Français  |France = Français
? |Royaume-Uni = Anglais+ |UK = Anglais
? |Chine = Chinois+ |China = Chinois
? |Japon = Japonais+ |Japan = Japonais
? |Tchécoslovaquie = Tchécoslovaque+ |Czech = Tchécoslovaque
? |Suède = Suédois+ |Sweden = Suédois
 + |Poland = Polonais
 + |Italy = Italien
 }}}} }}}}
 {{#vardefine:level|{{#combatchars:{{#var:tank}}|level}}}} {{#vardefine:level|{{#combatchars:{{#var:tank}}|level}}}}
Ligne 49 :Ligne 53 :
  |0 =}}}}  |0 =}}}}
 {{#vardefine:classCode|{{#combatchars:{{#var:tank}}|class}}}} {{#vardefine:classCode|{{#combatchars:{{#var:tank}}|class}}}}
 +{{#vardefine:classUncaps|{{#switch:{{#combatchars:{{#var:tank}}|class}}
 + |lightTank = lighttank
 + |mediumTank = mediumtank
 + |heavyTank = heavytank
 + |AT-SPG = at-spg
 + |SPG = spg
 +}}}}
 {{#vardefine:classFooter|{{#switch:{{#combatchars:{{#var:tank}}|class}} {{#vardefine:classFooter|{{#switch:{{#combatchars:{{#var:tank}}|class}}
  |lightTank = léger  |lightTank = léger
Ligne 99 :Ligne 110 :
 {{DISPLAYTITLE:{{#var:name}}}} {{DISPLAYTITLE:{{#var:name}}}}
 {{#vardefine:appendContent|}}{{#if:{{#var:GalleryContent|}}||[[Category:Append: Gallery]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}} {{#vardefine:appendContent|}}{{#if:{{#var:GalleryContent|}}||[[Category:Append: Gallery]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* Gallery}}+* Galerie}}
 }}{{#if:{{{InTheGame_pros|}}}||[[Category:Append: Player Opinion: Pros]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}} }}{{#if:{{{InTheGame_pros|}}}||[[Category:Append: Player Opinion: Pros]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* Player Opinion: Pros}}+* Avis des joueurs : avantages}}
 }}{{#if:{{{InTheGame_cons|}}}||[[Category:Append: Player Opinion: Cons]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}} }}{{#if:{{{InTheGame_cons|}}}||[[Category:Append: Player Opinion: Cons]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* Player Opinion: Cons}}+* Avis des joueurs : inconvénients}}
 }}{{#if:{{{InTheGame_performance|}}}||[[Category:Append: Player Opinion: Performance]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}} }}{{#if:{{{InTheGame_performance|}}}||[[Category:Append: Player Opinion: Performance]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* Player Opinion: Performance}}+* Avis des joueurs : Performance}}
 }}{{#if:{{{InTheGame_equipment|}}}||[[Category:Append: Player Opinion: Equipment]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}} }}{{#if:{{{InTheGame_equipment|}}}||[[Category:Append: Player Opinion: Equipment]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* Player Opinion: Equipment}}+* Avis des joueurs : Équipement}}
 }}{{#if:{{{History|}}}||[[Category:Append: History]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}} }}{{#if:{{{History|}}}||[[Category:Append: History]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* History}}+* Historique}}
 }}{{#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}}+* Galerie historique}}}}{{#if:{{{Ref_references|}}}||{{#if:{{{Ref_sources|}}}||{{#if:{{{Ref_links|}}}||[[Category:Append: Sources and External Links]]{{#vardefine:append|1}}{{#vardefine:appendContent|{{#var:appendContent}}
?* Sources and External Links}}}}}}+* Sources et Liens Externes}}}}}}
 }}{{#ifeq:{{#var:append}}|1|{{Append|{{AppendContentNavbar|{{#var:appendContent}}}}}}}} }}{{#ifeq:{{#var:append}}|1|{{Append|{{AppendContentNavbar|{{#var:appendContent}}}}}}}}
 {{Sidebar {{Sidebar
 |name={{#var:name}} |name={{#var:name}}
 |shortname={{#var:tank}} |shortname={{#var:tank}}
?|nation={{#var:nationCode}}+|nation={{#var:nation}}
 |premium={{#ifeq:{{#var:premium}}|Premium|yes|no}} |premium={{#ifeq:{{#var:premium}}|Premium|yes|no}}
 |notInShop={{#var:gift}} |notInShop={{#var:gift}}
Ligne 146 :Ligne 157 :
 |shellsstock={{ShellsTypeBreakdown|{{#var:tank}}|stock}} |shellsstock={{ShellsTypeBreakdown|{{#var:tank}}|stock}}
 |shellstop={{ShellsTypeBreakdown|{{#var:tank}}|top}} |shellstop={{ShellsTypeBreakdown|{{#var:tank}}|top}}
?|shellcoststock={{ShellsCostCalc|{{#var:tank}}|stock|stock|{{#var:nationCode}}}}+|shellcoststock={{ShellsCostCalc|{{#var:tank}}|stock|stock|{{#var:nation}}}}
?|shellcosttop={{ShellsCostCalc|{{#var:tank}}|top|top|{{#var:nationCode}}}}+|shellcosttop={{ShellsCostCalc|{{#var:tank}}|top|top|{{#var:nation}}}}
 |damage={{#combatchars:{{#var:tank}}|damage1}}/{{#combatchars:{{#var:tank}}|damage2}}/{{#combatchars:{{#var:tank}}|damage3}} |damage={{#combatchars:{{#var:tank}}|damage1}}/{{#combatchars:{{#var:tank}}|damage2}}/{{#combatchars:{{#var:tank}}|damage3}}
 |damageTop={{#combatchars:gun:{{#var:tank}}::top|damage1}}/{{#combatchars:gun:{{#var:tank}}::top|damage2}}/{{#combatchars:gun:{{#var:tank}}::top|damage3}} |damageTop={{#combatchars:gun:{{#var:tank}}::top|damage1}}/{{#combatchars:gun:{{#var:tank}}::top|damage2}}/{{#combatchars:gun:{{#var:tank}}::top|damage3}}
Ligne 213 :Ligne 224 :
 |SubArc_6_Elv={{{Sidebar_SubArc_6_Elv|}}} |SubArc_6_Elv={{{Sidebar_SubArc_6_Elv|}}}
 }} }}
?{{TankDescription|{{Flag|{{#var:nationCode}}|{{#var:tank}}}}<p>Le '''{{#var:name}}''' est un {{#var:classLink}} {{#var:premiumLink}} {{#ifeq:{{#var:nation2}}|American|n|}} [[{{#var:nationCode}}|{{#var:nation2}}]] de rang {{#var:level}}. {{#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>Le '''{{#var:name}}''' est un {{#var:classLink}} {{#var:premiumLink}} {{#ifeq:{{#var:nation2}}|American|n|}} [[Tank_nations_{{#var:nationCode}}|{{#var:nation2}}]] de rang {{#var:level}}. {{#ifeq:{{#var:gift}}|yes|{{#var:giftDesc}}}}</p><p>{{#wotstr:{{#combatchars:{{#var:tank}}|description}}}}</p>{{#ifeq:{{#var:premium}}|Premium||<p>{{#var:children}}</p>}}<p>{{{1|}}}</p>}}
 <div class="b-wiki-panel"> <div class="b-wiki-panel">
 {{Popup {{Popup
Ligne 256 :Ligne 267 :
 <div class="b-tech-nav"> <div class="b-tech-nav">
 {{#gw_nav_table: {{#gw_nav_table:
?name = {{#var:nation}} |+name = <span class="b-tech-nav_icon b-tech-nav_icon__{{#var:nationCode}}"></span> {{#var:nation}} |
 Chars Légers#{{#gw_vehicle_list:wot: nation = {{#var:nationCode}} | class = lightTank | order = level | style = text | divider = • }} | Chars Légers#{{#gw_vehicle_list:wot: nation = {{#var:nationCode}} | class = lightTank | order = level | style = text | divider = • }} |
 Chars Moyens#{{#gw_vehicle_list:wot: nation = {{#var:nationCode}} | class = mediumTank | order = level | style = text | divider = • }} | Chars Moyens#{{#gw_vehicle_list:wot: nation = {{#var:nationCode}} | class = mediumTank | order = level | style = text | divider = • }} |
Ligne 264 :Ligne 275 :
 }} }}
 {{#gw_nav_table: {{#gw_nav_table:
?name = {{#var:classFooter2}} |+name = <span class="b-tech-nav_icon b-tech-nav_icon__{{#var:classUncaps}}"></span> {{#var:classFooter2}} |
 États-Unis#{{#gw_vehicle_list:wot: nation = usa | class = {{#var:classCode}} | order = level | style = text | divider = • }} | États-Unis#{{#gw_vehicle_list:wot: nation = usa | class = {{#var:classCode}} | order = level | style = text | divider = • }} |
 Royaume-Uni#{{#gw_vehicle_list:wot: nation = uk | class = {{#var:classCode}} | order = level | style = text | divider = • }} | Royaume-Uni#{{#gw_vehicle_list:wot: nation = uk | class = {{#var:classCode}} | order = level | style = text | divider = • }} |
Ligne 273 :Ligne 284 :
 Japon#{{#gw_vehicle_list:wot: nation = japan | class = {{#var:classCode}} | order = level | style = text | divider = • }}| Japon#{{#gw_vehicle_list:wot: nation = japan | class = {{#var:classCode}} | order = level | style = text | divider = • }}|
 Tchécoslovaquie#{{#gw_vehicle_list:wot: nation = czech | class = {{#var:classCode}} | order = level | style = text | divider = • }}| Tchécoslovaquie#{{#gw_vehicle_list:wot: nation = czech | class = {{#var:classCode}} | order = level | style = text | divider = • }}|
?Suède#{{#gw_vehicle_list:wot: nation = sweden | class = {{#var:classCode}} | order = level | style = text | divider = • }}+Suède#{{#gw_vehicle_list:wot: nation = sweden | class = {{#var:classCode}} | order = level | style = text | divider = • }}|
 +Pologne#{{#gw_vehicle_list:wot: nation = poland | class = {{#var:classCode}} | order = level | style = text | divider = • }}|
 +Italy#{{#gw_vehicle_list:wot: nation = italy | class = {{#var:classCode}} | order = level | style = text | divider = • }}
 }} }}
 {{#ifeq:{{#var:premium}}|Premium {{#ifeq:{{#var:premium}}|Premium
 |{{#gw_nav_table: |{{#gw_nav_table:
?name = Premium tanks |+name = {{Gold}} <span style="margin-left:3px;">Chars Premiums</span> |
 États-Unis#{{#gw_vehicle_list:wot: nation = usa | gold = 1 | order = level | style = text | divider = • }} | États-Unis#{{#gw_vehicle_list:wot: nation = usa | gold = 1 | order = level | style = text | divider = • }} |
 Royaume-Uni#{{#gw_vehicle_list:wot: nation = uk | gold = 1 | order = level | style = text | divider = • }} | Royaume-Uni#{{#gw_vehicle_list:wot: nation = uk | gold = 1 | order = level | style = text | divider = • }} |
Ligne 286 :Ligne 299 :
 Japon#{{#gw_vehicle_list:wot: nation = japan | gold = 1 | order = level | style = text | divider = • }}| Japon#{{#gw_vehicle_list:wot: nation = japan | gold = 1 | order = level | style = text | divider = • }}|
 Tchécoslovaquie#{{#gw_vehicle_list:wot: nation = czech | gold = 1 | order = level | style = text | divider = • }}| Tchécoslovaquie#{{#gw_vehicle_list:wot: nation = czech | gold = 1 | order = level | style = text | divider = • }}|
?Suède#{{#gw_vehicle_list:wot: nation = sweden | gold = 1 | order = level | style = text | divider = • }}+Suède#{{#gw_vehicle_list:wot: nation = sweden | gold = 1 | order = level | style = text | divider = • }}|
 +Pologne#{{#gw_vehicle_list:wot: nation = poland | gold = 1 | order = level | style = text | divider = • }}|
 +Italy#{{#gw_vehicle_list:wot: nation = italy | gold = 1 | order = level | style = text | divider = • }}
 }} }}
 |}} |}}

Version actuelle en date du 7 août 2018 à 13:38

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=

}}
Catégorie :