Template:WC3UnitBox/test

{{Infobox
 * name=WC3UnitBox/test
 * title={{{title|{{PAGENAME}}}}}
 * image={{{image|}}}
 * caption={{{caption|}}}


 * label1=Race
 * data1={{{race|}}}
 * label2=Role
 * data2={{{role|}}}
 * label3=Base unit
 * data3={{{baseunit|}}}
 * label4=Faction
 * data4={{{faction|}}}


 * data5={{#if:{{{hp|}}}{{{energy|}}}{{{timedlife|}}}{{{type|}}}{{{armortype|}}}|Statistics}}
 * class5=title
 * label6=Hit points
 * data6={{{hp|}}}
 * label7=Energy
 * data7={{{energy|}}}
 * label8=Life span
 * data8={{{timedlife|}}}
 * label9=Type
 * data9={{{type|}}}
 * label10=Armor
 * data10={{#if:{{{armor|}}}{{{armortype|}}}|{{{armor}}} {{{armortype}}}}}

}}
 * label11=Ground attack
 * data11={{#if:{{{gamindmg|}}}{{{gamaxdmg|}}}{{{gatype|}}}|


 * {{#if:{{{gamaxdmg|}}}|{{#if:{{{gatype|}}}|{{{gadamage}}} {{{gatype}}}|

{{{gatype}}}}}|{{{gadamage}}}}}


 * label12=Air attack


 * data11=Production
 * class11=title


 * colspan=2 style="text-align:center; background:{{#if:{{{bgcolor|}}}|{{{bgcolor}}}|&#35;000000}}; color:{{#if:{{{fgcolor|}}}|{{{fgcolor}}}|&#35;FFFFFF}}; border-bottom:1px solid #999;"|Statistics

{{#if:{{{supply|}}}{{{cost_min|}}}{{{cost_gas|}}}{{{buildtime|}}}{{{produced|}}}{{{req|}}}{{{hotkey|}}}| {{#if:{{{gold|}}}|{{!}}{{!}}Gold{{!}}{{!}}{{{gold}}} {{WC3gold}}}} {{#if:{{{food|}}}|{{!}}{{!}}Gold{{!}}{{!}}{{{food}}} {{WC3food}}}}
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"

{{#if:{{{buildtime|}}}|{{!}}{{!}}Build time{{!}}{{!}}{{{buildtime}}} {{#switch: {{lc:{{{race}}}}} | terran={{SC2TerrBuild}} |human={{SC2TerrBuild}}|protoss={{SC2ProBuild}} | zerg={{SC2ZergBuild}} |}}}} {{#if:{{{produced|}}}|{{!}}{{!}}Produced at{{!}}{{!}}{{{produced}}}}} {{#if:{{{req|}}}|{{!}}{{!}}Requires{{!}}{{!}}{{{req}}}}} {{#if:{{{hotkey|}}}|{{!}}{{!}}Hotkey{{!}}{{!}}{{{hotkey}}}}}
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"

{{#if:{{{weapon|}}}|{{!}}{{!}}Weapon(s){{!}}{{!}}{{{weapon}}}}} {{#if:{{{groundattack|}}}|{{!}}{{!}}Ground Attack{{!}}{{!}}{{{groundattack}}} }} {{#if:{{{airattack|}}}|{{!}}{{!}}Air Attack{{!}}{{!}}{{{airattack}}} }} {{#if:{{{range|}}}|{{!}}{{!}}Range{{!}}{{!}}{{{range}}} }} {{#if:{{{sight|}}}|{{!}}{{!}}Sight{{!}}{{!}}{{{sight}}}}} {{#if:{{{cooldown|}}}|{{!}}{{!}}Cooldown{{!}}{{!}}{{{cooldown}}}}} {{#if:{{{speed|}}}|{{!}}Speed{{!}}{{!}}{{{speed}}}}}
 * colspan=2 style="text-align:center; font-size:150%; background:{{#if:{{{bgcolor|}}}|{{{bgcolor}}}|&#35;000000}}; color:{{#if:{{{fgcolor|}}}|{{{fgcolor}}}|&#35;FFFFFF}}; border-top:1px solid #999; border-bottom:1px solid #999;"|Combat
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * -style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 * }

Usage
Copy and paste the following into the article and fill in the fields.