Sarna News: Bad 'Mechs - Icestorm

Difference between revisions of "Template:InfoBoxBattleMech"

(test template 1)
 
m
 
(81 intermediate revisions by 14 users not shown)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;">
+
<includeonly>{| class="infobox"
<tr><td colspan="2"><div id="infoboxinternal">
+
|colspan="2"|{{#if:{{{image|}}}|[[Image:{{{image}}}|191px|{{PAGENAME}}]]|}}
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;">
+
|-
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:#ffffff;"><br><br>{{{image|}}}</td></tr>
+
!colspan="2" class="infoboxname"|{{{name|{{PAGENAME}}}}}
<tr style="text-align:center; color:#000000; background:#ffffff; font-size:larger;"><th colspan="2">{{{name}}}</th></tr> {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#bdb;">'''Production information'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Manufacturer</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
|-
{{{manufacturer|}}}
+
!colspan="2" class="infoboxheading"|Production information
</td></tr>|1{{{manufacturer|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Model</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
|- class="infoboxrow"
{{{model|}}}
+
|Manufacturer||{{{manufacturer|}}}
</td></tr>|1{{{model|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Class</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
|- class="infoboxrow"
{{{class|}}}
+
{{#if:{{{Use|}}}|
</td></tr>|1{{{class|}}}=}} {{t|1=|1{{{hidet|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#bdb;">'''Technical specifications'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Mass</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{!}} Use
{{{mass|}}}
+
{{!}} {{{Use}}}
</td></tr>|1{{{mass|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Chassis</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
}} <!-- Originally from InfoBoxIndMech, only used for industrial mechs -->
{{{chassis|}}}
+
|- class="infoboxrow"
</td></tr>|1{{{chassis|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Armor</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{#if:{{{production year|}}}|
{{{armor|}}}
+
{{!}}Production Year[[Production Year::{{{production year|}}}| ]]
</td></tr>|1{{{armor|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Engine</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{!}}[[BattleMech Timetable|{{{production year|}}}]]{{{year reference|}}}
{{{engine|}}}
 
</td></tr>|1{{{engine|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Speed</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
 
{{{speed|}}}
 
</td></tr>|1{{{speed|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Jump Jets</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
 
{{{jumpjets|}}}
 
</td></tr>|1{{{jumpjets|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Armament</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
 
{{{armament|}}}
 
</td></tr>|1{{{armament|}}}=}}</table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;">&nbsp;</td></tr></table><noinclude>
 
{{clear}}
 
==Usage instructions==
 
Copy and paste the following code into the top of the article, filling the appropriate fields. If a field is unknown, delete it.
 
<pre><nowiki>
 
{{MechboxMW2
 
| image = [[Image:*.***|###px]]
 
| name =
 
| manufacturer =
 
| model =
 
| class =
 
| mass =
 
| chassis =
 
| armor =
 
| engine =
 
| speed =
 
| jumpjets =
 
| armament =
 
 
}}
 
}}
</nowiki></pre>
+
|- class="infoboxrow"
 
+
{{#if:{{{model|}}}|
</noinclude>
+
{{!}} Model
 
+
{{!}} {{{model}}}
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
}}
 +
|- class="infoboxrow"
 +
{{#if:{{{Equipment Rating|}}}|
 +
{{!}} Equipment Rating
 +
{{!}} {{{Equipment Rating}}}
 +
}}
 +
|- class="infoboxrow"
 +
|Class||{{#if:{{{mass|}}}|{{#switch: {{{mass|}}}
 +
| 5 | 10 | 15 = [[BattleMech#Ultralight|Ultralight]][[Category:Ultralight BattleMechs]]
 +
| 20  | 25 | 30 | 35 = [[BattleMech#Light|Light]][[Category:Light BattleMechs]]
 +
| 40 | 45 | 50 | 55 = [[BattleMech#Medium|Medium]][[Category:Medium BattleMechs]]
 +
| 60 | 65 | 70 | 75 = [[BattleMech#Heavy|Heavy]][[Category:Heavy BattleMechs]]
 +
| 80 | 85 | 90 | 95 | 100 = [[BattleMech#Assault|Assault]][[Category:Assault BattleMechs]]
 +
| 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 175 | 180 | 185 | 190 | 195
 +
| 200 | 205 | 210 | 215 | 220 | 225 | 230 | 235 | 240 | 245 | 250 | 255 | 260 | 265 | 270 | 275 | 280 | 285 | 290 | 295
 +
| 300 = [[BattleMech#Superheavy|Superheavy]][[Category:Superheavy BattleMechs]]
 +
| #default = {{#if:{{{class|}}}|{{{class|}}}[[Category:{{{class|}}} BattleMechs]] }}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 +
}}|{{#if:{{{class|}}}|{{{class|}}}[[Category:{{{class|}}} BattleMechs]] }} }}
 +
|- class='infoboxrow'
 +
{{#if:{{{introduced|}}}|
 +
{{!}} Introduced
 +
{{!}} {{{introduced|}}}
 +
}}
 +
|- class="infoboxrow"
 +
{{#if:{{{cost|}}}|
 +
{{!}} Cost
 +
{{!}} {{{cost}}}
 +
}}
 +
|-
 +
!colspan="2" class="infoboxheading"|Technical specifications
 +
|- class='infoboxrow'
 +
{{#if:{{{Tech Base|}}}|{{!}} 'Mech type
 +
{{!}} {{#switch: {{{Tech Base|}}}
 +
|primitive
 +
|Primitive=Primitive [[Inner Sphere]]{{sp}}[[BattleMech]][[Category:Inner Sphere BattleMechs]][[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]][[Category:BattleMechs]]
 +
|Inner Sphere
 +
|inner sphere
 +
|Inner sphere
 +
|IS
 +
|is
 +
|Inner Sphere (Advanced)
 +
|Inner Sphere (advanced)
 +
|Inner Sphere (experimental)
 +
|[[Inner Sphere]]
 +
|Inner Sphere (Experimental)=[[Inner Sphere]]{{sp}}[[Category:Inner Sphere BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 +
      |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
 +
      |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]][[Category:BattleMechs]]
 +
      |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 +
      |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Inner Sphere OmniMechs]][[Category:BattleMechs]]
 +
      |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 +
      |SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Inner Sphere IndustrialMechs]]
 +
      | #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 +
    }}
 +
|Clan
 +
|clan
 +
|Clan (Advanced)
 +
|Clan (advanced)
 +
|clan (advanced)
 +
|Clan (Experimental)
 +
|Clan (experimental)
 +
|clan (experimental)
 +
|Clans
 +
|clans
 +
|Clans (Advanced)
 +
|Clans (advanced)
 +
|clans (advanced)
 +
|Clans (Experimental)
 +
|Clans (experimental)
 +
|[[Clan]]
 +
|[[Clans]]
 +
|clans (experimental)=[[Clan]]{{sp}}[[Category:Clan BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 +
      |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
 +
      |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Clan Standard BattleMechs]][[Category:BattleMechs]]
 +
      |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 +
      |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Clan OmniMechs]][[Category:BattleMechs]]
 +
      |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 +
      |SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Clan IndustrialMechs]]
 +
      | #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 +
    }}
 +
|mixed
 +
|Mixed
 +
|Mixed-tech
 +
|mixed-tech
 +
|Mixed-Tech
 +
|mixed tech
 +
|Mixed tech
 +
|Mixed Tech=Mixed-tech{{sp}}[[Category:Mixed-tech BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 +
      |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
 +
      |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:BattleMechs]]
 +
      |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 +
      |OM = [[OmniMech]][[Category:OmniMechs]][[Category:BattleMechs]]
 +
      |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 +
      |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
 +
      | #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 +
    }}
 +
|#default =  {{{Tech Base|}}}{{sp}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 +
      |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
 +
      |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:BattleMechs]]
 +
      |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 +
      |OM = [[OmniMech]][[Category:OmniMechs]][[Category:BattleMechs]]
 +
      |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 +
      |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
 +
| #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 +
}} }}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]] }}
 +
|- class="infoboxrow"
 +
|Mass||{{#if:{{{mass|}}}|{{{mass|}}} tons[[Category:{{{mass|}}} ton BattleMechs]]}}
 +
|- class="infoboxrow"
 +
|Chassis||{{{chassis|}}}
 +
|- class="infoboxrow"
 +
|Armor||{{{armor|}}}
 +
|- class="infoboxrow"
 +
|Engine||{{{engine|}}}
 +
|- class="infoboxrow"
 +
{{#if:{{{comsys|}}}|
 +
{{!}} Communications System
 +
{{!}} {{{comsys}}}
 +
}}
 +
|- class="infoboxrow"
 +
{{#if:{{{T&T|}}}|
 +
{{!}} Targeting Tracking System
 +
{{!}} {{{T&T}}}
 +
}}
 +
<!--|- class="infoboxrow"
 +
|Heat Sinks||{{{heat sinks|}}}-->
 +
|- class="infoboxrow"
 +
{{#if:{{{heat sinks|}}}|
 +
{{!}} Heat Sinks
 +
{{!}} {{{heat sinks}}}
 +
}}
 +
|- class="infoboxrow"
 +
|Speed||{{{speed|}}} km/h {{#if:{{{speed with MASC|}}}|({{{speed with MASC}}} km/h with [[MASC]])|}} {{#if:{{{speed with TSM|}}}|({{{speed with TSM}}} km/h with [[TSM]])|}} {{#if:{{{speed with Supercharger|}}}|({{{speed with Supercharger}}} km/h with [[Supercharger]])|}} {{#if:{{{speed with all|}}}|({{{speed with all}}} km/h with all speed enhancers)|}}
 +
|- class="infoboxrow"
 +
{{#if:{{{jumpjets|}}}|
 +
{{!}} Jump Jets
 +
{{!}} {{{jumpjets}}}
 +
}}
 +
|- class="infoboxrow"
 +
|Armament
 +
|
 +
{{{armament|}}}{{#if:{{{equipment|}}}{{{Equipment|}}}|{{#if:{{{armament|}}}|<br/>}}}}
 +
{{{equipment|}}}{{{Equipment|}}} <!-- More legacy support for industrial mechs -->
 +
|- class="infoboxrow"
 +
{{#if:{{{BV (1.0)|}}}|
 +
{{!}} BV (1.0)
 +
{{!}} {{{BV (1.0)}}}
 +
}}
 +
|- class="infoboxrow"
 +
{{#if:{{{BV (2.0)|}}}|
 +
{{!}} BV (2.0)
 +
{{!}} {{{BV (2.0)}}}
 +
}}
 +
|}
 +
{{#switch: {{{mech type|}}} <!-- This adds the BattleMech category, but only to articles which aren't IndustrialMechs. -->
 +
      |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 +
      |SM =
 +
| #default =  [[Category:BattleMechs]]}}
 +
</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 20:00, 4 April 2024