Difference between revisions of "Template:Turret"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
(Turret Infobox go!)
 
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| class="Turret" style="border:1px solid #250b2d; text-align:left; font-size:9pt; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}};" cellpadding="1" cellspacing="0" rules="all" align="right"
+
{| class="Turret" style="border:2px solid #e69710; 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"
! 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" | {{{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}}]]  
 
|-
 
|-
| style="background:#33333; width:150px" | Armament: || colspan="2" style="background:#383838" | {{{Weapons}}}
+
| style="background:#33333; width:150px; height:65px" | Armament: || colspan="2" style="background:#383838" | {{{Weapons}}}
 
|-
 
|-
 
| Armor || colspan="2" style="background:#383838" | {{{Armor}}}
 
| Armor || colspan="2" style="background:#383838" | {{{Armor}}}
Line 11: Line 11:
 
| colspan="3" style="background:#2a2a2a;text-align:center" | '''Detection Ranges'''
 
| colspan="3" style="background:#2a2a2a;text-align:center" | '''Detection Ranges'''
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
| [[Battle Armor]]:<br> [[Mechs]]:<br> [[Vehicles]]:<br> [[VTOLs]]:<br> [[Aerospace Fighters]]:
+
|{{#if: {{{Range BA|}}}|[[Battle Armor]]:<br> |}}<!--
| colspan="2" style="background:#383838" | {{{Range BA}}} meters<br>{{{Range Mech}}} meters<br>{{{Range Vehicle}}} meters<br>{{{Range VTOL}}} meters<br>{{{Range ASF}}} meters
+
-->{{#if: {{{Range Mech|}}} |[[Mechs]]:<br> |}}<!--
 +
-->{{#if: {{{Range Vehicle|}}} |[[Vehicles]]:<br> |}}<!--
 +
-->{{#if: {{{Range VTOL|}}} |[[VTOLs]]:<br> |}}<!--
 +
-->{{#if: {{{Range ASF|}}} |[[Aerospace Fighters]]:<br> |}}<!--
 +
-->{{#if: {{{Range Missile|}}} |[[Missiles]]: |}}
 +
| colspan="2" style="vertical-align:top; background:#383838" |{{#if: {{{Range BA|}}}|{{{Range BA}}} meters<br>| }}<!--
 +
-->{{#if: {{{Range Mech|}}} |{{{Range Mech}}} meters<br>| }}<!--
 +
-->{{#if: {{{Range Vehicle|}}} |{{{Range Vehicle}}} meters<br>| }}<!--
 +
-->{{#if: {{{Range VTOL|}}} |{{{Range VTOL}}} meters<br>| }}<!--
 +
-->{{#if: {{{Range ASF|}}} |{{{Range ASF}}} meters<br>| }}<!--
 +
-->{{#if: {{{Range Missile|}}} |{{{Range Missile}}} meters| }}
 
|-
 
|-
|}
+
|}[[Category:Structures]]</includeonly>
[[Category:Structures]]
+
<noinclude>{{Documentation}} [[Category:Infoboxes]]</noinclude>
</includeonly>
 
 
 
<noinclude>
 
{{Turret
 
| Image = File:Calliope.jpg
 
| Name = Calliope
 
| Weapons = <ul>
 
<li> 2x [[MBL]]
 
<li> 2x [[SRM10]]
 
<li> 2x [[LRM5]]
 
<li> 2x [[MGun]]
 
</ul>
 
| Armor = 4500
 
| Range BA = 250
 
| Range Mech = 500
 
| Range Vehicle = 500
 
| Range VTOL = 700
 
| Range ASF = 700
 
}}  
 
 
 
==Usage==
 
<nowiki>{{Turret</nowiki><br>
 
| Image = File:'''Name Of Image'''.jpg<br>
 
| ImageSize = '''Number only (in px; optional; default 350)'''<br>
 
| Weapons = '''Weapons*'''<br>
 
| Armor = '''Armor at full health'''<br>
 
| Range BA = '''Detection range for BA in meter'''<br>
 
| Range Mech = '''Detection range for Mechs in meter'''<br>
 
| Range Vehicle = '''Detection range for Vehicles in meter'''<br>
 
| Range VTOL = '''Detection range for VTOLs in meter'''<br>
 
| Range ASF = '''Detection range for ASF in meter'''<br>
 
}}
 
 
 
===Notes===
 
* Weapons and Equipment require <nowiki><ul> and <li></nowiki> to function properly as unordered lists (see template).
 
{{Clear}}
 
==Template==
 
<pre>
 
{{Turret
 
| Image =
 
| ImageSize =
 
| Weapons = <ul>
 
<li>
 
<li>
 
<li>
 
</ul>
 
| Armor =
 
| Range BA =
 
| Range Mech =
 
| Range Vehicle =
 
| Range VTOL =
 
| Range ASF =
 
}}
 
</pre>
 
[[Category:Infoboxes]]
 
</noinclude>
 

Latest revision as of 16:41, 19 November 2019

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

This infobox template is for Turrets.

Usage

Calliope
Calliope.jpg
Armament:
Armor 4500
Detection Ranges
Battle Armor:
Mechs:
Vehicles:
VTOLs:
Aerospace Fighters:
250 meters
500 meters
500 meters
700 meters
700 meters

Blank Template

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.

{{Turret
| Image = 
| ImageSize = 
| Name = 
| Weapons = <ul>
<li> 
<li> 
<li> 
<li> 
</ul>
| Armor = 
| Range BA = 
| Range Mech = 
| Range Vehicle = 
| Range ASF = 
| Range VTOL = 
}}

Parameters

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 turret.
Weapons Yes Weapons used by the turret. Weapons require <ul> and <li> to function properly as unordered lists.
Armor Yes Armor at full health
Range BA Yes Detection range for Battle Armor in meters.
Range Mech Yes Detection range for Mechs in meters.
Range Vehicle Yes Detection range for Vehicles in meters.
Range VTOL Yes Detection range for VTOLs in meters.
Range ASF Yes Detection range for Aerospace Fighters in meters.