Difference between revisions of "Template:InfoBoxBattleMech"

(Update to set the introduction year)
m
 
(32 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| class="infobox"
+
<includeonly>{| class="infobox"
|colspan="2"|{{#if:{{{image|}}}|[[Image:{{{image}}}|191px]]|}}
+
|colspan="2"|{{#if:{{{image|}}}|[[Image:{{{image}}}|191px|{{PAGENAME}}]]|}}
 
|-
 
|-
!colspan="2" class="infoboxname"|{{{name|name}}}
+
!colspan="2" class="infoboxname"|{{{name|{{PAGENAME}}}}}
 
|-
 
|-
 
!colspan="2" class="infoboxheading"|Production information
 
!colspan="2" class="infoboxheading"|Production information
 
|- class="infoboxrow"
 
|- class="infoboxrow"
 
|Manufacturer||{{{manufacturer|}}}
 
|Manufacturer||{{{manufacturer|}}}
 +
|- class="infoboxrow"
 +
{{#if:{{{Use|}}}|
 +
{{!}} Use
 +
{{!}} {{{Use}}}
 +
}} <!-- Originally from InfoBoxIndMech, only used for industrial mechs -->
 
|- class="infoboxrow"
 
|- class="infoboxrow"
 
{{#if:{{{production year|}}}|
 
{{#if:{{{production year|}}}|
 
{{!}}Production Year[[Production Year::{{{production year|}}}| ]]
 
{{!}}Production Year[[Production Year::{{{production year|}}}| ]]
{{!}}[[BattleMech Timetable|introduction={{{production year|}}}]]{{{year reference|}}}
+
{{!}}[[BattleMech Timetable|{{{production year|}}}]]{{{year reference|}}}
 
}}
 
}}
 
|- class="infoboxrow"
 
|- class="infoboxrow"
Line 18: Line 23:
 
}}
 
}}
 
|- class="infoboxrow"
 
|- class="infoboxrow"
|Class||{{{class|}}}
+
{{#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'
 
|- class='infoboxrow'
 
{{#if:{{{introduced|}}}|
 
{{#if:{{{introduced|}}}|
Line 32: Line 52:
 
!colspan="2" class="infoboxheading"|Technical specifications
 
!colspan="2" class="infoboxheading"|Technical specifications
 
|- class='infoboxrow'
 
|- class='infoboxrow'
{{#if:{{{ Tech Base|}}}|
+
{{#if:{{{Tech Base|}}}|{{!}} 'Mech type
{{!}}  Tech Base
+
{{!}} {{#switch: {{{Tech Base|}}}
{{!}} {{{ 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"
 
|- class="infoboxrow"
|Mass||{{{mass|}}} tons
+
|Mass||{{#if:{{{mass|}}}|{{{mass|}}} tons[[Category:{{{mass|}}} ton BattleMechs]]}}
 
|- class="infoboxrow"
 
|- class="infoboxrow"
 
|Chassis||{{{chassis|}}}
 
|Chassis||{{{chassis|}}}
Line 62: Line 151:
 
}}
 
}}
 
|- class="infoboxrow"
 
|- 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]])|}}
+
|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"
 
|- class="infoboxrow"
 
{{#if:{{{jumpjets|}}}|
 
{{#if:{{{jumpjets|}}}|
Line 71: Line 160:
 
|Armament
 
|Armament
 
|
 
|
{{{armament|}}}
+
{{{armament|}}}{{#if:{{{equipment|}}}{{{Equipment|}}}|{{#if:{{{armament|}}}|<br/>}}}}
 +
{{{equipment|}}}{{{Equipment|}}} <!-- More legacy support for industrial mechs -->
 
|- class="infoboxrow"
 
|- class="infoboxrow"
 
{{#if:{{{BV (1.0)|}}}|
 
{{#if:{{{BV (1.0)|}}}|
Line 82: Line 172:
 
{{!}} {{{BV (2.0)}}}
 
{{!}} {{{BV (2.0)}}}
 
}}
 
}}
|}<noinclude>
+
|}
{{/doc}}
+
{{#switch: {{{mech type|}}} <!-- This adds the BattleMech category, but only to articles which aren't IndustrialMechs. -->
<!-- Add cats and interwikis to the /doc subpage, not here! -->
+
      |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
</noinclude>
+
      |SM =
 +
| #default =  [[Category:BattleMechs]]}}
 +
</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 20:00, 4 April 2024