Difference between revisions of "Template:ArmorStats"
Jump to navigation
Jump to search
m (html) |
m |
||
Line 3: | Line 3: | ||
<tr> | <tr> | ||
{{ | {{ | ||
− | #if: {{{Armor|}}} |<th style="border-right:1px solid grey;" align="center">Armor</th> | + | #if: {{{Armor|}}} | |
+ | <th style="border-right:1px solid grey;" align="center">Armor</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{Def|}}} |<th style="border-right:1px solid grey;" align="center" title="Defense">Def</th> | + | #if: {{{Def|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Defense">Def</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{Acc|}}} |<th style="border-right:1px solid grey;" align="center" title="Accuracy">Acc</th> | + | #if: {{{Acc|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Accuracy">Acc</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{Crit|}}} |<th style="border-right:1px solid grey;" align="center" title="Critical To Hit">Crit</th> | + | #if: {{{Crit|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Critical To Hit">Crit</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{Cold|}}} |<th style="border-right:1px solid grey;" align="center" title="Cold Protection">Cold</th> | + | #if: {{{Cold|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Cold Protection">Cold</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{Heat|}}} |<th style="border-right:1px solid grey;" align="center" title="Heat Protection">Heat</th> | + | #if: {{{Heat|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Heat Protection">Heat</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{Rad|}}} |<th style="border-right:1px solid grey;" align="center" title="Radiation Protection">Rad</th> | + | #if: {{{Rad|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Radiation Protection">Rad</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{MProt|}}} |<th style="border-right:1px solid grey;" align="center" title="Magic Protection">Mag Prot</th> | + | #if: {{{MProt|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Magic Protection">Mag Prot</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{MRes|}}} |<th style="border-right:1px solid grey;" align="center" title="Magic Resistance">Mag Res</th> | + | #if: {{{MRes|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Magic Resistance">Mag Res</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{EMU|}}} |<th style="border-right:1px solid grey;" align="center" title="Weight">EMU</th> | + | #if: {{{EMU|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Weight">EMU</th> | ||
}}{{ | }}{{ | ||
− | #if: {{{Human|}}} |<th style="border-right:1px solid grey;" align="center" title="Nexus needed to wear">Human</th> | + | #if: {{{Human|}}} | |
+ | <th style="border-right:1px solid grey;" align="center" title="Nexus needed to wear">Human</th> | ||
}} | }} | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
{{ | {{ | ||
− | #if: {{{Armor|}}} |<td style="border-right:1px solid grey;" align="center">{{{Armor}}}</td> | + | #if: {{{Armor|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Armor}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{Def|}}} |<td style="border-right:1px solid grey;" align="center">{{{Def}}}</td> | + | #if: {{{Def|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Def}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{Acc|}}} |<td style="border-right:1px solid grey;" align="center">{{{Acc}}}</td> | + | #if: {{{Acc|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Acc}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{Crit|}}} |<td style="border-right:1px solid grey;" align="center">{{{Crit}}}</td> | + | #if: {{{Crit|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Crit}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{Cold|}}} |<td style="border-right:1px solid grey;" align="center">{{{Cold}}}</td> | + | #if: {{{Cold|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Cold}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{Heat|}}} |<td style="border-right:1px solid grey;" align="center">{{{Heat}}}</td> | + | #if: {{{Heat|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Heat}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{Rad|}}} |<td style="border-right:1px solid grey;" align="center">{{{Rad}}}</td> | + | #if: {{{Rad|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Rad}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{MProt|}}} |<td style="border-right:1px solid grey;" align="center">{{{MProt}}}</td> | + | #if: {{{MProt|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{MProt}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{MRes|}}} |<td style="border-right:1px solid grey;" align="center">{{{MRes}}}</td> | + | #if: {{{MRes|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{MRes}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{EMU|}}} |<td style="border-right:1px solid grey;" align="center">{{{EMU}}}</td> | + | #if: {{{EMU|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{EMU}}}</td> | ||
}}{{ | }}{{ | ||
− | #if: {{{Human|}}} |<td style="border-right:1px solid grey;" align="center">{{{Human}}}</td> | + | #if: {{{Human|}}} | |
+ | <td style="border-right:1px solid grey;" align="center">{{{Human}}}</td> | ||
}} | }} | ||
</tr> | </tr> |
Revision as of 20:43, 21 November 2008
ArmorStats template
Templates
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 | Def | Acc | Crit | Cold | Heat | Rad | Mag Prot | Mag Res | EMU | Human |
---|---|---|---|---|---|---|---|---|---|---|
10 | -4 | silly | misspelled | Yes | wanted | German word for wheel | 2 | -3 | 12 | 0 |