Difference between revisions of "Template:InfoboxChassis"

From BTAWiki
Jump to navigation Jump to search
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<infobox>
+
<table class="infoboxmech">
   <title source="title">
+
   <tr>
    <default>{{PAGENAME}}</default>
+
    <th style="text-align:center;" colspan="2">
   </title>
+
      <div class="infobox-mechname">{{{name|{{PAGENAME}}}}}</div>
   <image source="image">
+
    </th>
     <caption source="caption1"/>
+
   </tr>
   </image>
+
 
   <group>
+
   <tr>
     <header>Technical Specifications</header>
+
     <td class="infobox-mechimage" colspan="2">{{#if:{{{image|}}}|[[File:{{{image}}}]]}}</td>
    <data source="class">
+
   </tr>
      <label>Class</label>
+
 
     </data>
+
   <tr>
    <data source="weight">
+
     <th style="text-align:center;" colspan="2">Technical Specifications</th>
      <label>Weight</label>
+
  </tr>
     </data>
+
 
    <data source="base model">
+
  {{#if:{{{class|}}}|
      <label>Base Model</label>
+
  <tr>
     </data>
+
    <th align=left>Class</th>
    <data source="type">
+
     <td>{{{class}}}</td>
      <label>Mech Type</label>
+
  </tr>
     </data>
+
  }}
   </group>
+
 
   <group>
+
  {{#if:{{{weight|}}}|
     <header>Game Data</header>
+
  <tr>
    <data source="variants">
+
    <th>Weight</th>
      <label>Variants</label>
+
     <td>{{{weight}}}</td>
     </data>
+
  </tr>
    <data source="stock roles">
+
  }}
      <label>Stock Roles</label>
+
 
     </data>
+
  {{#if:{{{base model|}}}|
   </group>
+
  <tr>
   <group>
+
    <th>Base Model</th>
     <header>Production Information</header>
+
     <td>{{{base model}}}</td>
    <data source="introduced">
+
  </tr>
      <label>Introduced</label>
+
  }}
     </data>
+
 
   </group>
+
  {{#if:{{{type|}}}|
</infobox>
+
  <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. 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 03: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
}}