Difference between revisions of "Template:InfoboxChassis"

From BTAWiki
Jump to navigation Jump to search
Line 2: Line 2:
 
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
 
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{class|}}}|<tr>
+
<table>
    <th>Class</th>
+
  {{#if:{{{class|}}}|<
    <td>{{{class}}}</td>
+
    tr>
</tr>}}{{#if:{{{weight|}}}|<tr>
+
      <th>Class</th>
    <th>Weight</th>
+
      <td>{{{class}}}</td>
    <td>{{{weight}}}</td>
+
    </tr>
</tr>}}{{#if:{{{param3|}}}|<tr>
+
  }}
     <th>Parameter 3</th>
+
 
     <td>{{{param3}}}</td>
+
  {{#if:{{{weight|}}}|
</tr>}}{{#if:{{{param4|}}}|<tr>
+
    <tr>
    <th>Parameter 4</th>
+
      <th>Weight</th>
    <td>{{{param4}}}</td>
+
      <td>{{{weight}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
+
    </tr>
    <th>Parameter 5</th>
+
  }}
    <td>{{{param5}}}</td>
+
 
</tr>}}</table>
+
  {{#if:{{{base model|}}}|
 +
    <tr>
 +
      <th>Base Model</th>
 +
      <td>{{{base model}}}</td>
 +
    </tr>
 +
  }}
 +
 
 +
  {{#if:{{{type|}}}|
 +
     <tr>
 +
      <th>'Mech Type</th>
 +
      <td>{{{type}}}</td>
 +
     </tr>
 +
  }}
 +
 
 +
  {{#if:{{{variants|}}}|
 +
    <tr>
 +
      <th>Variants</th>
 +
      <td>{{{variants}}}</td>
 +
    </tr>
 +
  }}
 +
 
 +
  {{#if:{{{stock roles|}}}|
 +
    <tr>
 +
      <th>Stock Roles</th>
 +
      <td>{{{stock roles}}}</td>
 +
    </tr>
 +
  }}
 +
 
 +
  {{#if:{{{introduced|}}}|
 +
    <tr>
 +
      <th>Introduced</th>
 +
      <td>{{{introduced}}}</td>
 +
    </tr>
 +
  }}
 +
</table>
 
</div>
 
</div>
  
 
<noinclude>Basic template to create Infoboxes for Mech Chassis.</noinclude>
 
<noinclude>Basic template to create Infoboxes for Mech Chassis.</noinclude>

Revision as of 09:35, 16 November 2020

InfoboxChassis

Basic template to create Infoboxes for Mech Chassis.