Difference between revisions of "Template:InfoBoxBattleMech"

m (typo)
(testing a new catch to keep IMs out of the main BM cat)
Line 55: Line 55:
 
{{!}} {{#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:Primitive 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 173: Line 173:
 
}}
 
}}
 
|}<includeonly>
 
|}<includeonly>
[[Category:BattleMechs]]
+
{{#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>
 
</includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 21:49, 9 November 2017

InfoBoxBattleMech
Production information
Manufacturer
Class
Technical specifications
Mass
Chassis
Armor
Engine
Speed km/h
Armament


Usage instructions

  • Copy and paste the following code into the top of the article, filling the appropriate fields.
    • If a field is unknown, leave it blank.
    • The Tech Base parameter should be one of "Primitive", "Inner Sphere", "Clan", or "Mixed".
    • The mech type parameter should be one of "BattleMech", "OmniMech", or "IndustrialMech". These two categories will populate the article into appropriate categories. Articles that don't have one of these two parameters filled out correctly are in Category:Empty or nonstandard InfoBoxBattleMech tech base parameter.
    • The feet parameter should be one of "biped", "tripod", "quad", "quadvee", or "LAM". This will also populate the article into appropriate categories. This parameter is not yet implemented.
    • The mass parameter should be a number. This will also populate the article into an appropriate category. This parameter does not need any additional text (use "55", not "55 tons") nor a reference tag.
    • The speed parameter refers to the 'Mech's maximum unassisted running speed (no MASC, TSM, etc.)
    • If a 'Mech does not have MASC, completely remove the bolded, violet parameter.
    • If a 'Mech does not have Triple Strength Myomer (TSM) completely remove the bolded green parameter
    • If a 'Mech does not have a Supercharger completely remove the bolded pink parameter
    • If a 'Mech does not have multiple pieces of speed boosting equipment (TSM, MASC, Supercharger) completely remove the bolded olive parameter
    • If a 'Mech does not have jumpjets, completely remove the bolded, orange parameter. If a 'Mech does have jumpjets, list the jump jet brand name - not the jump distance - in this field.
    • For the image field, just the name of the image is sufficient. e.g., Example.jpg, Example.png, etc.
    • for the production year field include the date only - do not include a citation.
    • For the year reference field, add the canon source reference citation that confirms the date placed in the production year field.
    • The class parameter was used in a previous version of this template, but is now depreciated. The class is now automatically filled in based on the mech weight.

{{InfoBoxBattleMech
|image=
|name=
|manufacturer=
|production year=
|year reference=
|introduced=
|model=
|cost=
|Tech Base=
|mech type=
|feet=
|mass=
|chassis=
|armor=
|engine=
|comsys=
|T&T=
|heat sinks=
|speed=
|speed with MASC=
|speed with TSM=
|speed with Supercharger=
|speed with all=
|jumpjets=
|armament=
|BV (1.0)=
|BV (2.0)=
}}