Difference between revisions of "Template:Armor"

From DoomRL Wiki

Jump to: navigation, search
(Added a new resistances table row)
Line 1: Line 1:
{| style="border: 2px solid darkred; border-spacing: 0; float: left; font-size: 90%; margin: 0.25em 0.5em; width: 70%"
+
{| class="{{#ifeq:{{{collapsible|}}}|yes|collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}} infobox vevent" style="float:{{{align|right}}}; width:{{#if:{{{width|}}}|{{{width|}}}|264px}}; font-size:90%; text-align:left;" cellspacing="0" cellpadding="3"
|colspan=2 style="background: darkred; color: yellow; font-size: 120%; text-align: center"|'''{{{armor_name}}}'''
+
|-
|-
+
<includeonly>! colspan=2 style="text-align:center;" class="summary" | <span style="font-size:111%;">''{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}''</span></includeonly>
|style="text-align: right; width: 12em; vertical-align:top"|'''Protection:'''
+
{{#ifeq:{{{show image|}}}|yes|<table style="width:100%; font-weight:normal; background:none; margin: 6px 0 0 0" cellspacing="0" cellpadding="0">|{{!}}-}}
|style="padding-left: 1ex"|{{{armor_prot}}}
+
{{#if:{{{image|}}}|
|- style="background: #333;"
+
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image|}}}<br />{{#if:{{{caption|}}}|<span style="font-size:95%;">{{{caption}}}</span>}}
|style="text-align: right; width: 12em; vertical-align:top"|'''Resistances:'''
+
}}
|style="padding-left: 1ex"|{{{armor_resists|unknown}}}
+
{{#ifeq:{{{show image|}}}|yes|</table>}}
|-
+
{{Alternating rows table section
|style="text-align: right; width: 12em; vertical-align:top"|'''Durability:'''
+
  |es=background:#333;
|style="padding-left: 1ex"|{{{armor_health}}}
+
  |{{#if:{{{armor_prot|}}}|{{!}} '''Protection''' {{!!}} {{{armor_prot|}}} }}
|- style="background: #333;"
+
  |{{#if:{{{armor_resists|}}}| {{!}} '''Resistances''' {{!!}} {{{armor_resists|}}} }}
|style="text-align: right; width: 12em; vertical-align:top"|'''Move Speed:'''
+
  |{{#if:{{{armor_health|}}}| {{!}} '''Durability''' {{!!}} {{{distributor|}}} }}
|style="padding-left: 1ex"|{{{armor_move}}}
+
  |{{#if:{{{armor_move|}}}| {{!}} '''Move Speed''' {{!!}} {{{armor_move|}}} }}
|-
+
  |{{#if:{{{armor_knockback|}}}| {{!}} '''Knockback''' {{!!}} {{{armor_knockback|}}} }}
|style="text-align: right; width: 12em; vertical-align:top"|'''Knockback:'''
+
  |{{#if:{{{armor_get|}}}| {{!}} '''How to get it''' {{!!}} {{{armor_get|}}} }}
|style="padding-left: 1ex"|{{{armor_knockback}}}
+
  |{{#if:{{{armor_looks|}}}| {{!}} '''Appearance''' {{!!}} {{{armor_looks|}}} }}
|- style="background: #333;"
+
  |{{#if:{{{armor_description|}}}| {{!}} '''Ingame Description''' {{!!}} {{{armor_description|}}} }}
|style="text-align: right; width: 12em; vertical-align:top"|'''How to get it:'''
+
  |{{#if:{{{armor_other|}}}| {{!}} colspan="2" {{!}} '''Comments''' }}
|style="padding-left: 1ex"|{{{armor_get}}}
+
  |{{#if:{{{armor_other|}}}| {{!}} colspan="2" {{!}} {{{armor_other|}}} }}
|-
+
}}
|style="text-align: right; width: 12em; vertical-align:top"|'''Appearance:'''
+
|style="padding-left: 1ex"|{{{armor_looks}}}
+
|- style="background: #333;"
+
|style="text-align: right; width: 12em; vertical-align:top"|'''Ingame Description:'''
+
|style="padding-left: 1ex"|{{{armor_description}}}
+
|-
+
|style="text-align: right; width: 12em; vertical-align:top"|'''Comments/special:'''
+
|style="padding-left: 1ex"|{{{armor_other}}}
+
 
|}
 
|}

Revision as of 13:33, 10 September 2011

Personal tools