Difference between revisions of "Template:ArmorStats"

From ELWiki
Jump to navigation Jump to search
m
m (html)
Line 1: Line 1:
 
 
<includeonly>
 
<includeonly>
{|style="border:1px solid grey;" cellpadding="3" cellspacing="0" align = "center"
+
<table style="border:1px solid grey;" cellpadding="3" cellspacing="0" align = "center">
|-
+
<tr>
 
{{
 
{{
#if: {{{Armor|}}} |! style="border-right:1px solid grey;" align="center"&#124;Armor
+
#if: {{{Armor|}}} |<th style="border-right:1px solid grey;" align="center">Armor</th>
 
}}{{
 
}}{{
#if: {{{Def|}}} |! style="border-right:1px solid grey;" align="center" title="Defense"&#124;Def
+
#if: {{{Def|}}} |<th style="border-right:1px solid grey;" align="center" title="Defense">Def</th>
 
}}{{
 
}}{{
#if: {{{Acc|}}} |! style="border-right:1px solid grey;" align="center" title="Accuracy"&#124;Acc
+
#if: {{{Acc|}}} |<th style="border-right:1px solid grey;" align="center" title="Accuracy">Acc</th>
 
}}{{
 
}}{{
#if: {{{Crit|}}} |! style="border-right:1px solid grey;" align="center" title="Critical To Hit"&#124;Crit
+
#if: {{{Crit|}}} |<th style="border-right:1px solid grey;" align="center" title="Critical To Hit">Crit</th>
 
}}{{
 
}}{{
#if: {{{Cold|}}} |! style="border-right:1px solid grey;" align="center" title="Cold Protection"&#124;Cold
+
#if: {{{Cold|}}} |<th style="border-right:1px solid grey;" align="center" title="Cold Protection">Cold</th>
 
}}{{
 
}}{{
#if: {{{Heat|}}} |! style="border-right:1px solid grey;" align="center" title="Heat Protection"&#124;Heat
+
#if: {{{Heat|}}} |<th style="border-right:1px solid grey;" align="center" title="Heat Protection">Heat</th>
 
}}{{
 
}}{{
#if: {{{Rad|}}} |! style="border-right:1px solid grey;" align="center" title="Radiation Protection"{{!}}Rad
+
#if: {{{Rad|}}} |<th style="border-right:1px solid grey;" align="center" title="Radiation Protection">Rad</th>
 
}}{{
 
}}{{
#if: {{{MProt|}}} |! style="border-right:1px solid grey;" align="center" title="Magic Protection"{{!}}Mag Prot
+
#if: {{{MProt|}}} |<th style="border-right:1px solid grey;" align="center" title="Magic Protection">Mag Prot</th>
 
}}{{
 
}}{{
#if: {{{MRes|}}} |! style="border-right:1px solid grey;" align="center" title="Magic Resistance"{{!}}Mag Res
+
#if: {{{MRes|}}} |<th style="border-right:1px solid grey;" align="center" title="Magic Resistance">Mag Res</th>
 
}}{{
 
}}{{
#if: {{{EMU|}}} |! style="border-right:1px solid grey;" align="center" title="Weight"{{!}}EMU
+
#if: {{{EMU|}}} |<th style="border-right:1px solid grey;" align="center" title="Weight">EMU</th>
 
}}{{
 
}}{{
#if: {{{Human|}}} |! style="border-right:1px solid grey;" align="center" title="Nexus needed to wear"{{!}}Human
+
#if: {{{Human|}}} |<th style="border-right:1px solid grey;" align="center" title="Nexus needed to wear">Human</th>
 
}}
 
}}
|-
+
</tr>
 +
<tr>
 
{{
 
{{
#if: {{{Armor|}}} |{{!}} style="border-right:1px solid grey;" align="center"{{!}}{{{Armor}}}
+
#if: {{{Armor|}}} |<td style="border-right:1px solid grey;" align="center">{{{Armor}}}</td>
 
}}{{
 
}}{{
#if: {{{Def|}}} |{{!}} style="border-right:1px solid grey;" align="center"{{!}}{{{Def}}}
+
#if: {{{Def|}}} |<td style="border-right:1px solid grey;" align="center">{{{Def}}}</td>
 
}}{{
 
}}{{
#if: {{{Acc|}}} |{{!}} style="border-right:1px solid grey;" align="center"{{!}}{{{Acc}}}
+
#if: {{{Acc|}}} |<td style="border-right:1px solid grey;" align="center">{{{Acc}}}</td>
 
}}{{
 
}}{{
#if: {{{Crit|}}} |{{!}} style="border-right:1px solid grey;" align="center"{{!}}{{{Crit}}}
+
#if: {{{Crit|}}} |<td style="border-right:1px solid grey;" align="center">{{{Crit}}}</td>
 
}}{{
 
}}{{
#if: {{{Cold|}}} |{{!}} style="border-right:1px solid grey;" align="center"{{!}}{{{Cold}}}
+
#if: {{{Cold|}}} |<td style="border-right:1px solid grey;" align="center">{{{Cold}}}</td>
 
}}{{
 
}}{{
#if: {{{Heat|}}} |{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Heat}}}
+
#if: {{{Heat|}}} |<td style="border-right:1px solid grey;" align="center">{{{Heat}}}</td>
 
}}{{
 
}}{{
#if: {{{Rad|}}} |{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Rad}}}
+
#if: {{{Rad|}}} |<td style="border-right:1px solid grey;" align="center">{{{Rad}}}</td>
 
}}{{
 
}}{{
#if: {{{MProt|}}} |{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{MProt}}}
+
#if: {{{MProt|}}} |<td style="border-right:1px solid grey;" align="center">{{{MProt}}}</td>
 
}}{{
 
}}{{
#if: {{{MRes|}}} |{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{MRes}}}
+
#if: {{{MRes|}}} |<td style="border-right:1px solid grey;" align="center">{{{MRes}}}</td>
 
}}{{
 
}}{{
#if: {{{EMU|}}} |{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{EMU}}}
+
#if: {{{EMU|}}} |<td style="border-right:1px solid grey;" align="center">{{{EMU}}}</td>
 
}}{{
 
}}{{
#if: {{{Human|}}} |{{!}} style="border-right:1px solid grey;" align="center"{{!}}{{{Human}}}
+
#if: {{{Human|}}} |<td style="border-right:1px solid grey;" align="center">{{{Human}}}</td>
 
}}
 
}}
|}
+
</tr>
 +
</table>
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 14:41, 21 November 2008


Prints out a table with the combat statistics of a piece of armor. (Yes I know there is already a template that does all that, but it also forces a given page structure by including the FoCW Header' which I want to avoid.

The parameters are

  • Armor: Armor provided by the item
  • Def: Defense level modifier of the item
  • Acc: Accuracy modifier of the item
  • Crit: Critical to hit modifier of the item
  • Cold: Cold protection provided by the item
  • Heat: Heat protection provided by the item
  • Rad: Radiation protection provided by the item
  • MProt: Magic protection provided by the item
  • MRes: Magic resistance provided by the item
  • EMU: Weight of the item
  • Human: Human Nexus level required to wear the item

All parameters are optional.

Test:

{{ArmorStats
|Armor = 10
|Def = -4
|Acc = silly
|Crit = misspelled
|Cold = Yes
|Heat = wanted
|Rad = German word for wheel
|MProt = 2
|MRes = -3
|EMU = 12
|Human = 0
}}

Gives:


ArmorDefAccCritColdHeatRadMag ProtMag ResEMUHuman
10-4sillymisspelledYeswantedGerman word for wheel2-3120