Difference between revisions of "Template:InfoBoxBattleMech"
(major update to autopopulate categories and include a bunch of CGL-era tech distinctions) |
m |
||
(30 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| | + | !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|}}} | ||
− | | 10 | + | | 5 | 10 | 15 = [[BattleMech#Ultralight|Ultralight]][[Category:Ultralight BattleMechs]] |
− | + | | 20 | 25 | 30 | 35 = [[BattleMech#Light|Light]][[Category:Light BattleMechs]] | |
− | | 20 | + | | 40 | 45 | 50 | 55 = [[BattleMech#Medium|Medium]][[Category:Medium BattleMechs]] |
− | | 25 | + | | 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 | |
− | | 40 | + | | 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]] | |
− | |||
− | | 60 | ||
− | |||
− | |||
− | |||
− | | 80 | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
}}|{{#if:{{{class|}}}|{{{class|}}}[[Category:{{{class|}}} BattleMechs]] }} }} | }}|{{#if:{{{class|}}}|{{{class|}}}[[Category:{{{class|}}} BattleMechs]] }} }} | ||
|- class='infoboxrow' | |- class='infoboxrow' | ||
Line 53: | 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=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 65: | Line 64: | ||
|Inner Sphere (advanced) | |Inner Sphere (advanced) | ||
|Inner Sphere (experimental) | |Inner Sphere (experimental) | ||
+ | |[[Inner Sphere]] | ||
|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|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 | |
− | |||
− | |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Inner Sphere Standard BattleMechs]] | ||
− | |OmniMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Inner Sphere OmniMechs]] | ||
− | |IndustrialMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Inner Sphere IndustrialMechs]] | |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 111: | Line 89: | ||
|Clans (Experimental) | |Clans (Experimental) | ||
|Clans (experimental) | |Clans (experimental) | ||
+ | |[[Clan]] | ||
+ | |[[Clans]] | ||
|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|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 | |
− | |||
− | |BM = [[BattleMech]][[Category:Standard BattleMechs]][[Category:Clan Standard BattleMechs]] | ||
− | |OmniMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |OM = [[OmniMech]][[Category:OmniMechs]][[Category:Clan OmniMechs]] | ||
− | |IndustrialMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|SM = [[IndustrialMech]][[Category:IndustrialMechs]][[Category:Clan IndustrialMechs]] | |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 148: | Line 108: | ||
|Mixed tech | |Mixed tech | ||
|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|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 | |
− | |||
− | |BM = [[BattleMech]][[Category:Standard BattleMechs]] | ||
− | |OmniMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |OM = [[OmniMech]][[Category:OmniMechs]] | ||
− | |IndustrialMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|SM = [[IndustrialMech]][[Category:IndustrialMechs]] | |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|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 | |
− | |||
− | |BM = [[BattleMech]][[Category:Standard BattleMechs]] | ||
− | |OmniMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |OM = [[OmniMech]][[Category:OmniMechs]] | ||
− | |IndustrialMech | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|SM = [[IndustrialMech]][[Category:IndustrialMechs]] | |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]] }} |
|- class="infoboxrow" | |- class="infoboxrow" | ||
|Mass||{{#if:{{{mass|}}}|{{{mass|}}} tons[[Category:{{{mass|}}} ton BattleMechs]]}} | |Mass||{{#if:{{{mass|}}}|{{{mass|}}} tons[[Category:{{{mass|}}} ton BattleMechs]]}} | ||
Line 231: | 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 240: | 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 251: | Line 172: | ||
{{!}} {{{BV (2.0)}}} | {{!}} {{{BV (2.0)}}} | ||
}} | }} | ||
− | |}< | + | |} |
− | [[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 |
− | {{ | + | |SM = |
− | + | | #default = [[Category:BattleMechs]]}} | |
− | </noinclude> | + | </includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 20:00, 4 April 2024
This template may be suitable for conversion to use {{Infobox}} as a base. |
Usage instructions[edit]
- 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)=
}}