Difference between revisions of "Template:InfoBoxBattleMech"

m (camelcase)
m
 
(6 intermediate revisions by 5 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]][[Category: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 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 172: Line 172:
 
{{!}} {{{BV (2.0)}}}
 
{{!}} {{{BV (2.0)}}}
 
}}
 
}}
|}<includeonly>
+
|}
{{#switch: {{{mech type|}}} <!-- This adds the Battlemech category, but only to articles which aren't Industrialmechs. -->
+
{{#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
 
       |IndustrialMech|[[IndustrialMech]]|[[Industrialmech]]|industrialmech|Industrialmech|securitymech|Securitymech|SecurityMech|im|sm|security|Security|IM
 
       |SM =
 
       |SM =
 
  | #default =  [[Category:BattleMechs]]}}
 
  | #default =  [[Category:BattleMechs]]}}
</includeonly><noinclude>
+
</includeonly><noinclude>{{documentation}}</noinclude>
{{/doc}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Latest revision as of 20:00, 4 April 2024