Difference between revisions of "Template:ASF"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
(make tonnage optional)
(Padding adjustments and added documentation)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| class="Vehicle" 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="ASF" 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" | {{PAGENAME}}
 
! colspan="3" style="background:#2a2a2a; text-align:center; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; font-size:12pt" | {{PAGENAME}}
 
|-
 
|-
| 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}}]]  
 
|-
 
|-
 
| Faction || colspan="2" style="background:#383838" | [[{{{Faction}}}]]
 
| Faction || colspan="2" style="background:#383838" | [[{{{Faction}}}]]
Line 16: Line 15:
 
| colspan="3" style="background:#2a2a2a;text-align:center;font-size:9pt" | '''Variant Armament'''
 
| colspan="3" style="background:#2a2a2a;text-align:center;font-size:9pt" | '''Variant Armament'''
 
|-
 
|-
| style="background:#33333; min-width:100px" | Variant || style="background:#383838; min-width:100px" | Weapons || style="background:#333333; min-width:100px" | Equipment
+
| style="background:#33333; min-width:34%" | Variant || style="background:#383838; min-width:100px" | Weapons || style="background:#333333; min-width:100px" | Equipment
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
 
| style="font-size:8pt" | Prime:<br> Class: {{{Class Prime}}}<br> Price: {{{Price Prime}}} CBills<br> Total base armor: {{{ArmorT Prime}}}<br> Maneuverability: {{{Maneuver Prime}}}<br> Max Speed: {{#if:{{{MaxSpeed Prime|}}} |
 
| style="font-size:8pt" | Prime:<br> Class: {{{Class Prime}}}<br> Price: {{{Price Prime}}} CBills<br> Total base armor: {{{ArmorT Prime}}}<br> Maneuverability: {{{Maneuver Prime}}}<br> Max Speed: {{#if:{{{MaxSpeed Prime|}}} |
Line 84: Line 83:
 
|}
 
|}
 
[[Category:Aerospace Fighters]]
 
[[Category:Aerospace Fighters]]
[[Category:{{{Faction}}} Aerospace Fighters]]
+
[[Category:{{{Faction}}} Aerospace Fighters]]</includeonly>
{{ClearRight}}
+
<noinclude>[[Category: Infoboxes]] {{Documentation}}</noinclude>
</includeonly>
 
 
 
<noinclude>
 
{{ASF
 
| Image = File:MWLL_logo_large.png
 
| ImageSize =
 
| Faction = Clan
 
| Tickets = 5
 
| Tonnage = 45
 
 
 
| Class Prime = Fighter
 
| Price Prime = 65,000
 
| ArmorT Prime = 10,000
 
| MaxSpeed Prime = 400
 
| Maneuver Prime = 7.2
 
| Weapons Prime =  <ul>
 
<li>1 [[HVAC|HVAC10]]
 
<li>1 [[ERLBL]]
 
<li>2 [[LRM5]]
 
<li>2 [[LRM5]]
 
<li>2 [[MGun]]
 
</ul>
 
| Equip Prime = <ul>
 
<li>[[C3]]
 
<li>[[GECM]]
 
<li>[[EOptics]]
 
<li>[[MASC]]
 
<li>3 [[DHS]]
 
<li>0 [[free tons]]
 
<li>9T [[Armor]]
 
</ul>
 
 
 
| Class A = Bomber
 
| Price A = 75,000
 
| ArmorT A = 16,000
 
| MaxSpeed A = 300
 
| Maneuver A = 5.2
 
| Weapons A =  <ul>
 
<li>1 [[AirCMPL]]
 
<li>1 [[CLBX5]]
 
<li>2 [[AirLRM5]]
 
</ul>
 
| Equip A = <ul>
 
<li> [[C3]]
 
<li> [[GECM]]
 
<li> [[EOptics]]
 
<li> [[MASC]]
 
<li> 3 [[DHS]]
 
<li> 0 [[free tons]]
 
</ul>
 
|}}
 
 
 
==Usage==
 
<nowiki>{{ASF</nowiki><br>
 
| Image = '''<nowiki>[[File:Name Of Image.png]]</nowiki>'''<br>
 
| ImageSize = '''Number only (in px; optional; default 350)'''<br>
 
| Faction = '''Inner Sphere or Clan'''<br>
 
| Tickets = '''Number only'''<br>
 
| Tonnage = '''Number only'''<br>
 
<br>
 
| Class Prime= '''Fighter/Attacker/Bomber'''<br>
 
| Price Prime = '''Price of prime, number only (commas accepted)'''<br>
 
| ArmorT Prime = '''Total Armor, number only (commas accepted)'''<br>
 
| Maneuver = '''Number only'''<br>
 
| MaxSpeed = '''Number only'''<br>
 
| Equip Prime = '''<nowiki>Equipment*</nowiki>'''<br>
 
| Weapons Prime = '''<nowiki>Weapon* (required)</nowiki>'''<br>
 
| Class A = '''Fighter/Attacker/Bomber'''<br>
 
| Price A = '''Price of A, number only (commas accepted)'''<br>
 
| ArmorT A = '''Total Armor, number only (commas accepted)'''<br>
 
| Maneuver A = '''Number only'''<br>
 
| MaxSpeed A = '''Number only'''<br>
 
| Equip A = '''<nowiki>Equipment*</nowiki>'''<br>
 
| Weapons A = '''<nowiki>Weapon* (required to be shown)</nowiki>'''<br>
 
| Class B = '''Fighter/Attacker/Bomber'''<br>
 
| Price B = '''Price of B, number only (commas accepted)'''<br>
 
| ArmorT B = '''Total Armor, number only (commas accepted)'''<br>
 
| Maneuver B = '''Number only'''<br>
 
| MaxSpeed B = '''Number only'''<br>
 
| Equip B = '''<nowiki>Equipment*</nowiki>'''<br>
 
| Weapons B = '''<nowiki>Weapon* (required to be shown)</nowiki>'''<br>
 
| Class C = '''Fighter/Attacker/Bomber'''<br>
 
| Price C = '''Price of C, number only (commas accepted)'''<br>
 
| ArmorT C = '''Total Armor, number only (commas accepted)'''<br>
 
| Maneuver C = '''Number only'''<br>
 
| MaxSpeed C = '''Number only'''<br>
 
| Equip C = '''<nowiki>Equipment*</nowiki>'''<br>
 
| Weapons C = '''<nowiki>Weapon* (required to be shown)</nowiki>'''<br>
 
'''. . .'''<br>
 
| Class J = '''Fighter/Attacker/Bomber'''<br>
 
| Price J = '''Price of J, number only (commas accepted)'''<br>
 
| ArmorT J = '''Total Armor, number only (commas accepted)'''<br>
 
| Maneuver J = '''Number only'''<br>
 
| MaxSpeed J = '''Number only'''<br>
 
| Equip J = '''<nowiki>Equipment*</nowiki>'''<br>
 
| Weapons J = '''<nowiki>Weapon* (required to be shown)</nowiki>'''<br>
 
<br>'''NOTE: Armor currently not working!'''<br>
 
| Armor CT = '''Center torso armor, number only'''<br>
 
| Armor LRT = '''Left and right torso armor if symmetrical, number only'''<br>
 
| Armor LT = '''Left torso armor if asymmetrical, number only'''<br>
 
| Armor RT = '''Right torso armor if asymmetrical, number only'''<br>
 
| Armor LRA = '''Left and right arm armor, number only'''<br>
 
| Armor LRL= '''Left and right leg armor, number only'''<br>
 
| Armor H = '''Head armor, number only'''<br>
 
| Armor B = '''Back armor, number only'''<br>
 
| Armor LE = '''Left external armor, number only (use only if all variants have external pods)'''<br>
 
| Armor RE = '''Right external armor, number only (use only if all variants have external pods)'''<br>
 
}}
 
 
 
===Notes===
 
* Use proper name for Faction as this is used for categorization.
 
* Image should be Prime variant on white, black, or transparent background.
 
* Total Armor - sum of armor points for components minus the external pods armor (to avoid confusion between variants with and without external pods).
 
* Weapons and Equipment require <nowiki><ul> and <li></nowiki> to function properly as unordered lists (see template).
 
* Variants will not display if no Weapons are listed.
 
 
 
{{Clear}}
 
 
 
==Template==
 
<pre>
 
{{ASF
 
| Image =
 
| ImageSize =
 
| Faction =
 
| Tickets =
 
 
 
| Class Prime =
 
| Price Prime =
 
| ArmorT Prime =
 
| Maneuver Prime =
 
| MaxSpeed Prime =
 
| Weapons Prime = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Equip Prime = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Class A =
 
| Price A =
 
| ArmorT A =
 
| Maneuver A =
 
| MaxSpeed A =
 
| Weapons A = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Equip A = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Class B =
 
| Price B =
 
| ArmorT B =
 
| Maneuver B =
 
| MaxSpeed B =
 
| Weapons B = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Equip B = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Class C =
 
| Price C =
 
| ArmorT C =
 
| Maneuver C =
 
| MaxSpeed C =
 
| Weapons C = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Equip C = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
}}
 
</pre>
 
 
 
[[Category:Infoboxes]]
 
</noinclude>
 

Revision as of 16:25, 7 November 2017

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

This infobox template contains all essential information for MWLL's Aerospace assets.

Usage

ASF
Xerxes.jpg
Xerxes.jpg
Faction Clan
Ticket cost: 5 upon destruction
Tier: 6
Tonnage: 45 tons
Variant Armament
Variant Weapons Equipment
Prime:
Class: Fighter
Price: 65,000 CBills
Total Armor: 10,000
Maneuverability: 7.2
Max Speed: 400 km/h
Opt. Turning: 200 km/h
A:
Class: Bomber
Price: 75,000 CBills
Total Armor: 16,000
Maneuverability: 5.2
Max Speed: 300 km/h
Opt. Turning:
Armor Points Distribution
B
LW
RW
E
T
1100
1200
1300
1400
1500

All stats current as of release 0.15.3

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. This infobox currently supports up to 10 variants.

Blank template

{{ASF
| Image = 
| ImageSize = 
| Faction = 
| Tickets = 
| Tier = 

| Class Prime = 
| Price Prime = 
| ArmorT Prime = 
| Maneuver Prime = 
| MaxSpeed Prime = 
| TurnSpeed Prime = 
| Weapons Prime = <ul>
<li>
<li>
<li>
</ul>
| Equip Prime = <ul>
<li>
<li>
<li>
</ul>
| Class A = 
| Price A = 
| ArmorT A = 
| Maneuver A = 
| MaxSpeed A = 
| TurnSpeed A = 
| Weapons A = <ul>
<li>
<li>
<li>
</ul>
| Equip A = <ul>
<li>
<li>
<li>
</ul>
| Class B = 
| Price B = 
| ArmorT B = 
| Maneuver B = 
| MaxSpeed B = 
| TurnSpeed B = 
| Weapons B = <ul>
<li>
<li>
<li>
</ul>
| Equip B = <ul>
<li>
<li>
<li>
</ul>
| Class C = 
| Price C = 
| ArmorT C = 
| Maneuver C = 
| MaxSpeed C = 
| TurnSpeed C = 
| Weapons C = <ul>
<li>
<li>
<li>
</ul>
| Equip C = <ul>
<li>
<li>
<li>
</ul>
| Armor B = 
| Armor LRW = 
| Armor LW = 
| Armor RW = 
| Armor E = 
| Armor T = 

| Version =
}}

Armor values

These armor values will display overlayed on an armor layout chart below the variant information. The Armor total to the right of each variant is not always the same so all armor values should be taken from the Prime variant. The formatting for Armor is as follows:

Armor B = Body armor, number only
Armor LRW = Left and Right wing armor, number only.
Armor LW = Left wing armor if asymmetrical, number only
Armor RW = Right wing armor if asymmetrical, number only
Armor E = Engine armor, number only
Armor T = Tail armor, number only

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. Image should be Prime variant on white, black, or transparent background.
ImageSize No Image size is the width of the image. Will also determine the width of the infobox. Defaults to 350px when omitted.
Faction Yes The faction of the Asset's creators. Either Inner Sphere or Clan. Creates a link to the Faction's page.
Tickets Yes The number of tickets this asset gives on destruction in the TC gametype.
Tier Yes The tier level of the asset, which determines cbill income from damaging other assets
Tonnage No Tonnage (mass) of the Asset in question.
Class Prime Yes eg: Fighter, Bomber, Attacker.
Price Prime Yes Price of prime, number only
ArmorT Prime Yes Total Armor of the Prime variant.
Maneuver Prime Yes The maneuverability of the Asset.
MaxSpeed Prime Yes The top speed of the Asset.
TurnSpeed Prime Yes Optimal turning speed of the Asset.
Weapons Prime Yes Weapons used by the Prime variant. Weapons and Equipment require <ul> and <li> to function properly as unordered lists.
Equip Prime Yes Equipment used by the Prime variant. Weapons and Equipment require <ul> and <li> to function properly as unordered lists.
Class A... J No eg: Fighter, Bomber, Attacker.
Price A... J No Price of each additional variant.
ArmorT A... J No Total Armor of each additional variant.
Maneuver A... J No The maneuverability of each additional variant.
MaxSpeed A... J No The top speed of the each additional variant.
Weapons A... J No* Weapons for each additional variant (up to 9). Variants will not display if this field is blank or omitted. Weapons and Equipment require <ul> and <li> to function properly as unordered lists.
Equip A... J No Equipment for each additional variant (up to 9). Weapons and Equipment require <ul> and <li> to function properly as unordered lists.
Armor B Yes* Armor value for ASF Body (or fuselage). Number only. Required for armor diagram to be displayed.
Armor LRW No Armor value of ASF Left and Right Wings when symmetrical. Overwritten by LW or RW if those are also used.
Armor LW No Armor value for ASF Left Wing. Will override Left Wing of LRW if used. Number only.
Armor RW No Armor value for ASF Right Wing. Will override Right Wing of LRW if used. Number only.
Armor E No Armor value for ASF Engine. Number only.
Armor T No Armor value for ASF Tail. Number only.
Version No Value informing that stats are up to date for this version. Will use default value if left blank.