Difference between revisions of "Template:InfoBoxBattleMech"
(added #if statements to Model, BV (1.0), and BV (2.0)) |
m |
||
(55 intermediate revisions by 11 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" | ||
+ | {{#if:{{{production year|}}}| | ||
+ | {{!}}Production Year[[Production Year::{{{production year|}}}| ]] | ||
+ | {{!}}[[BattleMech Timetable|{{{production year|}}}]]{{{year reference|}}} | ||
+ | }} | ||
|- class="infoboxrow" | |- class="infoboxrow" | ||
{{#if:{{{model|}}}| | {{#if:{{{model|}}}| | ||
Line 13: | Line 23: | ||
}} | }} | ||
|- class="infoboxrow" | |- class="infoboxrow" | ||
− | |Class||{{{class|}}} | + | {{#if:{{{Equipment Rating|}}}| |
+ | {{!}} Equipment Rating | ||
+ | {{!}} {{{Equipment Rating}}} | ||
+ | }} | ||
+ | |- class="infoboxrow" | ||
+ | |Class||{{#if:{{{mass|}}}|{{#switch: {{{mass|}}} | ||
+ | | 5 | 10 | 15 = [[BattleMech#Ultralight|Ultralight]][[Category:Ultralight BattleMechs]] | ||
+ | | 20 | 25 | 30 | 35 = [[BattleMech#Light|Light]][[Category:Light BattleMechs]] | ||
+ | | 40 | 45 | 50 | 55 = [[BattleMech#Medium|Medium]][[Category:Medium BattleMechs]] | ||
+ | | 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 | ||
+ | | 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]] | ||
+ | }}|{{#if:{{{class|}}}|{{{class|}}}[[Category:{{{class|}}} BattleMechs]] }} }} | ||
+ | |- class='infoboxrow' | ||
+ | {{#if:{{{introduced|}}}| | ||
+ | {{!}} Introduced | ||
+ | {{!}} {{{introduced|}}} | ||
+ | }} | ||
+ | |- class="infoboxrow" | ||
+ | {{#if:{{{cost|}}}| | ||
+ | {{!}} Cost | ||
+ | {{!}} {{{cost}}} | ||
+ | }} | ||
|- | |- | ||
!colspan="2" class="infoboxheading"|Technical specifications | !colspan="2" class="infoboxheading"|Technical specifications | ||
+ | |- class='infoboxrow' | ||
+ | {{#if:{{{Tech Base|}}}|{{!}} 'Mech type | ||
+ | {{!}} {{#switch: {{{Tech Base|}}} | ||
+ | |primitive | ||
+ | |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 | ||
+ | |IS | ||
+ | |is | ||
+ | |Inner Sphere (Advanced) | ||
+ | |Inner Sphere (advanced) | ||
+ | |Inner Sphere (experimental) | ||
+ | |[[Inner Sphere]] | ||
+ | |Inner Sphere (Experimental)=[[Inner Sphere]]{{sp}}[[Category:Inner Sphere BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}} | ||
+ | |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 | ||
+ | |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]] | ||
+ | }} | ||
+ | |Clan | ||
+ | |clan | ||
+ | |Clan (Advanced) | ||
+ | |Clan (advanced) | ||
+ | |clan (advanced) | ||
+ | |Clan (Experimental) | ||
+ | |Clan (experimental) | ||
+ | |clan (experimental) | ||
+ | |Clans | ||
+ | |clans | ||
+ | |Clans (Advanced) | ||
+ | |Clans (advanced) | ||
+ | |clans (advanced) | ||
+ | |Clans (Experimental) | ||
+ | |Clans (experimental) | ||
+ | |[[Clan]] | ||
+ | |[[Clans]] | ||
+ | |clans (experimental)=[[Clan]]{{sp}}[[Category:Clan BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}} | ||
+ | |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 | ||
+ | |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]] | ||
+ | }} | ||
+ | |mixed | ||
+ | |Mixed | ||
+ | |Mixed-tech | ||
+ | |mixed-tech | ||
+ | |Mixed-Tech | ||
+ | |mixed tech | ||
+ | |Mixed tech | ||
+ | |Mixed Tech=Mixed-tech{{sp}}[[Category:Mixed-tech BattleMechs]]{{#if:{{{mech type|}}}|{{#switch: {{{mech type|}}} | ||
+ | |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 | ||
+ | |SM = [[IndustrialMech]][[Category:IndustrialMechs]] | ||
+ | | #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|}}} | ||
+ | |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 | ||
+ | |SM = [[IndustrialMech]][[Category:IndustrialMechs]] | ||
+ | | #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||{{{mass|}}} tons | + | |Mass||{{#if:{{{mass|}}}|{{{mass|}}} tons[[Category:{{{mass|}}} ton BattleMechs]]}} |
|- class="infoboxrow" | |- class="infoboxrow" | ||
|Chassis||{{{chassis|}}} | |Chassis||{{{chassis|}}} | ||
Line 25: | Line 134: | ||
|Engine||{{{engine|}}} | |Engine||{{{engine|}}} | ||
|- class="infoboxrow" | |- class="infoboxrow" | ||
− | + | {{#if:{{{comsys|}}}| | |
+ | {{!}} Communications System | ||
+ | {{!}} {{{comsys}}} | ||
+ | }} | ||
+ | |- class="infoboxrow" | ||
+ | {{#if:{{{T&T|}}}| | ||
+ | {{!}} Targeting Tracking System | ||
+ | {{!}} {{{T&T}}} | ||
+ | }} | ||
+ | <!--|- class="infoboxrow" | ||
+ | |Heat Sinks||{{{heat sinks|}}}--> | ||
|- class="infoboxrow" | |- class="infoboxrow" | ||
− | | | + | {{#if:{{{heat sinks|}}}| |
+ | {{!}} Heat Sinks | ||
+ | {{!}} {{{heat sinks}}} | ||
+ | }} | ||
+ | |- 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]])|}} {{#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" | ||
+ | {{#if:{{{jumpjets|}}}| | ||
+ | {{!}} Jump Jets | ||
+ | {{!}} {{{jumpjets}}} | ||
+ | }} | ||
|- class="infoboxrow" | |- class="infoboxrow" | ||
|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 42: | Line 172: | ||
{{!}} {{{BV (2.0)}}} | {{!}} {{{BV (2.0)}}} | ||
}} | }} | ||
− | |} | + | |} |
− | {{ | + | {{#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 |
− | </noinclude> | + | |SM = |
+ | | #default = [[Category:BattleMechs]]}} | ||
+ | </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)=
}}