Difference between revisions of "Template:InfoboxChassis"

From BTAWiki
Jump to navigation Jump to search
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
+
<table class="infoboxmech">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
+
  <tr>
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
+
    <th style="text-align:center;" colspan="2">
<table>{{#if:{{{class|}}}|<tr>
+
      <div class="infobox-mechname">{{{name|{{PAGENAME}}}}}</div>
     <th>Class</th>
+
    </th>
 +
  </tr>
 +
 
 +
  <tr>
 +
    <td class="infobox-mechimage" colspan="2">{{#if:{{{image|}}}|[[File:{{{image}}}]]}}</td>
 +
  </tr>
 +
 
 +
  <tr>
 +
    <th style="text-align:center;" colspan="2">Technical Specifications</th>
 +
  </tr>
 +
 
 +
  {{#if:{{{class|}}}|
 +
  <tr>
 +
     <th align=left>Class</th>
 
     <td>{{{class}}}</td>
 
     <td>{{{class}}}</td>
</tr>}}{{#if:{{{weight|}}}|<tr>
+
  </tr>
 +
  }}
 +
 
 +
  {{#if:{{{weight|}}}|
 +
  <tr>
 
     <th>Weight</th>
 
     <th>Weight</th>
 
     <td>{{{weight}}}</td>
 
     <td>{{{weight}}}</td>
</tr>}}{{#if:{{{param3|}}}|<tr>
+
  </tr>
     <th>Parameter 3</th>
+
  }}
     <td>{{{param3}}}</td>
+
 
</tr>}}{{#if:{{{param4|}}}|<tr>
+
  {{#if:{{{base model|}}}|
     <th>Parameter 4</th>
+
  <tr>
     <td>{{{param4}}}</td>
+
     <th>Base Model</th>
</tr>}}{{#if:{{{param5|}}}|<tr>
+
     <td>{{{base model}}}</td>
     <th>Parameter 5</th>
+
  </tr>
     <td>{{{param5}}}</td>
+
  }}
</tr>}}</table>
+
 
</div>
+
  {{#if:{{{type|}}}|
 +
  <tr>
 +
    <th>'Mech Type</th>
 +
    <td>{{{type}}}</td>
 +
  </tr>
 +
  }}
 +
 
 +
  <tr>
 +
    <th style="text-align:center;" colspan=2>Game Data</th>
 +
  </tr>
 +
 
 +
  {{#if:{{{variants|}}}|
 +
  <tr>
 +
     <th>Variants</th>
 +
     <td>{{{variants}}}</td>
 +
  </tr>
 +
  }}
 +
 
 +
  {{#if:{{{stock roles|}}}|
 +
  <tr>
 +
     <th>Stock Roles</th>
 +
     <td>{{{stock roles}}}</td>
 +
  </tr>
 +
  }}
 +
 
 +
  <tr>
 +
    <th style="text-align:center;" colspan=2>Production Information</th>
 +
  </tr>
 +
 
 +
  {{#if:{{{introduced|}}}|
 +
  <tr>
 +
    <th>Introduced</th>
 +
    <td>{{{introduced}}}</td>
 +
  </tr>
 +
  }}
 +
</table>
  
<noinclude>Basic template to create Infoboxes for Mech Chassis.</noinclude>
+
<noinclude>Basic template to create Infoboxes for Mech Chassis. Syntax and usage example is below:
 +
<pre>
 +
{{InfoboxChassis
 +
|name = Kingfisher
 +
|image = Kingfisher.png
 +
|class = Assault
 +
|weight = 90T
 +
|base model = Prime
 +
|type = Clan Omnimech
 +
|variants = 10
 +
|introduced =  2887
 +
}}
 +
</pre>
 +
</noinclude>

Latest revision as of 02:48, 17 November 2020

InfoboxChassis
Technical Specifications
Game Data
Production Information

Basic template to create Infoboxes for Mech Chassis. Syntax and usage example is below:

{{InfoboxChassis
|name = Kingfisher
|image = Kingfisher.png
|class = Assault
|weight = 90T
|base model = Prime
|type = Clan Omnimech
|variants = 10
|introduced =  2887
}}