Difference between revisions of "Template:Sidebar"
Revision as of 09:52, 13 May 2014 | Revision as of 13:39, 26 June 2014 | |||
Line 18: | Line 18: | |||
{{#vardefine:hptTop|{{#expr:{{#expr:({{{engineTop}}})/({{#explode:{{{weightTop}}}|/|0}})}}round2}}}} | {{#vardefine:hptTop|{{#expr:{{#expr:({{{engineTop}}})/({{#explode:{{{weightTop}}}|/|0}})}}round2}}}} | |||
</div> | </div> | |||
? | <div id="Panel" class=" | + | <div class="b-performance" id="Panel"> | |
? | <h3>{{#if:{{{name|}}}|{{#ifeq:{{lc:{{{unavailable}}}}}|yes|[[image:PremiumIcon3.png|link=|Unavailable]] {{{name}}}|{{#ifeq:{{lc:{{{notInShop}}}}}|yes|[[image:PremiumIcon2.png|link=|Gift]] {{{name}}}|{{#ifeq:{{lc:{{{premium}}}}}|yes|[[image:GoldIcon2.png|link=|Premium]] {{{name}}}|{{{name}}}}}}}}}|{{PAGENAME}}}}</h3> | + | <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]] {{{name}}}|{{#ifeq:{{lc:{{{notInShop}}}}}|yes|[[image:PremiumIcon2.png|link=|Gift]] {{{name}}}|{{#ifeq:{{lc:{{{premium}}}}}|yes|[[image:GoldIcon2.png|link=|Premium]] {{{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|NoRender.png|Missing Image}}}}|center]] | [[image:{{#ifexist:Image:Wot_{{PAGENAME}}_render.jpg|Wot_{{PAGENAME}}_render.jpg{{!}}232px{{!}}Render|{{#ifexist:Image:anno{{{shortname}}}.png|anno{{{shortname}}}.png{{!}}Icon|NoRender.png|Missing Image}}}}|center]] | |||
? | < | + | <div class="b-performance_position">'''{{#switch:{{lc:{{{nation}}}}} | |
? | + | |||
|germany=Germany | |germany=Germany | |||
|ussr=USSR | |ussr=USSR | |||
Line 30: | Line 30: | |||
|china=China | |china=China | |||
|japan=Japan | |japan=Japan | |||
? | |#default=<span class="error">nation</span>}} | + | |#default=<span class="error">nation</span>}}''' {{!}} '''{{#switch:{{lc:{{{class}}}}} | |
? | + | |||
|light=Light Tank | |light=Light Tank | |||
|medium=Medium Tank | |medium=Medium Tank | |||
Line 43: | Line 42: | |||
|heavyTank=Heavy Tank | |heavyTank=Heavy Tank | |||
|AT-SPG=TD | |AT-SPG=TD | |||
? | |#default=<span class="error">class</span>}} | + | |#default=<span class="error">class</span>}}''' {{!}} '''{{#switch:{{lc:{{{tier}}}}} | |
? | + | |||
|i=[[:Category:Tier I Tanks|Tier I]]|1=Tier I | |i=[[:Category:Tier I Tanks|Tier I]]|1=Tier I | |||
|ii=[[:Category:Tier II Tanks|Tier II]]|2=Tier II | |ii=[[:Category:Tier II Tanks|Tier II]]|2=Tier II | |||
Line 55: | Line 53: | |||
|ix=[[:Category:Tier IX Tanks|Tier IX]]|9=Tier IX | |ix=[[:Category:Tier IX Tanks|Tier IX]]|9=Tier IX | |||
|x=[[:Category:Tier X Tanks|Tier X]]|10=Tier X | |x=[[:Category:Tier X Tanks|Tier X]]|10=Tier X | |||
? | |#default=<span class="error">tier</span>}}</ | + | |#default=<span class="error">tier</span>}}'''</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> | |||
<tr><td colspan="2">{{BattleTiers|shortname={{{shortname}}}|tier={{{tier}}}|class={{{class}}}}}</td></tr> | <tr><td colspan="2">{{BattleTiers|shortname={{{shortname}}}|tier={{{tier}}}|class={{{class}}}}}</td></tr> | |||
<tr><th class="spacer"></th><td></td></tr> | <tr><th class="spacer"></th><td></td></tr> | |||
? | + | --><div class="b-performance_title">Totals</div> | ||
? | < | + | <div class="b-performance_text"> | |
? | + | <table class="t-performance"> | ||
? | + | {{DataLine| Cost |{{#ifeq:{{lc:{{{unavailable}}}}}|yes|This tank is not available to players on EU/NA/SEA servers.|{{#ifeq:{{lc:{{{notInShop}}}}}|yes|Gift Tank (}}{{#if:{{{cost|}}}|{{#ifeq:{{{premium}}}|yes|{{{cost}}} [[image:GoldIcon.png|12px|link=|Gold]]|{{{cost}}} [[image:Credits.png|12px|link=|Credits]]}}{{#ifeq:{{lc:{{{notInShop}}}}}|yes|)}}|<span class="error">cost</span>}}}} }} | ||
? | + | {{DataLine| Hit Points |{{#if:{{{health|}}}|<span class="stock">{{{health}}}</span><span class="top">{{#if:{{{healthTop|}}}|{{{healthTop}}}|{{{health}}}}}</span><span style="color:gray"> HP</span>|<span class="error">health</span>}} }} | ||
? | + | {{DataLine| Weight Limit |{{#if:{{{weight|}}}|<span class="stock">{{{weight}}}</span><span class="top">{{#if:{{{weightTop|}}}|{{{weightTop}}}|{{{weight}}}}}</span><span style="color:gray"> t</span>|<span class="error">weight</span>}} }} | ||
? | + | </table> | ||
? | + | </div> | ||
? | + | <div class="b-performance_title">Crew</div><div class="b-performance_text">{{#if:{{{crew|}}}|{{{crew}}}|<span class="error">crew</span>}}</div> | ||
? | + | <div class="b-performance_title">Mobility</div> | ||
? | < | + | <div class="b-performance_text"> | |
? | + | <table class="t-performance"> | ||
? | < | + | {{DataLine| Engine Power |{{#if:{{{engine|}}}|<span class="stock">{{{engine}}}</span><span class="top">{{#if:{{{engineTop|}}}|{{{engineTop}}}|{{{engine}}}}}</span><span style="color:gray"> hp</span>|<span class="error">engine</span>}} }} | |
? | < | + | {{DataLine| Speed Limit |{{#if:{{{speed|}}}|{{{speed}}}<span style="color:gray"> km/h</span>|<span class="error">speed</span>}} }} | |
? | < | + | {{DataLine| Traverse |{{#if:{{{traverse|}}}|<span class="stock">{{{traverse}}}</span><span class="top">{{#if:{{{traverseTop|}}}|{{{traverseTop}}}|{{{traverse}}}}}</span><span style="color:gray"> deg/s</span>|<span class="error">traverse</span>}} }} | |
? | < | + | {{DataLine| Power/Wt Ratio |{{#if:{{{weight|}}}|<span class="stock">{{#var:hpt}}</span><span class="top">{{#if:{{{weightTop|}}}|{{#var:hptTop}}|{{#var:hpt}}}}</span><span style="color:gray"> hp/t</span>|<span class="error">hp/weight</span>}} }} | |
? | + | {{DataLine| Pivot |{{#if:{{{pivot|}}}|<span class="stock">{{{pivot}}}</span><span class="top">{{#if:{{{pivotTop|}}}|{{{pivotTop}}}|{{{pivot}}}}}</span>|<span class="error">pivot</span>}} }} | ||
? | + | </table> | ||
? | + | </div> | ||
? | + | <div class="b-performance_title">Armor</div> | ||
? | + | <div class="b-performance_text"> | ||
? | + | <table class="t-performance"> | ||
? | + | {{DataLine| Hull Armor |{{#if:{{{armor|}}}|{{{armor}}}<span style="color:gray"> mm</span>|<span class="error">armor</span>}} }} | ||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | < | + | ||
? | < | + | ||
? | < | + | ||
? | + | |||
? | + | |||
? | + | |||
{{#switch:{{lc:{{{class}}}}} | {{#switch:{{lc:{{{class}}}}} | |||
|td= | |td= | |||
|spg= | |spg= | |||
? | |#default= | + | |#default={{DataLine| Turret Armor |{{#if:{{{turretArmor|}}}|<span class="stock">{{{turretArmor}}}</span><span class="top">{{#if:{{{turretArmorTop|}}}|{{{turretArmorTop}}}|{{{turretArmor}}}}}</span><span style="color:gray"> mm</span>|<span class="error">turretArmor</span>}} }} | |
? | < | + | }} | |
? | < | + | </table> | |
? | < | + | </div> | |
? | + | <div class="b-performance_title">Armament</div> | ||
? | + | <div class="b-performance_text"> | ||
? | + | <table class="t-performance"> | ||
? | + | {{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| 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 style="color:gray"> r/m</span>|<span class="error">rof</span>}} }} | ||
? | + | {{DataLine| Accuracy |{{#if:{{{accuracy|}}}|<span class="stock">{{{accuracy}}}</span><span class="top">{{#if:{{{accuracyTop|}}}|{{{accuracyTop}}}|{{{accuracy}}}}}</span><span style="color:gray"> m</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 style="color:gray"> s</span>|<span class="error">aim</span>}} }} | ||
? | + | {{DataLine| {{#switch:{{lc:{{{class}}}}} | ||
? | + | |td=Gun Traverse Speed | ||
? | + | |spg=Gun Traverse Speed | ||
? | + | |#default=Turret Traverse}} | {{#switch:{{lc:{{{class}}}}} | ||
? | + | |td={{#if:{{{gunTraverse|}}}|<span class="stock">{{{gunTraverse}}}</span><span class="top">{{#if:{{{gunTraverseTop|}}}|{{{gunTraverseTop}}}|{{{gunTraverse}}}}}</span><span style="color:gray"> deg/s</span>|<span class="error">gunTraverse</span>}} | ||
? | + | |spg={{#if:{{{gunTraverse|}}}|<span class="stock">{{{gunTraverse}}}</span><span class="top">{{#if:{{{gunTraverseTop|}}}|{{{gunTraverseTop}}}|{{{gunTraverse}}}}}</span><span style="color:gray"> deg/s</span>|<span class="error">gunTraverse</span>}} | ||
? | + | |#default={{#if:{{{turretTraverse|}}}|<span class="stock">{{{turretTraverse}}}</span><span class="top">{{#if:{{{turretTraverseTop|}}}|{{{turretTraverseTop}}}|{{{turretTraverse}}}}}</span><span style="color:gray"> deg/s</span>|<span class="error">turretTraverse</span>}} | ||
? | {{#switch:{{lc:{{{class}}}}} | + | }} }} | |
? | |td= | + | {{DataLine| Gun Arc |{{#if:{{{gunTraverseArc|}}}|{{#if:{{#explode:{{{gunTraverseArc}}}|/|1}}|-}}{{#explode:{{{gunTraverseArc}}}|/|0}}<span style="color:gray">°</span>{{#if:{{#explode:{{{gunTraverseArc}}}|/|1}}|/+{{#explode:{{{gunTraverseArc}}}|/|1}}<span style="color:gray">°</span>}}|<span class="error">gunTraverseArc</span>}} }} | |
? | |spg= | + | {{DataLine| Elevation Arc |{{#if:{{{gunVerticalLimits|}}}|<span class="stock">-{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |0}}|/|0}}<span style="color:gray">°</span>/+{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |0}}|/|1}}<span style="color:gray">°</span>{{#if:{{#explode:{{{gunVerticalLimits}}}| // |1}}| // -{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |1}}|/|0}}<span style="color:gray">°</span>/+{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |1}}|/|1}}<span style="color:gray">°</span>|}}</span><span class="top">{{#if:{{{gunVerticalLimitsTop|}}}|-{{#explode:{{#explode:{{{gunVerticalLimitsTop}}}| // |0}}|/|0}}<span style="color:gray">°</span>/+{{#explode:{{#explode:{{{gunVerticalLimitsTop}}}| // |0}}|/|1}}<span style="color:gray">°</span>{{#if:{{#explode:{{{gunVerticalLimitsTop}}}| // |1}}| // -{{#explode:{{#explode:{{{gunVerticalLimitsTop}}}| // |1}}|/|0}}<span style="color:gray">°</span>/+{{#explode:{{#explode:{{{gunVerticalLimitsTop}}}| // |1}}|/|1}}<span style="color:gray">°</span>|}}|-{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |0}}|/|0}}<span style="color:gray">°</span>/+{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |0}}|/|1}}<span style="color:gray">°</span>{{#if:{{#explode:{{{gunVerticalLimits}}}| // |1}}| // -{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |1}}|/|0}}<span style="color:gray">°</span>/+{{#explode:{{#explode:{{{gunVerticalLimits}}}| // |1}}|/|1}}<span style="color:gray">°</span>|}}}}</span>|<span class="error">gunVerticalLimits</span>}} }} | |
? | |#default= | + | {{DataLine| Ammo Capacity |{{#if:{{{ammo|}}}|<span class="stock">{{{ammo}}}</span><span class="top">{{#if:{{{ammoTop|}}}|{{{ammoTop}}}|{{{ammo}}}}}</span><span style="color:gray"> rounds</span>|<span class="error">ammo</span>}} }} | |
? | {{#switch:{{lc:{{{class}}}}} | + | </table> | |
? | |td= | + | </div> | |
? | |spg= | + | <div class="b-performance_title">General</div> | |
? | |#default= | + | <div class="b-performance_text"> | |
? | }} | + | <table class="t-performance"> | |
? | + | {{DataLine| Chance of Fire | {{#if:{{{fire|}}}|<span class="stock">{{{fire}}}</span><span class="top">{{#if:{{{fireTop|}}}|{{{fireTop}}}|{{{fire}}}}}</span><span style="color:gray"> %</span>|<span class="error">fire</span>}} }} | ||
? | + | {{DataLine| View Range | {{#if:{{{view|}}}|<span class="stock">{{{view}}}</span><span class="top">{{#if:{{{viewTop|}}}|{{{viewTop}}}|{{{view}}}}}</span><span style="color:gray"> m</span>|<span class="error">view</span>}} }} | ||
? | + | {{DataLine| Signal Range | {{#if:{{{signal|}}}|<span class="stock">{{{signal}}}</span><span class="top">{{#if:{{{signalTop|}}}|{{{signalTop}}}|{{{signal}}}}}</span><span style="color:gray"> m</span>|<span class="error">signal</span>}} }} | ||
? | + | {{DataLine| Parent | {{#if:{{{parent|}}}|{{#ifeq:{{{parent}}}|none|<span style="color:gray">none</span>|{{{parent}}}}}|<span class="error">parent</span>}} }} | ||
? | + | {{DataLine| Child | {{#if:{{{child|}}}|{{#ifeq:{{{child}}}|none|<span style="color:gray">none</span>|{{{child}}}}}|<span class="error">child</span>}} }} | ||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | < | + | ||
? | < | + | ||
? | < | + | ||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
? | + | |||
</table> | </table> | |||
+ | </div> | |||
<div class="note">{{#ifeq:{{#var:switch}}|1|<span id="switcher" style="font-size:120%;font-weight:bold;cursor:pointer;"><span id="switcherStock">Values are Stock - click for Top</span><span id="switcherTop" style="display:none;">Values are Top - click for Stock</span></span>|}}</div> | <div class="note">{{#ifeq:{{#var:switch}}|1|<span id="switcher" style="font-size:120%;font-weight:bold;cursor:pointer;"><span id="switcherStock">Values are Stock - click for Top</span><span id="switcherTop" style="display:none;">Values are Top - click for Stock</span></span>|}}</div> | |||
+ | </div> | |||
</div>__NOTOC__</includeonly><noinclude> | </div>__NOTOC__</includeonly><noinclude> | |||
==Notes== | ==Notes== |
Revision as of 13:39, 26 June 2014
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", "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
{{Tank |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 = }}
Category: