Difference between revisions of "Template:ArmorStats"

From ELWiki
Jump to navigation Jump to search
 
m
Line 55: Line 55:
 
{{
 
{{
 
#if: {{{Armor|}}} |
 
#if: {{{Armor|}}} |
!style="border-right:1px solid grey;" align="center"{{!}}Armor
+
{{!}}style="border-right:1px solid grey;" align="center"{{!}}Armor
 
}}{{
 
}}{{
 
#if: {{{Def|}}} |
 
#if: {{{Def|}}} |
!style="border-right:1px solid grey;" align="center" title="Defense"{{!}}Def
+
{{!}}style="border-right:1px solid grey;" align="center" title="Defense"{{!}}Def
 
}}{{
 
}}{{
 
#if: {{{Acc|}}} |
 
#if: {{{Acc|}}} |
!style="border-right:1px solid grey;" align="center" title="Accuracy"{{!}}Acc
+
{{!}}style="border-right:1px solid grey;" align="center" title="Accuracy"{{!}}Acc
 
}}{{
 
}}{{
 
#if: {{{Crit|}}} |
 
#if: {{{Crit|}}} |
!style="border-right:1px solid grey;" align="center" title="Critical To Hit"{{!}}Crit
+
{{!}}style="border-right:1px solid grey;" align="center" title="Critical To Hit"{{!}}Crit
 
}}{{
 
}}{{
 
#if: {{{Cold|}}} |
 
#if: {{{Cold|}}} |
!style="border-right:1px solid grey;" align="center" title="Cold Protection"{{!}}Cold
+
{{!}}style="border-right:1px solid grey;" align="center" title="Cold Protection"{{!}}Cold
 
}}{{
 
}}{{
 
#if: {{{Heat|}}} |
 
#if: {{{Heat|}}} |
!style="border-right:1px solid grey;" align="center" title="Heat Protection"{{!}}Heat
+
{{!}}style="border-right:1px solid grey;" align="center" title="Heat Protection"{{!}}Heat
 
}}{{
 
}}{{
 
#if: {{{Rad|}}} |
 
#if: {{{Rad|}}} |
!style="border-right:1px solid grey;" align="center" title="Radiation Protection"{{!}}Rad
+
{{!}}style="border-right:1px solid grey;" align="center" title="Radiation Protection"{{!}}Rad
 
}}{{
 
}}{{
 
#if: {{{MProt|}}} |
 
#if: {{{MProt|}}} |
!style="border-right:1px solid grey;" align="center" title="Magic Protection"{{!}}Mag Prot
+
{{!}}style="border-right:1px solid grey;" align="center" title="Magic Protection"{{!}}Mag Prot
 
}}{{
 
}}{{
 
#if: {{{MRes|}}} |
 
#if: {{{MRes|}}} |
!style="border-right:1px solid grey;" align="center" title="Magic Resistance"{{!}}Mag Res
+
{{!}}style="border-right:1px solid grey;" align="center" title="Magic Resistance"{{!}}Mag Res
 
}}{{
 
}}{{
 
#if: {{{EMU|}}} |
 
#if: {{{EMU|}}} |
!style="border-right:1px solid grey;" align="center" title="Weight"{{!}}EMU
+
{{!}}style="border-right:1px solid grey;" align="center" title="Weight"{{!}}EMU
 
}}{{
 
}}{{
 
#if: {{{Human|}}} |
 
#if: {{{Human|}}} |
!style="border-right:1px solid grey;" align="center" title="Nexus needed to wear"{{!}}Human
+
{{!}}style="border-right:1px solid grey;" align="center" title="Nexus needed to wear"{{!}}Human
 
}}
 
}}
 
|-
 
|-

Revision as of 14:12, 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:


Armor|style="border-right:1px solid grey;" align="center" title="Defense"|Def|style="border-right:1px solid grey;" align="center" title="Accuracy"|Acc|style="border-right:1px solid grey;" align="center" title="Critical To Hit"|Crit|style="border-right:1px solid grey;" align="center" title="Cold Protection"|Cold|style="border-right:1px solid grey;" align="center" title="Heat Protection"|Heat|style="border-right:1px solid grey;" align="center" title="Radiation Protection"|Rad|style="border-right:1px solid grey;" align="center" title="Magic Protection"|Mag Prot|style="border-right:1px solid grey;" align="center" title="Magic Resistance"|Mag Res|style="border-right:1px solid grey;" align="center" title="Weight"|EMU|style="border-right:1px solid grey;" align="center" title="Nexus needed to wear"|Human
10|style="border-right:1px solid grey;" align="center"|-4|style="border-right:1px solid grey;" align="center"|silly|style="border-right:1px solid grey;" align="center"|misspelled|style="border-right:1px solid grey;" align="center"|Yes|style="border-right:1px solid grey;" align="center"|wanted|style="border-right:1px solid grey;" align="center"|German word for wheel|style="border-right:1px solid grey;" align="center"|2|style="border-right:1px solid grey;" align="center"|-3|style="border-right:1px solid grey;" align="center"|12|style="border-right:1px solid grey;" align="center"|0