Difference between revisions of "Template:InfoboxVariant"

From BTAWiki
Jump to navigation Jump to search
(Created page with "<infobox> <title source="title"/> <image source="image"> <caption source="caption1"/> </image> <group collapse="open"> <header>General Data</header> <data...")
 
 
(59 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<infobox>
+
<table class="infoboxvariant">
  <title source="title"/>
+
<tr>
  <image source="image">
+
<th style="text-align:center;" colspan=2>
    <caption source="caption1"/>
+
<div class="infobox-variantname">{{{variantname|{{PAGENAME}}}}}</div>
  </image>
+
</th>
  <group collapse="open">
+
</tr>
    <header>General Data</header>
+
 
    <data source="name">
+
<tr>
      <label>Name</label>
+
<td class="infobox-variantloadoutimage" colspan="2">
    </data>
+
{{#if:{{{image|}}}|[[File:{{{image}}}|x256px|frameless|center]]}}
    <data source="class">
+
</td>
      <label>Class</label>
+
</tr>
    </data>
+
 
    <data source="tonnage">
+
<tr>
      <label>Tonnage</label>
+
<th style="text-align:center;" colspan=2>General Data</th>
    </data>
+
</tr>
    <data source="stock_role">
+
 
      <label>Stock Role</label>
+
{{#if:{{{mechtype|}}}|
    </data>
+
<tr>
    <data source="cost">
+
<th align=left>'Mech Type</th>
      <label>Cost</label>
+
<td>{{{mechtype}}}</td>
    </data>
+
</tr>
    <data source="rarity">
+
}}
      <label>Rarity</label>
+
 
    </data>
+
{{#if:{{{class|}}}|
    <data source="hardpoints">
+
<tr>
      <label>Hardpoints</label>
+
<th align=left>Class</th>
    </data>
+
<td>{{{class}}}</td>
    <data source="jump_jets">
+
</tr>
      <label>Jump Jets</label>
+
}}
    </data>
+
 
  </group>
+
{{#if:{{{weight|}}}|
  <group collapse="open">
+
<tr>
    <header>Stock Specifications</header>
+
<th>Weight</th>
    <data source="firepower">
+
<td>{{{weight}}}</td>
      <label>Firepower</label>
+
</tr>
    </data>
+
}}
    <data source="movement">
+
 
      <label>Movement</label>
+
{{#if:{{{stock role|}}}|
    </data>
+
<tr>
    <data source="durability">
+
<th>Stock Role</th>
      <label>Durability</label>
+
<td>{{{stock role}}}</td>
    </data>
+
</tr>
    <data source="heat">
+
}}
      <label>Heat</label>
+
 
    </data>
+
{{#if:{{{rarity|}}}|
    <data source="range">
+
<tr>
      <label>Range</label>
+
<th>Rarity</th>
    </data>
+
<td>{{{rarity}}}</td>
    <data source="melee">
+
</tr>
      <label>Melee</label>
+
}}
    </data>
+
 
  </group>
+
<tr>
  <group collapse="open">
+
<th style="text-align:center;" colspan=2>Stock Specifications</th>
    <header>Stock Equipment</header>
+
</tr>
    <data source="general">
+
 
      <label>General</label>
+
<tr>
    </data>
+
<th>Hardpoints</th>
    <data source="head">
+
<td>{{#if:{{{ballistic|}}}|Ballistic: {{{ballistic}}}<br>}}{{#if:{{{energy|}}}|Energy: {{{energy}}}<br>}}{{#if:{{{missile|}}}|Missile: {{{missile}}}<br>}}{{#if:{{{support|}}}|Support: {{{support}}}<br>}}{{#if:{{{artillery|}}}|Artillery: {{{artillery}}}<br>}}{{#if:{{{omni|}}}|Omni: {{{omni}}}}}{{#if:{{{bomb|}}}|Bomb Bay: {{{bomb}}}<br>}}{{#if:{{{melee|}}}|Melee: {{{melee}}}<br>}}</td>
      <label>Head</label>
+
</tr>
    </data>
+
 
    <data source="center_torso">
+
{{#if:{{{speed|}}}|
      <label>Center Torso</label>
+
<tr>
    </data>
+
<th>Speed</th>
    <data source="right_torso">
+
<td>{{{speed}}}</td>
      <label>Right Torso</label>
+
</tr>
    </data>
+
}}
    <data source="left_torso">
+
 
      <label>Left Torso</label>
+
{{#if:{{{modspeed|}}}|
    </data>
+
<tr>
    <data source="right_arm">
+
<th>Modified Sprint</th>
      <label>Right Arm</label>
+
<td>{{{modspeed}}}</td>
    </data>
+
</tr>
    <data source="left_arm">
+
}}
      <label>Left Arm</label>
+
 
    </data>
+
{{#if:{{{flightspeed|}}}|
    <data source="right_leg">
+
<tr>
      <label>Right Leg</label>
+
<th>Flight Speed</th>
    </data>
+
<td>{{{flightspeed}}}</td>
    <data source="left_leg">
+
</tr>
      <label>Left Leg</label>
+
}}
    </data>
+
 
  </group>
+
{{#if:{{{maxdamage|}}}|
</infobox><noinclude>{{documentation}}</noinclude>
+
<tr>
 +
<th>Firepower</th>
 +
<td>Max Damage: {{{maxdamage}}}{{#if:{{{maxstability|}}}|<br>Max Stability: {{{maxstability}}}}}{{#if:{{{maxheat|}}}|<br>Max Heat: {{{maxheat}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{armor|}}}|
 +
<tr>
 +
<th>Durability</th>
 +
<td>Armor: {{{armor}}} <br>Structure: {{{structure}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{heatsinking|}}}|
 +
<tr>
 +
<th>Heat Efficiency</th>
 +
<td>Sinking: {{{heatsinking}}} <br>Alpha: {{{alphaheat}}}</td>
 +
</tr>
 +
}}
 +
 
 +
<tr>
 +
<th>Melee</th>
 +
<td>{{#if:{{{chargedamage|}}}|Charge: {{{chargedamage}}}<br>}}{{#if:{{{kickdamage|}}}|Kick: {{{kickdamage}}}<br>}}{{#if:{{{meleeweapondamage|}}}|Weapon: {{{meleeweapondamage}}}<br>}}{{#if:{{{punchdamage|}}}|Punch: {{{punchdamage}}}<br>}}{{#if:{{{dfadamage|}}}|DFA: {{{dfadamage}}}<br>}}</td>
 +
</tr>
 +
 
 +
<tr>
 +
<th style="text-align:center;" colspan=2>Stock Equipment</th>
 +
</tr>
 +
 
 +
{{#if:{{{enginetype|}}}|
 +
<tr>
 +
<th>Engine</th>
 +
<td>{{{enginetype}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{coresize|}}}|
 +
<tr>
 +
<th>Core</th>
 +
<td>{{{coresize}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{heatsinkkit|}}}|
 +
<tr>
 +
<th>Heat Sinks</th>
 +
<td>{{{heatsinkkit}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{ecooling|}}}|
 +
<tr>
 +
<th>E-Cooling</th>
 +
<td>{{{ecooling}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{gyro|}}}|
 +
<tr>
 +
<th>Gyro</th>
 +
<td>{{{gyro}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{structuretype|}}}|
 +
<tr>
 +
<th>Structure</th>
 +
<td>{{{structuretype}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{armortype|}}}|
 +
<tr>
 +
<th>Armor</th>
 +
<td>{{{armortype}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{headequip1|}}}|
 +
<tr>
 +
<th>Head</th>
 +
<td class="variantequipment">{{{headequip1}}}{{#if:{{{headequip2|}}}|<br>{{{headequip2}}}}}{{#if:{{{headequip3|}}}|<br>{{{headequip3}}}}}{{#if:{{{headequip4|}}}|<br>{{{headequip4}}}}}{{#if:{{{headequip5|}}}|<br>{{{headequip5}}}}}{{#if:{{{headequip6|}}}|<br>{{{headequip6}}}}}{{#if:{{{headequip7|}}}|<br>{{{headequip7}}}}}{{#if:{{{headequip8|}}}|<br>{{{headequip8}}}}}{{#if:{{{headequip9|}}}|<br>{{{headequip9}}}}}{{#if:{{{headequip10|}}}|<br>{{{headequip10}}}}}{{#if:{{{headequip11|}}}|<br>{{{headequip11}}}}}{{#if:{{{headequip12|}}}|<br>{{{headequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{ctequip1|}}}|
 +
<tr>
 +
<th>Center Torso</th>
 +
<td class="variantequipment">{{{ctequip1}}}{{#if:{{{ctequip2|}}}|<br>{{{ctequip2}}}}}{{#if:{{{ctequip3|}}}|<br>{{{ctequip3}}}}}{{#if:{{{ctequip4|}}}|<br>{{{ctequip4}}}}}{{#if:{{{ctequip5|}}}|<br>{{{ctequip5}}}}}{{#if:{{{ctequip6|}}}|<br>{{{ctequip6}}}}}{{#if:{{{ctequip7|}}}|<br>{{{ctequip7}}}}}{{#if:{{{ctequip8|}}}|<br>{{{ctequip8}}}}}{{#if:{{{ctequip9|}}}|<br>{{{ctequip9}}}}}{{#if:{{{ctequip10|}}}|<br>{{{ctequip10}}}}}{{#if:{{{ctequip11|}}}|<br>{{{ctequip11}}}}}{{#if:{{{ctequip12|}}}|<br>{{{ctequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{ltequip1|}}}|
 +
<tr>
 +
<th>Left Torso</th>
 +
<td class="variantequipment">{{{ltequip1}}}{{#if:{{{ltequip2|}}}|<br>{{{ltequip2}}}}}{{#if:{{{ltequip3|}}}|<br>{{{ltequip3}}}}}{{#if:{{{ltequip4|}}}|<br>{{{ltequip4}}}}}{{#if:{{{ltequip5|}}}|<br>{{{ltequip5}}}}}{{#if:{{{ltequip6|}}}|<br>{{{ltequip6}}}}}{{#if:{{{ltequip7|}}}|<br>{{{ltequip7}}}}}{{#if:{{{ltequip8|}}}|<br>{{{ltequip8}}}}}{{#if:{{{ltequip9|}}}|<br>{{{ltequip9}}}}}{{#if:{{{ltequip10|}}}|<br>{{{ltequip10}}}}}{{#if:{{{ltequip11|}}}|<br>{{{ltequip11}}}}}{{#if:{{{ltequip12|}}}|<br>{{{ltequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{rtequip1|}}}|
 +
<tr>
 +
<th>Right Torso</th>
 +
<td class="variantequipment">{{{rtequip1}}}{{#if:{{{rtequip2|}}}|<br>{{{rtequip2}}}}}{{#if:{{{rtequip3|}}}|<br>{{{rtequip3}}}}}{{#if:{{{rtequip4|}}}|<br>{{{rtequip4}}}}}{{#if:{{{rtequip5|}}}|<br>{{{rtequip5}}}}}{{#if:{{{rtequip6|}}}|<br>{{{rtequip6}}}}}{{#if:{{{rtequip7|}}}|<br>{{{rtequip7}}}}}{{#if:{{{rtequip8|}}}|<br>{{{rtequip8}}}}}{{#if:{{{rtequip9|}}}|<br>{{{rtequip9}}}}}{{#if:{{{rtequip10|}}}|<br>{{{rtequip10}}}}}{{#if:{{{rtequip11|}}}|<br>{{{rtequip11}}}}}{{#if:{{{rtequip12|}}}|<br>{{{rtequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{laequip1|}}}|
 +
<tr>
 +
<th>Left Arm</th>
 +
<td class="variantequipment">{{{laequip1}}}{{#if:{{{laequip2|}}}|<br>{{{laequip2}}}}}{{#if:{{{laequip3|}}}|<br>{{{laequip3}}}}}{{#if:{{{laequip4|}}}|<br>{{{laequip4}}}}}{{#if:{{{laequip5|}}}|<br>{{{laequip5}}}}}{{#if:{{{laequip6|}}}|<br>{{{laequip6}}}}}{{#if:{{{laequip7|}}}|<br>{{{laequip7}}}}}{{#if:{{{laequip8|}}}|<br>{{{laequip8}}}}}{{#if:{{{laequip9|}}}|<br>{{{laequip9}}}}}{{#if:{{{laequip10|}}}|<br>{{{laequip10}}}}}{{#if:{{{laequip11|}}}|<br>{{{laequip11}}}}}{{#if:{{{laequip12|}}}|<br>{{{laequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{raequip1|}}}|
 +
<tr>
 +
<th>Right Arm</th>
 +
<td class="variantequipment">{{{raequip1}}}{{#if:{{{raequip2|}}}|<br>{{{raequip2}}}}}{{#if:{{{raequip3|}}}|<br>{{{raequip3}}}}}{{#if:{{{raequip4|}}}|<br>{{{raequip4}}}}}{{#if:{{{raequip5|}}}|<br>{{{raequip5}}}}}{{#if:{{{raequip6|}}}|<br>{{{raequip6}}}}}{{#if:{{{raequip7|}}}|<br>{{{raequip7}}}}}{{#if:{{{raequip8|}}}|<br>{{{raequip8}}}}}{{#if:{{{raequip9|}}}|<br>{{{raequip9}}}}}{{#if:{{{raequip10|}}}|<br>{{{raequip10}}}}}{{#if:{{{raequip11|}}}|<br>{{{raequip11}}}}}{{#if:{{{raequip12|}}}|<br>{{{raequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{llequip1|}}}|
 +
<tr>
 +
<th>Left Leg</th>
 +
<td class="variantequipment">{{{llequip1}}}{{#if:{{{llequip2|}}}|<br>{{{llequip2}}}}}{{#if:{{{llequip3|}}}|<br>{{{llequip3}}}}}{{#if:{{{llequip4|}}}|<br>{{{llequip4}}}}}{{#if:{{{llequip5|}}}|<br>{{{llequip5}}}}}{{#if:{{{llequip6|}}}|<br>{{{llequip6}}}}}{{#if:{{{llequip7|}}}|<br>{{{llequip7}}}}}{{#if:{{{llequip8|}}}|<br>{{{llequip8}}}}}{{#if:{{{llequip9|}}}|<br>{{{llequip9}}}}}{{#if:{{{llequip10|}}}|<br>{{{llequip10}}}}}{{#if:{{{llequip11|}}}|<br>{{{llequip11}}}}}{{#if:{{{llequip12|}}}|<br>{{{llequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
{{#if:{{{rlequip1|}}}|
 +
<tr>
 +
<th>Right Leg</th>
 +
<td class="variantequipment">{{{rlequip1}}}{{#if:{{{rlequip2|}}}|<br>{{{rlequip2}}}}}{{#if:{{{rlequip3|}}}|<br>{{{rlequip3}}}}}{{#if:{{{rlequip4|}}}|<br>{{{rlequip4}}}}}{{#if:{{{rlequip5|}}}|<br>{{{rlequip5}}}}}{{#if:{{{rlequip6|}}}|<br>{{{rlequip6}}}}}{{#if:{{{rlequip7|}}}|<br>{{{rlequip7}}}}}{{#if:{{{rlequip8|}}}|<br>{{{rlequip8}}}}}{{#if:{{{rlequip9|}}}|<br>{{{rlequip9}}}}}{{#if:{{{rlequip10|}}}|<br>{{{rlequip10}}}}}{{#if:{{{rlequip11|}}}|<br>{{{rlequip11}}}}}{{#if:{{{rlequip12|}}}|<br>{{{rlequip12}}}}}</td>
 +
</tr>
 +
}}
 +
 
 +
</table>
 +
 
 +
<noinclude>Basic template to create Infoboxes for Mech Variants. Example below. Note that you can specify up to 12 equipment per location (raequip1, raequip2, raequip12 for example). 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>
 +
{{InfoboxVariant
 +
|variantname =
 +
|image = Mechname.png
 +
|mechtype =
 +
|class =
 +
|weight =
 +
|stock role =
 +
|ballistic =
 +
|energy =
 +
|missile =
 +
|support =
 +
|artillery =
 +
|omni =
 +
|bomb =
 +
|melee =
 +
|speed =
 +
|modspeed = (Note MASC or TSM in parentheses)
 +
|flightspeed = (Only applicable to LAMs, leave blank or delete for non-LAMs)
 +
|maxdamage =
 +
|maxstability =
 +
|maxheat =
 +
|armor =
 +
|structure =
 +
|heatsinking =
 +
|alphaheat =
 +
|kickdamage =
 +
|punchdamage =
 +
|dfadamage =
 +
|meleeweapondamage =
 +
|enginetype =
 +
|coresize =
 +
|heatsinkkit =
 +
|ecooling =
 +
|gyro =
 +
|structuretype =
 +
|armortype =
 +
|headequip1 =
 +
|headequip2 =
 +
|headequip3 =
 +
|headequip4 =
 +
|ctequip1 =
 +
|ctequip2 =
 +
|ctequip3 =
 +
|ctequip4 =
 +
|ltequip1 =
 +
|ltequip2 =
 +
|ltequip3 =
 +
|ltequip4 =
 +
|ltequip5 =
 +
|ltequip6 =
 +
|ltequip7 =
 +
|ltequip8 =
 +
|ltequip9 =
 +
|ltequip10 =
 +
|ltequip11 =
 +
|ltequip12 =
 +
|rtequip1 =
 +
|rtequip2 =
 +
|rtequip3 =
 +
|rtequip4 =
 +
|rtequip5 =
 +
|rtequip6 =
 +
|rtequip7 =
 +
|rtequip8 =
 +
|rtequip9 =
 +
|rtequip10 =
 +
|rtequip11 =
 +
|rtequip12 =
 +
|laequip1 =
 +
|laequip2 =
 +
|laequip3 =
 +
|laequip4 =
 +
|laequip5 =
 +
|laequip6 =
 +
|laequip7 =
 +
|laequip8 =
 +
|laequip9 =
 +
|laequip10 =
 +
|raequip1 =
 +
|raequip2 =
 +
|raequip3 =
 +
|raequip4 =
 +
|raequip5 =
 +
|raequip6 =
 +
|raequip7 =
 +
|raequip8 =
 +
|raequip9 =
 +
|raequip10 =
 +
|llequip1 =
 +
|llequip2 =
 +
|rlequip1 =
 +
|rlequip2 =
 +
}}
 +
</pre>
 +
</noinclude>

Latest revision as of 06:18, 5 June 2023

InfoboxVariant
General Data
Stock Specifications
Hardpoints
Melee
Stock Equipment

Basic template to create Infoboxes for Mech Variants. Example below. Note that you can specify up to 12 equipment per location (raequip1, raequip2, raequip12 for example). 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.

{{InfoboxVariant
|variantname = 
|image = Mechname.png
|mechtype = 
|class = 
|weight = 
|stock role = 
|ballistic = 
|energy = 
|missile = 
|support = 
|artillery = 
|omni = 
|bomb = 
|melee = 
|speed = 
|modspeed = (Note MASC or TSM in parentheses)
|flightspeed = (Only applicable to LAMs, leave blank or delete for non-LAMs)
|maxdamage = 
|maxstability = 
|maxheat = 
|armor = 
|structure = 
|heatsinking = 
|alphaheat = 
|kickdamage = 
|punchdamage = 
|dfadamage = 
|meleeweapondamage = 
|enginetype = 
|coresize = 
|heatsinkkit = 
|ecooling = 
|gyro = 
|structuretype = 
|armortype = 
|headequip1 = 
|headequip2 = 
|headequip3 = 
|headequip4 = 
|ctequip1 = 
|ctequip2 = 
|ctequip3 = 
|ctequip4 = 
|ltequip1 = 
|ltequip2 = 
|ltequip3 = 
|ltequip4 = 
|ltequip5 = 
|ltequip6 = 
|ltequip7 = 
|ltequip8 = 
|ltequip9 = 
|ltequip10 = 
|ltequip11 = 
|ltequip12 = 
|rtequip1 = 
|rtequip2 = 
|rtequip3 = 
|rtequip4 = 
|rtequip5 = 
|rtequip6 = 
|rtequip7 = 
|rtequip8 = 
|rtequip9 = 
|rtequip10 = 
|rtequip11 = 
|rtequip12 = 
|laequip1 = 
|laequip2 = 
|laequip3 = 
|laequip4 = 
|laequip5 = 
|laequip6 = 
|laequip7 = 
|laequip8 = 
|laequip9 = 
|laequip10 = 
|raequip1 = 
|raequip2 = 
|raequip3 = 
|raequip4 = 
|raequip5 = 
|raequip6 = 
|raequip7 = 
|raequip8 = 
|raequip9 = 
|raequip10 = 
|llequip1 = 
|llequip2 = 
|rlequip1 = 
|rlequip2 = 
}}