Difference between revisions of "Template:ArmorStats"
Jump to navigation
Jump to search
m |
m (spacing) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<includeonly> | <includeonly> | ||
− | + | <table style="border:1px solid grey;" cellpadding="3" cellspacing="0" align = "center"> | |
− | + | <tr> | |
{{ | {{ | ||
#if: {{{Armor|}}} | | #if: {{{Armor|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center">Armor</th> | |
}}{{ | }}{{ | ||
#if: {{{Def|}}} | | #if: {{{Def|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Defense">Def</th> | |
}}{{ | }}{{ | ||
#if: {{{Acc|}}} | | #if: {{{Acc|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Accuracy">Acc</th> | |
}}{{ | }}{{ | ||
#if: {{{Crit|}}} | | #if: {{{Crit|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Critical To Hit">Crit</th> | |
}}{{ | }}{{ | ||
#if: {{{Cold|}}} | | #if: {{{Cold|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Cold Protection">Cold</th> | |
}}{{ | }}{{ | ||
#if: {{{Heat|}}} | | #if: {{{Heat|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Heat Protection">Heat</th> | |
}}{{ | }}{{ | ||
#if: {{{Rad|}}} | | #if: {{{Rad|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Radiation Protection">Rad</th> | |
}}{{ | }}{{ | ||
#if: {{{MProt|}}} | | #if: {{{MProt|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Magic Protection">Mag Prot</th> | |
}}{{ | }}{{ | ||
#if: {{{MRes|}}} | | #if: {{{MRes|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Magic Resistance">Mag Res</th> | |
}}{{ | }}{{ | ||
#if: {{{EMU|}}} | | #if: {{{EMU|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Weight">EMU</th> | |
}}{{ | }}{{ | ||
#if: {{{Human|}}} | | #if: {{{Human|}}} | | ||
− | + | <th style="border-right:1px solid grey;" align="center" title="Nexus needed to wear">Human</th> | |
}} | }} | ||
− | + | </tr> | |
+ | <tr> | ||
{{ | {{ | ||
#if: {{{Armor|}}} | | #if: {{{Armor|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Armor}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{Def|}}} | | #if: {{{Def|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Def}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{Acc|}}} | | #if: {{{Acc|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Acc}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{Crit|}}} | | #if: {{{Crit|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Crit}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{Cold|}}} | | #if: {{{Cold|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Cold}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{Heat|}}} | | #if: {{{Heat|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Heat}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{Rad|}}} | | #if: {{{Rad|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Rad}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{MProt|}}} | | #if: {{{MProt|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{MProt}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{MRes|}}} | | #if: {{{MRes|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{MRes}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{EMU|}}} | | #if: {{{EMU|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{EMU}}}</td> | |
}}{{ | }}{{ | ||
#if: {{{Human|}}} | | #if: {{{Human|}}} | | ||
− | + | <td style="border-right:1px solid grey;" align="center">{{{Human}}}</td> | |
}} | }} | ||
− | + | </tr> | |
+ | </table> | ||
</includeonly> | </includeonly> | ||
+ | <noinclude> | ||
+ | {{FoCW Header|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: | ||
+ | <pre><nowiki> | ||
+ | {{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 | ||
+ | }} | ||
+ | </nowiki></pre> | ||
+ | Gives: | ||
+ | |||
+ | {{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 | ||
+ | }} | ||
+ | </noinclude> |
Latest revision as of 07:48, 11 December 2010
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 |