Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Sidebar"

Jump to: navigation, search
Revision as of 13:14, 28 August 2014Latest revision as of 12:04, 6 August 2018
Added Italy
 
34 intermediate revisions by 4 users not shown
Line 17:Line 17:
 {{#ifeq:{{{fire}}}|{{{fireTop}}}||{{#vardefine:switch|1}}}} {{#ifeq:{{{fire}}}|{{{fireTop}}}||{{#vardefine:switch|1}}}}
 {{#ifeq:{{{shellsstock}}}|{{{shellstop}}}||{{#vardefine:switch|1}}}} {{#ifeq:{{{shellsstock}}}|{{{shellstop}}}||{{#vardefine:switch|1}}}}
 +{{#ifeq:{{{shellcoststock}}}|{{{shellcosttop}}}||{{#vardefine:switch|1}}}}
 {{#vardefine:hpt|{{#expr:{{#expr:({{{engine}}})/({{#explode:{{{weight}}}|/|0}})}}round2}}}} {{#vardefine:hpt|{{#expr:{{#expr:({{{engine}}})/({{#explode:{{{weight}}}|/|0}})}}round2}}}}
 {{#vardefine:hptTop|{{#expr:{{#expr:({{{engineTop}}})/({{#explode:{{{weightTop}}}|/|0}})}}round2}}}} {{#vardefine:hptTop|{{#expr:{{#expr:({{{engineTop}}})/({{#explode:{{{weightTop}}}|/|0}})}}round2}}}}
Line 27:Line 28:
 <div class="b-performance_border" style="padding: 0px"> <div class="b-performance_border" style="padding: 0px">
 <h3 class="b-performance_title b-performance_title__header">{{#if:{{{name|}}}|{{#ifeq:{{lc:{{{unavailable}}}}}|yes|[[image:PremiumIcon3.png|link=|Unavailable]]&nbsp;&nbsp;{{{name}}}|{{#ifeq:{{lc:{{{notInShop}}}}}|yes|[[image:PremiumIcon2.png|link=|Gift]]&nbsp;&nbsp;{{{name}}}|{{#ifeq:{{lc:{{{premium}}}}}|yes|[[image:GoldIcon2.png|link=|Premium]]&nbsp;&nbsp;{{{name}}}|{{{name}}}}}}}}}|{{PAGENAME}}}}</h3> <h3 class="b-performance_title b-performance_title__header">{{#if:{{{name|}}}|{{#ifeq:{{lc:{{{unavailable}}}}}|yes|[[image:PremiumIcon3.png|link=|Unavailable]]&nbsp;&nbsp;{{{name}}}|{{#ifeq:{{lc:{{{notInShop}}}}}|yes|[[image:PremiumIcon2.png|link=|Gift]]&nbsp;&nbsp;{{{name}}}|{{#ifeq:{{lc:{{{premium}}}}}|yes|[[image:GoldIcon2.png|link=|Premium]]&nbsp;&nbsp;{{{name}}}|{{{name}}}}}}}}}|{{PAGENAME}}}}</h3>
?[[image:{{#ifexist:Image:Wot_{{PAGENAME}}_render.jpg|Wot_{{PAGENAME}}_render.jpg{{!}}232px{{!}}Render|{{#ifexist:Image:anno{{{shortname}}}.png|anno{{{shortname}}}.png{{!}}Icon|NoRender3000.png|Missing Image}}}}|center]]+{{#ifexist: Media:{{#var:name}} render 1.jpg | [[File:{{#var:name}} render 1.jpg|240px|center]][[Category:Tank articles using images from shared media repository]] | [[Image:Anno{{PAGENAME}}.png|232px|center]] }}
 <div class="b-performance_position">'''{{#switch:{{lc:{{{nation}}}}} <div class="b-performance_position">'''{{#switch:{{lc:{{{nation}}}}}
?|germany=Germany+|usa=[[USA]][[Category:USA Tanks]]
?|ussr=USSR+|ussr=[[USSR]][[Category:USSR Tanks]]
?|usa=USA+|germany=[[Germany]][[Category:German Tanks]]
?|france=France+|uk=[[UK]][[Category:British Tanks]]
?|uk=UK+|france=[[France]][[Category:French Tanks]]
?|china=China+|china=[[China]][[Category:Chinese Tanks]]
?|japan=Japan+|japan=[[Japan]][[Category:Japanese Tanks]]
 +|czech=[[Czechoslovakia]][[Category:Czech Tanks]]
 +|sweden=[[Sweden]][[Category:Swedish Tanks]]
 +|poland=[[Poland]][[Category:Polish Tanks]]
 +|italy=[[Italy]][[Category:Italian Tanks]]
 |#default=<span class="error">nation</span>}}''' {{!}} '''{{#switch:{{lc:{{{class}}}}} |#default=<span class="error">nation</span>}}''' {{!}} '''{{#switch:{{lc:{{{class}}}}}
?|light=Light Tank+|light=[[Light Tank]][[Category:Light Tanks]]
?|medium=Medium Tank+|lightTank=[[Light Tank]][[Category:Light Tanks]]
?|heavy=Heavy Tank+|medium=[[Medium Tank]][[Category:Medium Tanks]]
?|spg=SPG+|mediumTank=[[Medium Tank]][[Category:Medium Tanks]]
?|td=TD+|heavy=[[Heavy Tank]][[Category:Heavy Tanks]]
?|ttd=Turreted TD+|heavyTank=[[Heavy Tank]][[Category:Heavy Tanks]]
?|tspg=Turreted SPG+|spg=[[SPG]][[Category:Self-Propelled Guns]]
?|lightTank=Light Tank+|tspg=Turreted [[SPG]][[Category:Self-Propelled Guns]]
?|mediumTank=Medium Tank+|td=[[TD]][[Category:Tank Destroyers]]
?|heavyTank=Heavy Tank+|ttd=Turreted [[TD]][[Category:Tank Destroyers]]
?|AT-SPG=TD+|at-spg=[[TD]][[Category:Tank Destroyers]]
 |#default=<span class="error">class</span>}}''' {{!}} '''{{#switch:{{lc:{{{tier}}}}} |#default=<span class="error">class</span>}}''' {{!}} '''{{#switch:{{lc:{{{tier}}}}}
?|i=[[:Category:Tier I Tanks|Tier I]]|1=Tier I+|i|1=[[:Category:Tier I Tanks|Tier I]][[Category:Tier I Tanks]]
?|ii=[[:Category:Tier II Tanks|Tier II]]|2=Tier II+|ii|2=[[:Category:Tier II Tanks|Tier II]][[Category:Tier II Tanks]]
?|iii=[[:Category:Tier III Tanks|Tier III]]|3=Tier III+|iii|3=[[:Category:Tier III Tanks|Tier III]][[Category:Tier III Tanks]]
?|iv=[[:Category:Tier IV Tanks|Tier IV]]|4=Tier IV+|iv|4=[[:Category:Tier IV Tanks|Tier IV]][[Category:Tier IV Tanks]]
?|v=[[:Category:Tier V Tanks|Tier V]]|5=Tier V+|v|5=[[:Category:Tier V Tanks|Tier V]][[Category:Tier V Tanks]]
?|vi=[[:Category:Tier VI Tanks|Tier VI]]|6=Tier VI+|vi|6=[[:Category:Tier VI Tanks|Tier VI]][[Category:Tier VI Tanks]]
?|vii=[[:Category:Tier VII Tanks|Tier VII]]|7=Tier VII+|vii|7=[[:Category:Tier VII Tanks|Tier VII]][[Category:Tier VII Tanks]]
?|viii=[[:Category:Tier VIII Tanks|Tier VIII]]|8=Tier VIII+|viii|8=[[:Category:Tier VIII Tanks|Tier VIII]][[Category:Tier VIII Tanks]]
?|ix=[[:Category:Tier IX Tanks|Tier IX]]|9=Tier IX+|ix|9=[[:Category:Tier IX Tanks|Tier IX]][[Category:Tier IX Tanks]]
?|x=[[:Category:Tier X Tanks|Tier X]]|10=Tier X+|x|10=[[:Category:Tier X Tanks|Tier X]][[Category:Tier X Tanks]]
?|#default=<span class="error">tier</span>}}'''</div><!--+|#default=<span class="error">tier</span>[[Category:Tank articles requiring maintenance]]}}'''</div><!--
 <tr><th class="spacer"></th><td></td></tr> <tr><th class="spacer"></th><td></td></tr>
 <tr><th colspan="2" style="text-align:center;">Battle Tiers</th></tr> <tr><th colspan="2" style="text-align:center;">Battle Tiers</th></tr>
Line 67:Line 72:
 {{#gw_levels_bar:total=11|from={{#var:BTLow}}|to={{#var:BTHigh}}}}</div> {{#gw_levels_bar:total=11|from={{#var:BTLow}}|to={{#var:BTHigh}}}}</div>
 <div class="b-performance_title">Overview<br /> <div class="b-performance_title">Overview<br />
?<small>Mouse over "▲" for more information</small></div>+<small>Mouse over "<div class="wiki_tooltip"><div align="right"><span class="tooltip_brown" style="right:45px;">Well, the ones further down, of course.</span></div></div>" for more information<br />
 +[Client Values; Actual values in </small><div class="wiki_tooltip">▲<div align="right"><span class="tooltip_brown" style="right:10px;">Specifically, the mismatch in crew values caused by commander's 10% crew skill bonus. Outside of a crew of 1 commander only, 100% crew is a fiction. The client values, given for 100% crew, will normally be taken into battle with 110% crew skill members aside from specific functions, causing their actual performance to deviate from the expected client value.
 +These differences are taken into account in tooltip boxes.</span></div></div>]<small></small></div>
 <div class="b-performance_text"> <div class="b-performance_text">
 <table class="t-performance"> <table class="t-performance">
Line 101:Line 108:
 <table class="t-performance"> <table class="t-performance">
 {{DataLine| Shells |{{#if:{{{shellsstock|}}}|<span class="stock">{{{shellsstock}}}</span><span class="top">{{#if:{{{shellstop|}}}|{{{shellstop}}}|{{{shellsstock}}}}}</span>}} }} {{DataLine| Shells |{{#if:{{{shellsstock|}}}|<span class="stock">{{{shellsstock}}}</span><span class="top">{{#if:{{{shellstop|}}}|{{{shellstop}}}|{{{shellsstock}}}}}</span>}} }}
?{{DataLine| Damage |{{#if:{{{damage|}}}|<span class="stock">{{{damage}}}</span><span class="top">{{#if:{{{damageTop|}}}|{{{damageTop}}}|{{{damage}}}}}</span><span style="color:gray"> HP</span>|<span class="error">damage</span>}} }}+{{DataLine| Shell Cost |{{#if:{{{shellcoststock|}}}|<span class="stock">{{{shellcoststock}}}</span><span class="top">{{#if:{{{shellcosttop|}}}|{{{shellcosttop}}}|{{{shellcoststock}}}}}</span>}} }}
 +{{DataLine| Damage |{{#if:{{{damage|}}}|<span class="stock">{{{damage}}}</span><span class="top">{{#if:{{{damageTop|}}}|{{{damageTop}}}|{{{damage}}}}}</span><span style="color:gray"> HP</span>|<span class="error">damage</span>|<span class="error">shellcost</span>}} }}
 {{DataLine| Penetration |{{#if:{{{penetration|}}}|<span class="stock">{{{penetration}}}</span><span class="top">{{#if:{{{penetrationTop|}}}|{{{penetrationTop}}}|{{{penetration}}}}}</span><span style="color:gray"> mm</span>|<span class="error">penetration</span>}} }} {{DataLine| Penetration |{{#if:{{{penetration|}}}|<span class="stock">{{{penetration}}}</span><span class="top">{{#if:{{{penetrationTop|}}}|{{{penetrationTop}}}|{{{penetration}}}}}</span><span style="color:gray"> mm</span>|<span class="error">penetration</span>}} }}
 {{DataLine| Rate of Fire |{{#if:{{{rof|}}}|<span class="stock">{{{rof}}}</span><span class="top">{{#if:{{{rofTop|}}}|{{{rofTop}}}|{{{rof}}}}}</span>|<span class="error">rof</span>}} }} {{DataLine| Rate of Fire |{{#if:{{{rof|}}}|<span class="stock">{{{rof}}}</span><span class="top">{{#if:{{{rofTop|}}}|{{{rofTop}}}|{{{rof}}}}}</span>|<span class="error">rof</span>}} }}
 {{DataLine| Damage Per Minute |{{#if:{{{DPM|}}}|<span class="stock">{{{DPM}}}</span><span class="top">{{#if:{{{DPMTop|}}}|{{{DPMTop}}}|{{{DPM}}}}}</span>|<span class="error">DPM</span>}} }} {{DataLine| Damage Per Minute |{{#if:{{{DPM|}}}|<span class="stock">{{{DPM}}}</span><span class="top">{{#if:{{{DPMTop|}}}|{{{DPMTop}}}|{{{DPM}}}}}</span>|<span class="error">DPM</span>}} }}
 {{DataLine| Accuracy |{{#if:{{{accuracy|}}}|<span class="stock">{{{accuracy}}}</span><span class="top">{{#if:{{{accuracyTop|}}}|{{{accuracyTop}}}|{{{accuracy}}}}}</span>|<span class="error">accuracy</span>}} }} {{DataLine| Accuracy |{{#if:{{{accuracy|}}}|<span class="stock">{{{accuracy}}}</span><span class="top">{{#if:{{{accuracyTop|}}}|{{{accuracyTop}}}|{{{accuracy}}}}}</span>|<span class="error">accuracy</span>}} }}
?{{DataLine| Aim time |{{#if:{{{aim|}}}|<span class="stock">{{{aim}}}</span><span class="top">{{#if:{{{aimingTimeTop|}}}|{{{aimingTimeTop}}}|{{{aim}}}}}</span>|<span class="error">aim</span>}} }}+{{DataLine| Aim time |{{#if:{{{aim|}}}|<span class="stock">{{{aim}}}</span><span class="top">{{#if:{{{aimTop|}}}|{{{aimTop}}}|{{{aim}}}}}</span>|<span class="error">aim</span>}} }}
 {{DataLine| {{#switch:{{lc:{{{class}}}}} {{DataLine| {{#switch:{{lc:{{{class}}}}}
 |td=Gun Traverse Speed |td=Gun Traverse Speed
Line 135:Line 143:
 |header=<h4>Additional Statistics <br /> |header=<h4>Additional Statistics <br />
 (Top Configuration)</h4> (Top Configuration)</h4>
?|hidden={{#switch:{{{style}}}|collapsed=1|expanded=|#default=1}}  
 |content= |content=
 {{#if:{{{GunAlt|}}}|When using the {{{GunAlt|}}} gun:<br />|}} {{#if:{{{GunAlt|}}}|When using the {{{GunAlt|}}} gun:<br />|}}
Line 169:Line 176:
 }}}} }}}}
  
?</div>__NOTOC__</includeonly><noinclude>+</div>__NOTOC__{{#ifeq:{{#var:premium}}|Premium|[[Category:Premium tanks]]|}}</includeonly><noinclude>
 ==Notes== ==Notes==
 *Missing or incorrect input will be red *Missing or incorrect input will be red
Line 178:Line 185:
 **'''name''' = in-game tank name; acceptable - nothing or name of tank (ie. "Leichttraktor"), if nothing template will use page name  **'''name''' = in-game tank name; acceptable - nothing or name of tank (ie. "Leichttraktor"), if nothing template will use page name
 **'''shortname''' = WG's internal designation for the tank (used for image file name lookup) **'''shortname''' = WG's internal designation for the tank (used for image file name lookup)
?**'''nation''' = nation tree of tank; acceptable input = "germany", "ussr", "usa", "france", "uk", "china", "Germany", "USSR", "USA", "UK", etc. (ie. "germany")+**'''nation''' = nation tree of tank; acceptable input = "germany", "ussr", "usa", "france", "uk", "china", "czech", "sweden", "Germany", "USSR", "USA", "UK", etc. (ie. "germany")
 **'''class''' = tank class; acceptable input = "light", "medium", "heavy", "spg", "td", "ttd", "tspg", "Light", "Medium", "Heavy" etc. (ie. "light") **'''class''' = tank class; acceptable input = "light", "medium", "heavy", "spg", "td", "ttd", "tspg", "Light", "Medium", "Heavy" etc. (ie. "light")
 **'''tier''' = tank tier; acceptable input = "I"..."X", "i"..."x", "1"..."10" (ie. "1") **'''tier''' = tank tier; acceptable input = "I"..."X", "i"..."x", "1"..."10" (ie. "1")
Line 213:Line 220:
 ==Template== ==Template==
 <pre> <pre>
?{{Tank+{{Sidebar
 |name =  |name =
 |shortname =  |shortname =
Line 264:Line 271:
 }} }}
 </pre> </pre>
 +
 +==See also==
 +*[[Template:Tank]]
 +*[[Template:TankData]]
 +
 [[Category:C/P Templates]] [[Category:C/P Templates]]
 +[[Category:WoT templates]]
 </noinclude> </noinclude>

Latest revision as of 12:04, 6 August 2018

Notes

  • Missing or incorrect input will be red
  • Add only the numerical statistic, not the unit (ie. "32" not "32km/h")
  • All tank info and related module info should be for the stock model. If the top model differs, add that value to an additional variable with a Top at the end of the same name (e.g. healthTop instead of health) .
  • Leave empty if stat is currently unavailable
  • Inputs are limited by the format, example for Leichttraktor:
    • name = in-game tank name; acceptable - nothing or name of tank (ie. "Leichttraktor"), if nothing template will use page name
    • shortname = WG's internal designation for the tank (used for image file name lookup)
    • nation = nation tree of tank; acceptable input = "germany", "ussr", "usa", "france", "uk", "china", "czech", "sweden", "Germany", "USSR", "USA", "UK", etc. (ie. "germany")
    • class = tank class; acceptable input = "light", "medium", "heavy", "spg", "td", "ttd", "tspg", "Light", "Medium", "Heavy" etc. (ie. "light")
    • tier = tank tier; acceptable input = "I"..."X", "i"..."x", "1"..."10" (ie. "1")
    • cost = tank cost in store; (ie. "0")
    • premium = premium yes|no, can be skipped if no
    • notInShop = tank is not available for gold yes|no, can be skipped if no
    • unavailable = tank is not available to players on EU/NA/SEA servers at all yes|no, can be skipped if no
    • crew = crew members (seperated by <br />); (ie. "1. Commander (Radio, Gunner)<br /> 2. Driver<br /> 3. Loader")
    • health = tank health/hit points; (ie. "110")
    • weight = tank weight and load limit (weight/load limit); (ie. "7.5/9.2")
    • engine = engine horse power; (ie. "51")
    • speed = tank speed limit; (ie. "32")
    • traverse = tank traverse speed; (ie. "34")
    • powerWtratio = horsepower / weight (Done automatically as long as there is a weight specified. It's handled by the "hpt" variable.)
    • pivot = tank can pivot/turn around center
    • turretTraverse = turret traverse speed; (ie. "40") (not used for TDs or SPGs)
    • gunTraverse = gun traverse speed; (ie. "40") (used only for TDs or SPGs)
    • gunTraverseArc = gun traverse arc; (ie. "360")
    • gunVerticalLimits = gun vertical limits (gun depression/gun elevation, ie. "5/10") - for multiple areas use front area
    • armor = tank armor (front/side/rear); (ie."14/12/12")
    • turretArmor = turret armor (front/side/rear); (ie."14/12/12")
    • damage = standard shell damage (min-max); (ie."22-42")
    • penetration = standard shell penetration (min-max); (ie."24-44")
    • rof = rate of fire listed in Rounds per Minute; (ie. "30"). If patch notes give Seconds per Shot, convert using 60 / SecondsPerShot = RoF.
    • ammo = ammo count; (ie. "105")
    • view = view range; (ie. "270")
    • signal = radio signal range; (ie. "100")
    • accuracy = gun dispersion @ 100m; (ie. "0.4")
    • aim = aim focus time; (ie. "1.5")
    • fire = change of engine fire; (ie. "25")
    • parent = vehicles that lead to this one in research tree, use contour template (ie. {{contour|PzKpfw II}})
    • child = vehicles that this vehicle leads to in research tree, use contour template (ie. {{contour|PzKpfw II}})

Template

{{Sidebar
|name = 
|shortname = 
|nation = 
|class = 
|tier = 
|cost = 
|premium= 
|notInShop = 
|unavailable = 
|crew = 
|health = 
|healthTop = 
|weight = 
|weightTop = 
|engine = 
|engineTop = 
|speed = 
|traverse = 
|traverseTop = 
|pivot = 
|pivotTop = 
|turretTraverse = 
|turretTraverseTop = 
|gunTraverse = 
|gunTraverseTop = 
|armor = 
|turretArmor = 
|turretArmorTop = 
|damage = 
|damageTop = 
|penetration = 
|penetrationTop = 
|rof = 
|rofTop = 
|ammo = 
|ammoTop =
|view = 
|viewTop = 
|signal = 
|signalTop = 
|accuracy = 
|accuracyTop = 
|aim = 
|aimTop = 
|fire = 
|fireTop = 
|parent = 
|child = 
}}

See also