Difference between revisions of "Template:ArmorStats"

From ELWiki
Jump to navigation Jump to search
m
m (spacing)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<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>
 
 
<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|}}} |
 
#if: {{{Armor|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}Armor
+
<th style="border-right:1px solid grey;" align="center">Armor</th>
 
}}{{
 
}}{{
 
#if: {{{Def|}}} |
 
#if: {{{Def|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Defense"{{!}}Def
+
<th style="border-right:1px solid grey;" align="center" title="Defense">Def</th>
 
}}{{
 
}}{{
 
#if: {{{Acc|}}} |
 
#if: {{{Acc|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Accuracy"{{!}}Acc
+
<th style="border-right:1px solid grey;" align="center" title="Accuracy">Acc</th>
 
}}{{
 
}}{{
 
#if: {{{Crit|}}} |
 
#if: {{{Crit|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Critical To Hit"{{!}}Crit
+
<th style="border-right:1px solid grey;" align="center" title="Critical To Hit">Crit</th>
 
}}{{
 
}}{{
 
#if: {{{Cold|}}} |
 
#if: {{{Cold|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Cold Protection"{{!}}Cold
+
<th style="border-right:1px solid grey;" align="center" title="Cold Protection">Cold</th>
 
}}{{
 
}}{{
 
#if: {{{Heat|}}} |
 
#if: {{{Heat|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Heat Protection"{{!}}Heat
+
<th style="border-right:1px solid grey;" align="center" title="Heat Protection">Heat</th>
 
}}{{
 
}}{{
 
#if: {{{Rad|}}} |
 
#if: {{{Rad|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Radiation Protection"{{!}}Rad
+
<th style="border-right:1px solid grey;" align="center" title="Radiation Protection">Rad</th>
 
}}{{
 
}}{{
 
#if: {{{MProt|}}} |
 
#if: {{{MProt|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Magic Protection"{{!}}Mag Prot
+
<th style="border-right:1px solid grey;" align="center" title="Magic Protection">Mag Prot</th>
 
}}{{
 
}}{{
 
#if: {{{MRes|}}} |
 
#if: {{{MRes|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Magic Resistance"{{!}}Mag Res
+
<th style="border-right:1px solid grey;" align="center" title="Magic Resistance">Mag Res</th>
 
}}{{
 
}}{{
 
#if: {{{EMU|}}} |
 
#if: {{{EMU|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Weight"{{!}}EMU
+
<th style="border-right:1px solid grey;" align="center" title="Weight">EMU</th>
 
}}{{
 
}}{{
 
#if: {{{Human|}}} |
 
#if: {{{Human|}}} |
{{!}}style="border-right:1px solid grey;" align="center" title="Nexus needed to wear"{{!}}Human
+
<th style="border-right:1px solid grey;" align="center" title="Nexus needed to wear">Human</th>
 
}}
 
}}
|-
+
</tr>
 +
<tr>
 
{{
 
{{
 
#if: {{{Armor|}}} |
 
#if: {{{Armor|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Armor}}}
+
<td style="border-right:1px solid grey;" align="center">{{{Armor}}}</td>
 
}}{{
 
}}{{
 
#if: {{{Def|}}} |
 
#if: {{{Def|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Def}}}
+
<td style="border-right:1px solid grey;" align="center">{{{Def}}}</td>
 
}}{{
 
}}{{
 
#if: {{{Acc|}}} |
 
#if: {{{Acc|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Acc}}}
+
<td style="border-right:1px solid grey;" align="center">{{{Acc}}}</td>
 
}}{{
 
}}{{
 
#if: {{{Crit|}}} |
 
#if: {{{Crit|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Crit}}}
+
<td style="border-right:1px solid grey;" align="center">{{{Crit}}}</td>
 
}}{{
 
}}{{
 
#if: {{{Cold|}}} |
 
#if: {{{Cold|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Cold}}}
+
<td style="border-right:1px solid grey;" align="center">{{{Cold}}}</td>
 
}}{{
 
}}{{
 
#if: {{{Heat|}}} |
 
#if: {{{Heat|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Heat}}}
+
<td style="border-right:1px solid grey;" align="center">{{{Heat}}}</td>
 
}}{{
 
}}{{
 
#if: {{{Rad|}}} |
 
#if: {{{Rad|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{Rad}}}
+
<td style="border-right:1px solid grey;" align="center">{{{Rad}}}</td>
 
}}{{
 
}}{{
 
#if: {{{MProt|}}} |
 
#if: {{{MProt|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{MProt}}}
+
<td style="border-right:1px solid grey;" align="center">{{{MProt}}}</td>
 
}}{{
 
}}{{
 
#if: {{{MRes|}}} |
 
#if: {{{MRes|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{MRes}}}
+
<td style="border-right:1px solid grey;" align="center">{{{MRes}}}</td>
 
}}{{
 
}}{{
 
#if: {{{EMU|}}} |
 
#if: {{{EMU|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{EMU}}}
+
<td style="border-right:1px solid grey;" align="center">{{{EMU}}}</td>
 
}}{{
 
}}{{
 
#if: {{{Human|}}} |
 
#if: {{{Human|}}} |
{{!}}style="border-right:1px solid grey;" align="center"{{!}}{{{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


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