Difference between revisions of "Template:BA"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
(BA Infobox for Unbroken)
 
(Infobox corrections, add doc page)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| class="BA" style="border:1px solid #250b2d; text-align:left; font-size:9pt; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; margin: 0px 0px 10px 10px;" cellpadding="4" cellspacing="1" rules="all" align="right"
{| class="BA" style="border:1px solid #250b2d; text-align:left; font-size:9pt; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; margin-left: 10px;" cellpadding="1" cellspacing="0" rules="all" align="right"
 
 
! colspan="3" style="background:#2a2a2a; text-align:center; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; font-size:12pt" | {{{Name}}}
 
! colspan="3" style="background:#2a2a2a; text-align:center; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; font-size:12pt" | {{{Name}}}
 
|-
 
|-
| colspan="3" style="text-align:center" | [[{{{Image}}} | {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]  
+
| colspan="3" style="text-align:center; padding:0" | [[{{{Image}}} | {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]  
 
|-
 
|-
| Class: || colspan="2" style="background:#383838" | {{{Class}}}
+
| Class: || colspan="2" style="background:#383838" | Battle Armor
 
|-
 
|-
 
| Faction || colspan="2" style="background:#383838" | [[{{{Faction}}}]]
 
| Faction || colspan="2" style="background:#383838" | [[{{{Faction}}}]]
Line 13: Line 12:
 
| colspan="3" style="background:#2a2a2a;text-align:center;font-size:9pt" | '''Equipment'''
 
| colspan="3" style="background:#2a2a2a;text-align:center;font-size:9pt" | '''Equipment'''
 
|-
 
|-
| style="background:#33333; min-width:100px" | || style="background:#383838; min-width:100px" | Item || style="background:#333333; min-width:100px" | Price
+
| style="background:#33333; min-width:34%" | || style="background:#383838; min-width:100px" | Item || style="background:#333333; min-width:100px" | Price
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
 
| style="font-size:8pt" | Default:
 
| style="font-size:8pt" | Default:
Line 26: Line 25:
 
| style="background:#383838" | {{{Deployables}}}
 
| style="background:#383838" | {{{Deployables}}}
 
| {{{DeployablesPrices}}}
 
| {{{DeployablesPrices}}}
|}
+
|}</includeonly>
</includeonly>
+
<noinclude>[[Category:Infoboxes]] {{Documentation}}</noinclude>
 
 
<noinclude>
 
{{BA
 
| Image= File:Elemental.jpg
 
| Name = Elemental
 
| Class = Battle Armor
 
| Faction= Clan
 
| Tickets= 1
 
| Default = <ul>
 
<li> 1 [[Bear AutoCannon]]
 
<li> 2 [[SSRM]]
 
<li> [[Jump Jets]]
 
<li> [[Standard Optics]]
 
<li> [[Night Vision]]
 
</ul>
 
| DefaultPrice = <ul><li>2500 CBills</ul>
 
| Weapons = <ul>
 
<li> 1 [[AC2 Arm-Mounted Cannon|AC2 Arm-Mounted<br>Cannon]]
 
<li> 1 [[Micro Heavy Laser]]
 
<li> 1 [[Man Pack PPC]]
 
<li> 1 [[BA Flamer]]
 
<li> 1 [[TAG]]
 
<li> 1 [[BASBL]]
 
</ul>
 
| WeaponsPrices = <ul>
 
<li>5500 CBills<br><br>
 
<li>10250 CBills
 
<li>7500 CBills
 
<li>1750 CBills
 
<li>3500 CBills
 
<li>3000 CBills
 
| Deployables = <ul>
 
<li> [[C8]]
 
<li> [[Inferno Charge]]
 
<li> [[NARC]]
 
</ul>
 
| DeployablesPrices = <ul>
 
<li>2000 CBills
 
<li>1000 CBills
 
<li>500 CBills
 
</ul>
 
}}
 
 
 
==Usage==
 
<nowiki>{{BA</nowiki><br>
 
| Image = '''<nowiki>[[File:Name Of Image.png]]</nowiki>'''<br>
 
| ImageSize = '''Number only (in px; optional; default 350)'''<br>
 
| Class = '''Battle Armor'''<br>
 
| Faction = '''Inner Sphere or Clan'''<br>
 
| Tickets = '''Number only'''<br>
 
| Default = '''Default Weapons / Equipment'''<br>
 
| DefaultPrice = '''Default Price<'''<br>
 
| Weapons = '''Optional Weapon'''<br>
 
| WeaponsPrices = '''Prices of optional weapons'''<br>
 
| Deployables = '''Optional Deployable'''<br>
 
| DeployablesPrices = '''Prices of deployables'''<br>
 
}}
 
 
 
===Notes===
 
* Weapons, Equipment, and Prices require <nowiki><ul> and <li></nowiki> to function properly as unordered lists (see template).
 
 
 
{{Clear}}
 
 
 
==Template==
 
<pre>
 
{{BA
 
| Image =
 
| Name =
 
| Class =
 
| Faction =
 
| Tickets =
 
| Default = <ul>
 
<li>
 
<li>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| DefaultPrice =
 
| Weapons = <ul>
 
<li>
 
<li>
 
<li>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| WeaponsPrices = <ul>
 
<li>
 
<li>
 
<li>
 
<li>
 
<li>
 
<li>
 
| Deployables = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| DeployablesPrices = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
}}
 
</pre>
 
 
 
[[Category:Infoboxes]]
 
</noinclude>
 

Revision as of 23:56, 14 November 2017

Documentation icon Template documentation[view] [edit] [history] [purge]

This infobox template is for Battle Armor.

Usage

BA
Elemental.jpg
Class: Battle Armor
Faction Clan
Ticket cost: 1 upon destruction
Equipment
Item Price
Default:
  • 2500 CBills
Optional Weapons:
  • 5500 CBills

  • 10250 CBills
  • 7500 CBills
  • 1750 CBills
  • 3500 CBills
  • 3000 CBills
Optional Deployables:
  • 2000 CBills
  • 1000 CBills
  • 500 CBills

The infobox may be added by pasting the template as shown below into an article and then filling in the desired fields. Some parameters are not required and will not be displayed when left blank or omitted.

Blank template

{{BA
| Image = 
| Name = 
| Class = 
| Faction = 
| Tickets =
| Default = <ul>
<li> 
<li> 
<li> 
<li> 
<li> 
</ul>
| DefaultPrice = 
| Weapons = <ul>
<li> 
<li> 
<li> 
<li> 
<li> 
<li> 
</ul>
| WeaponsPrices = <ul>
<li> 
<li> 
<li> 
<li> 
<li> 
<li> 
| Deployables = <ul>
<li> 
<li> 
<li> 
</ul>
| DeployablesPrices = <ul>
<li> 
<li> 
<li> 
</ul>
}}

Parameters

As noted before some parameters are optional, however some must be included. The following is a list of parameters, their functions, and whether or not they are required.

Parameter Required Function
Image Yes Image name: File:abc.jpg, File:xpz.png, Image:123.gif; Image name must be prefixed with Image: or File: to function.
ImageSize No Image size is the width of the image. Will also determine the width of the infobox. Defaults to 350px when omitted.
Name Yes The name of the Asset.
Faction Yes The Faction that the Asset Belongs to.
Tickets Yes The number of tickets this asset gives on destruction in the TC gametype.
Default Yes The default equipment that comes with this Asset.
DefaultPrice Yes The default price of this Asset.
Weapons Yes The weapons that are purchasable for this Asset. Multiple lines require <ul> and <li> to function properly as unordered lists.
WeaponsPrices Yes The prices for purchasable weapons. Multiple lines require <ul> and <li> to function properly as unordered lists. Should match with Weapons parameter.
Deployables Yes The deployable munitions (grenades) for this Asset. Multiple lines require <ul> and <li> to function properly as unordered lists.
DeployablesPrices Yes The prices for deployables. Multiple lines require <ul> and <li> to function properly as unordered lists. Should match with Deployables parameter.
</div>