Template:Res: Difference between revisions

From Twilight Heroes Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1|}}}|none|Verified to have no elemental resistances or weaknesses.|{{#ifeq:{{{3|}}}|+|{{{2}}}% weak to|{{#ifeq:{{{2|}}}|100|Immune to|{{{2}}}% resistant to}}}}{{#switch:{{{1}}}
<includeonly>{{#ifeq:{{{1|}}}|none|Verified to have no elemental resistances or weaknesses.|{{#ifeq:{{{3|}}}|+|{{{2}}}% weak to|{{#ifeq:{{{2|}}}|100|Immune to|{{{2}}}% resistant to}}}}{{#switch:{{{1}}}
|acid|electric|fire|ice|sonic|psychic= {{col|{{{1}}}|{{{1}}} damage}}.
|acid|electric|fire|ice|sonic|psychic=&nbsp{{col|{{{1}}}|{{{1}}} damage}}.
| UNKNOWN ELEMENT:{{{1}}}.}}}}</includeonly><noinclude>
|&nbspUNKNOWN ELEMENT:{{{1}}}.}}}}</includeonly><noinclude>
==Usage==
==Usage==
This template can be used to state elemental resistances and weaknesses. Physical damage is not handled at this point.
This template can be used to state elemental resistances and weaknesses. Physical damage is not handled at this point.

Revision as of 18:54, 26 May 2009

Usage

This template can be used to state elemental resistances and weaknesses. Physical damage is not handled at this point.

By default, the second variable states the percentage of resistance (100 for total immunity). To state a weakness, a 3rd variable with a value of "+" must be added.

  • {{res|none}} - Verified to have no elemental resistances or weaknesses.
  • {{res|fire|50}} - 50% resistant to&nbspfire damage.
  • {{res|ice|100}} - Immune to&nbspice damage.
  • {{res|electric|25|+}} - 25% weak to&nbspelectric damage.
  • {{res|mojo|50}} - 50% resistant to&nbspUNKNOWN ELEMENT:mojo.