Difference between revisions of "Template:InfoboxVehicle"

From BTAWiki
Jump to navigation Jump to search
m
 
(9 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
<th style="text-align:center;" colspan=2>Specifications</th>
 
<th style="text-align:center;" colspan=2>Specifications</th>
 
</tr>
 
</tr>
 +
 +
        {{#if:{{{controllable|}}}|
 +
<tr>
 +
<th align=left>Controllable</th>
 +
<td>{{{controllable}}}</td>
 +
</tr>
 +
}}
  
 
{{#if:{{{class|}}}|
 
{{#if:{{{class|}}}|
Line 20: Line 27:
 
<th align=left>Class</th>
 
<th align=left>Class</th>
 
<td>{{{class}}}</td>
 
<td>{{{class}}}</td>
 +
</tr>
 +
}}
 +
 +
        {{#if:{{{weight|}}}|
 +
<tr>
 +
<th>Weight</th>
 +
<td>{{{weight}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 27: Line 41:
 
<th>Speed</th>
 
<th>Speed</th>
 
<td>{{{speed}}}</td>
 
<td>{{{speed}}}</td>
 +
</tr>
 +
}}
 +
 +
        {{#if:{{{propulsion|}}}|
 +
<tr>
 +
<th>Propulsion</th>
 +
<td>{{{propulsion}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 40: Line 61:
 
<tr>
 
<tr>
 
<th>Durability</th>
 
<th>Durability</th>
<td>Armor: {{{armor}}} <br>Structure: {{{structure}}}</td>
+
<td>Total Armor: {{{armor}}}<br>Total Structure: {{{structure}}}<br>Front Armor/Structure: {{{frontarmor}}}<br>Left Armor/Structure: {{{leftarmor}}}<br>Right Armor/Structure: {{{rightarmor}}}<br>Rear Armor/Structure: {{{reararmor}}}<br>Turret Armor/Structure: {{{turretarmor}}}<br></td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 51: Line 72:
 
<tr>
 
<tr>
 
<th>Weapons</th>
 
<th>Weapons</th>
<td class="variantequipment">{{{weapon1}}}{{#if:{{{weapon2|}}}|<br>{{{weapon2}}}}}{{#if:{{{weapon3|}}}|<br>{{{weapon3}}}}}{{#if:{{{weapon4|}}}|<br>{{{weapon4}}}}}{{#if:{{{weapon5|}}}|<br>{{{weapon5}}}}}{{#if:{{{weapon6|}}}|<br>{{{weapon6}}}}}{{#if:{{{weapon7|}}}|<br>{{{weapon7}}}}}{{#if:{{{weapon8|}}}|<br>{{{weapon8}}}}}{{#if:{{{weapon9|}}}|<br>{{{weapon9}}}}}{{#if:{{{weapon10|}}}|<br>{{{weapon10}}}}}{{#if:{{{weapon11|}}}|<br>{{{weapon11}}}}}{{#if:{{{weapon12|}}}|<br>{{{weapon12}}}}}</td>
+
<td class="variantequipment">{{{weapon1}}}{{#if:{{{weapon2|}}}|<br>{{{weapon2}}}}}{{#if:{{{weapon3|}}}|<br>{{{weapon3}}}}}{{#if:{{{weapon4|}}}|<br>{{{weapon4}}}}}{{#if:{{{weapon5|}}}|<br>{{{weapon5}}}}}{{#if:{{{weapon6|}}}|<br>{{{weapon6}}}}}{{#if:{{{weapon7|}}}|<br>{{{weapon7}}}}}{{#if:{{{weapon8|}}}|<br>{{{weapon8}}}}}{{#if:{{{weapon9|}}}|<br>{{{weapon9}}}}}{{#if:{{{weapon10|}}}|<br>{{{weapon10}}}}}{{#if:{{{weapon11|}}}|<br>{{{weapon11}}}}}{{#if:{{{weapon12|}}}|<br>{{{weapon12}}}}}{{#if:{{{weapon13|}}}|<br>{{{weapon13}}}}}{{#if:{{{weapon14|}}}|<br>{{{weapon14}}}}}{{#if:{{{weapon15|}}}|<br>{{{weapon15}}}}}{{#if:{{{weapon16|}}}|<br>{{{weapon16}}}}}{{#if:{{{weapon117|}}}|<br>{{{weapon117}}}}}{{#if:{{{weapon118|}}}|<br>{{{weapon18}}}}}{{#if:{{{weapon119|}}}|<br>{{{weapon119}}}}}{{#if:{{{weapon20|}}}|<br>{{{weapon20}}}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 58: Line 79:
 
<tr>
 
<tr>
 
<th>Ammunition</th>
 
<th>Ammunition</th>
<td class="variantequipment">{{{ammo1}}}{{#if:{{{ammo2|}}}|<br>{{{ammo2}}}}}{{#if:{{{ammo3|}}}|<br>{{{ammo3}}}}}{{#if:{{{ammo4|}}}|<br>{{{ammo4}}}}}{{#if:{{{ammo5|}}}|<br>{{{ammo5}}}}}{{#if:{{{ammo6|}}}|<br>{{{ammo6}}}}}{{#if:{{{ammo7|}}}|<br>{{{ammo7}}}}}{{#if:{{{ammo8|}}}|<br>{{{ammo8}}}}}{{#if:{{{ammo9|}}}|<br>{{{ammo9}}}}}{{#if:{{{ammo10|}}}|<br>{{{ammo10}}}}}{{#if:{{{ammo11|}}}|<br>{{{ammo11}}}}}{{#if:{{{ammo12|}}}|<br>{{{ammo12}}}}}</td>
+
<td class="variantequipment">{{{ammo1}}}{{#if:{{{ammo2|}}}|<br>{{{ammo2}}}}}{{#if:{{{ammo3|}}}|<br>{{{ammo3}}}}}{{#if:{{{ammo4|}}}|<br>{{{ammo4}}}}}{{#if:{{{ammo5|}}}|<br>{{{ammo5}}}}}{{#if:{{{ammo6|}}}|<br>{{{ammo6}}}}}{{#if:{{{ammo7|}}}|<br>{{{ammo7}}}}}{{#if:{{{ammo8|}}}|<br>{{{ammo8}}}}}{{#if:{{{ammo9|}}}|<br>{{{ammo9}}}}}{{#if:{{{ammo10|}}}|<br>{{{ammo10}}}}}{{#if:{{{ammo11|}}}|<br>{{{ammo11}}}}}{{#if:{{{ammo12|}}}|<br>{{{ammo12}}}}}{{#if:{{{ammo13|}}}|<br>{{{ammo13}}}}}{{#if:{{{ammo14|}}}|<br>{{{ammo14}}}}}{{#if:{{{ammo15|}}}|<br>{{{ammo15}}}}}{{#if:{{{ammo16|}}}|<br>{{{ammo16}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
        {{#if:{{{gear1|}}}|
 +
<tr>
 +
<th>Gear</th>
 +
<td class="variantequipment">{{{gear1}}}{{#if:{{{gear2|}}}|<br>{{{gear2}}}}}{{#if:{{{gear3|}}}|<br>{{{gear3}}}}}{{#if:{{{gear4|}}}|<br>{{{gear4}}}}}{{#if:{{{gear5|}}}|<br>{{{gear5}}}}}{{#if:{{{gear6|}}}|<br>{{{gear6}}}}}{{#if:{{{gear7|}}}|<br>{{{gear7}}}}}{{#if:{{{gear8|}}}|<br>{{{gear8}}}}}{{#if:{{{gear9|}}}|<br>{{{gear9}}}}}{{#if:{{{gear10|}}}|<br>{{{gear10}}}}}{{#if:{{{gear11|}}}|<br>{{{gear11}}}}}{{#if:{{{gear12|}}}|<br>{{{gear12}}}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 64: Line 92:
 
</table>
 
</table>
  
<noinclude>Basic template to create Infoboxes for Turrets. Example below. Note that you can specify up to 12 equipment per location (weapons/ammo). You MUST use #1 though for the row to not be hidden. Any unused info is automatically hidden, so exclude it if you want it hidden.
+
<noinclude>Basic template to create Infoboxes for vehicles. Example below. Note that you can specify up to 12 equipment per location (weapons/ammo). You MUST use #1 though for the row to not be hidden. Any unused info is automatically hidden, so exclude it if you want it hidden.
 
<pre>
 
<pre>
 
{{InfoboxVehicle
 
{{InfoboxVehicle
 
|vehiclename =  
 
|vehiclename =  
 
|image = VehicleName.png
 
|image = VehicleName.png
 +
|controllable =
 
|class =  
 
|class =  
 +
|weight =
 +
|speed =
 +
|propulsion
 
|maxdamage =  
 
|maxdamage =  
 
|maxstability =  
 
|maxstability =  
Line 75: Line 107:
 
|armor =  
 
|armor =  
 
|structure =  
 
|structure =  
 +
|frontarmor =
 +
|leftarmor =
 +
|rightarmor =
 +
|reararmor =
 +
|turretarmor =
 
|weapon1 =  
 
|weapon1 =  
 
|weapon2 =  
 
|weapon2 =  
Line 87: Line 124:
 
|weapon11 =  
 
|weapon11 =  
 
|weapon12 =  
 
|weapon12 =  
 +
|weapon13 =
 +
|weapon14 =
 +
|weapon15 =
 +
|weapon16 =
 +
|weapon17 =
 +
|weapon18 =
 +
|weapon19 =
 +
|weapon20 =
 
|ammo1 =  
 
|ammo1 =  
 
|ammo2 =  
 
|ammo2 =  
Line 99: Line 144:
 
|ammo11 =  
 
|ammo11 =  
 
|ammo12 =  
 
|ammo12 =  
 +
|gear1 =
 +
|gear2 =
 +
|gear3 =
 +
|gear4 =
 +
|gear5 =
 +
|gear6 =
 
}}
 
}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Latest revision as of 20:34, 8 August 2021

InfoboxVehicle
Specifications
Equipment

Basic template to create Infoboxes for vehicles. Example below. Note that you can specify up to 12 equipment per location (weapons/ammo). You MUST use #1 though for the row to not be hidden. Any unused info is automatically hidden, so exclude it if you want it hidden.

{{InfoboxVehicle
|vehiclename = 
|image = VehicleName.png
|controllable =
|class = 
|weight =
|speed = 
|propulsion
|maxdamage = 
|maxstability = 
|maxheat = 
|armor = 
|structure = 
|frontarmor =
|leftarmor =
|rightarmor = 
|reararmor =
|turretarmor =
|weapon1 = 
|weapon2 = 
|weapon3 = 
|weapon4 = 
|weapon5 = 
|weapon6 = 
|weapon7 = 
|weapon8 = 
|weapon9 = 
|weapon10 = 
|weapon11 = 
|weapon12 = 
|weapon13 =
|weapon14 =
|weapon15 =
|weapon16 =
|weapon17 =
|weapon18 =
|weapon19 =
|weapon20 =
|ammo1 = 
|ammo2 = 
|ammo3 = 
|ammo4 = 
|ammo5 = 
|ammo6 = 
|ammo7 = 
|ammo8 = 
|ammo9 = 
|ammo10 = 
|ammo11 = 
|ammo12 = 
|gear1 =
|gear2 = 
|gear3 = 
|gear4 = 
|gear5 =
|gear6 =
}}