Difference between revisions of "Template:InfoboxChassis"

From BTAWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<div class="infoboxchassis">
 
<div class="infoboxchassis">
  
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
+
<table>
 +
  <tr>
 +
    <td colspan=2>
 +
      <div class="infobox-chassisname">{{{name|{{PAGENAME}}}}}</div>
 +
    </td>
 +
  </tr>
  
{{#if:{{{image|}}}|
+
  <tr>
  <div class="infobox-image">[[File:{{{image}}}]]</div>
+
    <td colspan=2>
}}
+
      {{#if:{{{image|}}}|
 +
        <div class="infobox-image">[[File:{{{image}}}]]</div>
 +
      }}
 +
    </td>
 +
  </tr>
  
<table>
 
 
   {{#if:{{{class|}}}|
 
   {{#if:{{{class|}}}|
    <tr>
+
  <tr>
      <th>Class</th>
+
    <th>Class</th>
      <td>{{{class}}}</td>
+
    <td>{{{class}}}</td>
    </tr>
+
  </tr>
 
   }}
 
   }}
  
 
   {{#if:{{{weight|}}}|
 
   {{#if:{{{weight|}}}|
    <tr>
+
  <tr>
      <th>Weight</th>
+
    <th>Weight</th>
      <td>{{{weight}}}</td>
+
    <td>{{{weight}}}</td>
    </tr>
+
  </tr>
 
   }}
 
   }}
 
    
 
    
 
   {{#if:{{{base model|}}}|
 
   {{#if:{{{base model|}}}|
    <tr>
+
  <tr>
      <th>Base Model</th>
+
    <th>Base Model</th>
      <td>{{{base model}}}</td>
+
    <td>{{{base model}}}</td>
    </tr>
+
  </tr>
 
   }}
 
   }}
  
 
   {{#if:{{{type|}}}|
 
   {{#if:{{{type|}}}|
    <tr>
+
  <tr>
      <th>'Mech Type</th>
+
    <th>'Mech Type</th>
      <td>{{{type}}}</td>
+
    <td>{{{type}}}</td>
    </tr>
+
  </tr>
 
   }}
 
   }}
  
 
   {{#if:{{{variants|}}}|
 
   {{#if:{{{variants|}}}|
    <tr>
+
  <tr>
      <th>Variants</th>
+
    <th>Variants</th>
      <td>{{{variants}}}</td>
+
    <td>{{{variants}}}</td>
    </tr>
+
  </tr>
 
   }}
 
   }}
  
 
   {{#if:{{{stock roles|}}}|
 
   {{#if:{{{stock roles|}}}|
    <tr>
+
  <tr>
      <th>Stock Roles</th>
+
    <th>Stock Roles</th>
      <td>{{{stock roles}}}</td>
+
    <td>{{{stock roles}}}</td>
    </tr>
+
  </tr>
 
   }}
 
   }}
  
 
   {{#if:{{{introduced|}}}|
 
   {{#if:{{{introduced|}}}|
    <tr>
+
  <tr>
      <th>Introduced</th>
+
    <th>Introduced</th>
      <td>{{{introduced}}}</td>
+
    <td>{{{introduced}}}</td>
    </tr>
+
  </tr>
 
   }}
 
   }}
 
</table>
 
</table>

Revision as of 11:27, 16 November 2020

InfoboxChassis

Basic template to create Infoboxes for Mech Chassis.