Template:Res

From Twilight Heroes Wiki
Revision as of 18:49, 26 May 2009 by Muhandes (talk | contribs) (New page: <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 }}}}{...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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}} - {{#ifeq:none|none|Verified to have no elemental resistances or weaknesses.|{{{2}}}% resistant toUNKNOWN ELEMENT:none damage
  • {{res|fire|50}} - {{#ifeq:fire|none|Verified to have no elemental resistances or weaknesses.|50% resistant tofire damage
  • {{res|ice|100}} - {{#ifeq:ice|none|Verified to have no elemental resistances or weaknesses.|Immune toice damage
  • {{res|electric|25|+}} - {{#ifeq:electric|none|Verified to have no elemental resistances or weaknesses.|25% weak toelectric damage
  • {{res|mojo|50}} - {{#ifeq:mojo|none|Verified to have no elemental resistances or weaknesses.|50% resistant toUNKNOWN ELEMENT:mojo damage