Difference between revisions of "Template:InfoBoxBattleMech"

(unless I fucked everything up, categories should now only populate on mainspace pages - so scratchpads won't end up in categories!)
m
 
(18 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|}}}|
Line 16: Line 21:
 
{{!}} Model
 
{{!}} Model
 
{{!}} {{{model}}}
 
{{!}} {{{model}}}
 +
}}
 +
|- class="infoboxrow"
 +
{{#if:{{{Equipment Rating|}}}|
 +
{{!}} Equipment Rating
 +
{{!}} {{{Equipment Rating}}}
 
}}
 
}}
 
|- class="infoboxrow"
 
|- class="infoboxrow"
 
|Class||{{#if:{{{mass|}}}|{{#switch: {{{mass|}}}
 
|Class||{{#if:{{{mass|}}}|{{#switch: {{{mass|}}}
  | 5 | 10 | 15 = [[BattleMech#Ultralight|Ultralight]]<includeonly>{{#if:{{NAMESPACE}} | | [[Category:Ultralight BattleMechs]]}}</includeonly>
+
  | 5 | 10 | 15 = [[BattleMech#Ultralight|Ultralight]][[Category:Ultralight BattleMechs]]
  | 20  | 25 | 30 | 35 = [[BattleMech#Light|Light]]<includeonly>{{#if:{{NAMESPACE}} | | [[Category:Light BattleMechs]]}}</includeonly>
+
  | 20  | 25 | 30 | 35 = [[BattleMech#Light|Light]][[Category:Light BattleMechs]]
  | 40 | 45 | 50 | 55 = [[BattleMech#Medium|Medium]]<includeonly>{{#if:{{NAMESPACE}} | | [[Category:Medium BattleMechs]]}}</includeonly>
+
  | 40 | 45 | 50 | 55 = [[BattleMech#Medium|Medium]][[Category:Medium BattleMechs]]
  | 60 | 65 | 70 | 75 = [[BattleMech#Heavy|Heavy]]<includeonly>{{#if:{{NAMESPACE}} | | [[Category:Heavy BattleMechs]]}}</includeonly>
+
  | 60 | 65 | 70 | 75 = [[BattleMech#Heavy|Heavy]][[Category:Heavy BattleMechs]]
  | 80 | 85 | 90 | 95 | 100 = [[BattleMech#Assault|Assault]]<includeonly>{{#if:{{NAMESPACE}} | | [[Category:Assault BattleMechs]]}}</includeonly>
+
  | 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
 
  | 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
 
  | 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]]
 
  | 300 = [[BattleMech#Superheavy|Superheavy]][[Category:Superheavy BattleMechs]]
  | #default = {{#if:{{{class|}}}|{{{class|}}}<includeonly>{{#if:{{NAMESPACE}} | | [[Category:{{{class|}}} BattleMechs]]}}</includeonly> }}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
+
  | #default = {{#if:{{{class|}}}|{{{class|}}}[[Category:{{{class|}}} BattleMechs]] }}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
}}|{{#if:{{{class|}}}|{{{class|}}}<includeonly>{{#if:{{NAMESPACE}} | | [[Category:{{{class|}}} BattleMechs]]}}</includeonly> }} }}
+
}}|{{#if:{{{class|}}}|{{{class|}}}[[Category:{{{class|}}} BattleMechs]] }} }}
 
|- class='infoboxrow'
 
|- class='infoboxrow'
 
{{#if:{{{introduced|}}}|
 
{{#if:{{{introduced|}}}|
Line 42: 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]]<includeonly>{{#if:{{NAMESPACE}} | | [[Category:Inner Sphere BattleMechs]][[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]][[Category:Primitive BattleMechs]]}}</includeonly>
+
  |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 55: Line 65:
 
  |Inner Sphere (experimental)
 
  |Inner Sphere (experimental)
 
  |[[Inner Sphere]]
 
  |[[Inner Sphere]]
  |Inner Sphere (Experimental)=[[Inner Sphere]]{{sp}}{{#if:{{NAMESPACE}} | | [[Category:Inner Sphere BattleMechs]]}}</includeonly>{{#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]]{{#if:{{NAMESPACE}} | | [[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:OmniMechs]][[Category:Inner Sphere OmniMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:IndustrialMechs]][[Category:Inner Sphere IndustrialMechs]]}}</includeonly>
+
       |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]]
 
       | #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 
     }}
 
     }}
Line 81: Line 91:
 
  |[[Clan]]
 
  |[[Clan]]
 
  |[[Clans]]
 
  |[[Clans]]
  |clans (experimental)=[[Clan]]{{sp}}{{#if:{{NAMESPACE}} | | [[Category:Clan BattleMechs]]}}</includeonly>{{#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]]{{#if:{{NAMESPACE}} | | [[Category:Standard BattleMechs]][[Category:Clan Standard BattleMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:OmniMechs]][[Category:Clan OmniMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:IndustrialMechs]][[Category:Clan IndustrialMechs]]}}</includeonly>
+
       |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]]
 
       | #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 
     }}
 
     }}
Line 97: Line 107:
 
  |mixed tech
 
  |mixed tech
 
  |Mixed tech
 
  |Mixed tech
  |Mixed Tech=Mixed-tech{{sp}}{{#if:{{NAMESPACE}} | | [[Category:Mixed-tech BattleMechs]]}}</includeonly>{{#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]]{{#if:{{NAMESPACE}} | | [[Category:Standard BattleMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:OmniMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:IndustrialMechs]]}}</includeonly>
+
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
 
       | #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 
       | #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|}}}
 
  |#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]]{{#if:{{NAMESPACE}} | | [[Category:Standard BattleMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:OmniMechs]]}}</includeonly>
+
       |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]]{{#if:{{NAMESPACE}} | | [[Category:IndustrialMechs]]}}</includeonly>
+
       |SM = [[IndustrialMech]][[Category:IndustrialMechs]]
 
  | #default =  {{{mech type|}}}[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]}}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]]
 
  | #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]] }}
 
}} }}|[[Category:Empty or nonstandard InfoBoxBattleMech tech base parameter]] }}
 
|- class="infoboxrow"
 
|- class="infoboxrow"
|Mass||{{#if:{{{mass|}}}|{{{mass|}}} tons<includeonly>{{#if:{{NAMESPACE}} | | [[Category:{{{mass|}}} ton BattleMechs]]}}</includeonly>}}
+
|Mass||{{#if:{{{mass|}}}|{{{mass|}}} tons[[Category:{{{mass|}}} ton BattleMechs]]}}
 
|- class="infoboxrow"
 
|- class="infoboxrow"
 
|Chassis||{{{chassis|}}}
 
|Chassis||{{{chassis|}}}
Line 141: 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 150: 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 161: Line 172:
 
{{!}} {{{BV (2.0)}}}
 
{{!}} {{{BV (2.0)}}}
 
}}
 
}}
|}<includeonly>{{#if:{{NAMESPACE}} | | [[Category:BattleMechs]]}}</includeonly><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