Difference between revisions of "Template:InfoBoxBattleMech"

(adding another of the old IndMech-specific fields)
m
 
(13 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|{{PAGENAME}}}}}
 
!colspan="2" class="infoboxname"|{{{name|{{PAGENAME}}}}}
Line 52: Line 52:
 
!colspan="2" class="infoboxheading"|Technical specifications
 
!colspan="2" class="infoboxheading"|Technical specifications
 
|- class='infoboxrow'
 
|- class='infoboxrow'
{{#if:{{{Tech Base|}}}|{{!}} Mech type
+
{{#if:{{{Tech Base|}}}|{{!}} 'Mech type
 
{{!}} {{#switch: {{{Tech Base|}}}
 
{{!}} {{#switch: {{{Tech Base|}}}
 
  |primitive
 
  |primitive
  |Primitive=Primitive [[Inner Sphere]]{{sp}}[[BattleMech]][[Category:Inner Sphere BattleMechs]][[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]][[Category:Primitive BattleMechs]]
+
  |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
 
  |inner sphere
Line 67: Line 67:
 
  |Inner Sphere (Experimental)=[[Inner Sphere]]{{sp}}[[Category:Inner Sphere BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 
  |Inner Sphere (Experimental)=[[Inner Sphere]]{{sp}}[[Category:Inner Sphere BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 
       |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
 
       |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
       |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]]
+
       |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]][[Category:BattleMechs]]
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
       |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Inner Sphere OmniMechs]]
+
       |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Inner Sphere OmniMechs]][[Category:BattleMechs]]
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Inner Sphere IndustrialMechs]]
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Inner Sphere IndustrialMechs]]
Line 93: Line 93:
 
  |clans (experimental)=[[Clan]]{{sp}}[[Category:Clan BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 
  |clans (experimental)=[[Clan]]{{sp}}[[Category:Clan BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 
       |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
 
       |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
       |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Clan Standard BattleMechs]]
+
       |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Clan Standard BattleMechs]][[Category:BattleMechs]]
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
       |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Clan OmniMechs]]
+
       |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Clan OmniMechs]][[Category:BattleMechs]]
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Clan IndustrialMechs]]
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Clan IndustrialMechs]]
Line 109: Line 109:
 
  |Mixed Tech=Mixed-tech{{sp}}[[Category:Mixed-tech BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 
  |Mixed Tech=Mixed-tech{{sp}}[[Category:Mixed-tech BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 
       |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
 
       |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
       |BM = [[BattleMech]][[Category:Standard BattleMechs]]
+
       |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:BattleMechs]]
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
       |OM = [[OmniMech]][[Category:OmniMechs]]
+
       |OM = [[OmniMech]][[Category:OmniMechs]][[Category:BattleMechs]]
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
Line 118: Line 118:
 
  |#default =  {{{Tech Base|}}}{{sp}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}}
 
  |#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
 
       |BattleMech||[[BattleMech]][[Battlemech]]|battlemech|Battlemech|battle|Battle|bm
       |BM = [[BattleMech]][[Category:Standard BattleMechs]]
+
       |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:BattleMechs]]
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
 
       |OmniMech|[[OmniMech]]|[[Omnimech]]|Omnimech|omnimech|om|omni|Omni
       |OM = [[OmniMech]][[Category:OmniMechs]]
+
       |OM = [[OmniMech]][[Category:OmniMechs]][[Category:BattleMechs]]
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
 
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
Line 151: 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 160: Line 160:
 
|Armament
 
|Armament
 
|
 
|
{{{armament|}}}<br/>
+
{{{armament|}}}{{#if:{{{equipment|}}}{{{Equipment|}}}|{{#if:{{{armament|}}}|<br/>}}}}
{{{equipment|}}}{{{Equipment|}}} <!-- More legacy support for industrial mechs
+
{{{equipment|}}}{{{Equipment|}}} <!-- More legacy support for industrial mechs -->
 
|- class="infoboxrow"
 
|- class="infoboxrow"
 
{{#if:{{{BV (1.0)|}}}|
 
{{#if:{{{BV (1.0)|}}}|
Line 172: Line 172:
 
{{!}} {{{BV (2.0)}}}
 
{{!}} {{{BV (2.0)}}}
 
}}
 
}}
|}<includeonly>
+
|}
[[Category:BattleMechs]]
+
{{#switch: {{{mech type|}}} <!-- This adds the BattleMech category, but only to articles which aren't IndustrialMechs. -->
</includeonly><noinclude>
+
      |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
{{/doc}}
+
      |SM =
<!-- Add cats and interwikis to the /doc subpage, not here! -->
+
| #default =  [[Category:BattleMechs]]}}
</noinclude>
+
</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 20:00, 4 April 2024