Difference between revisions of "Template:Res"

From Twilight Heroes Wiki
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
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 resistances or weaknesses.|{{#ifeq:{{{3|}}}|+|{{{2}}}% weak to|{{#ifeq:{{{2|}}}|100|Immune to|{{{2}}}% resistant to}}}}{{#switch:{{{1}}}
 
|acid|electric|fire|ice|sonic|psychic=&nbsp;{{col|{{{1}}}|{{{1}}} damage}}.
 
|acid|electric|fire|ice|sonic|psychic=&nbsp;{{col|{{{1}}}|{{{1}}} damage}}.
|&nbsp;UNKNOWN ELEMENT:{{{1}}}.}}}}[[Category:Specified Resistance]]</includeonly><noinclude>
+
|all=&nbsp;all damage types.
 +
|physical=&nbsp;{{col|player|{{{1}}} damage}}.
 +
|&nbsp;UNKNOWN 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 resistances and weaknesses, both to elemental and to physical damage.
  
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.
+
The first parameter states the type of resistance/weakness, or "none" if the foe is positively verified to have none.
 +
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.
 
*<nowiki>{{res|none}}</nowiki> - {{res|none}}
 
*<nowiki>{{res|none}}</nowiki> - {{res|none}}
 
*<nowiki>{{res|fire|50}}</nowiki> - {{res|fire|50}}
 
*<nowiki>{{res|fire|50}}</nowiki> - {{res|fire|50}}
 
*<nowiki>{{res|ice|100}}</nowiki> - {{res|ice|100}}
 
*<nowiki>{{res|ice|100}}</nowiki> - {{res|ice|100}}
 +
*<nowiki>{{res|physical|10}}</nowiki> - {{res|physical|10}}
 
*<nowiki>{{res|electric|25|+}}</nowiki> - {{res|electric|25|+}}
 
*<nowiki>{{res|electric|25|+}}</nowiki> - {{res|electric|25|+}}
 +
*<nowiki>{{res|all|100}}</nowiki> - {{res|all|100}}
 
*<nowiki>{{res|mojo|50}}</nowiki> - {{res|mojo|50}}
 
*<nowiki>{{res|mojo|50}}</nowiki> - {{res|mojo|50}}
[[Category:Templates]]</noinclude>
+
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 01:46, 22 February 2010

Usage

This template can be used to state resistances and weaknesses, both to elemental and to physical damage.

The first parameter states the type of resistance/weakness, or "none" if the foe is positively verified to have none. 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 resistances or weaknesses.
  • {{res|fire|50}} - 50% resistant to fire damage.
  • {{res|ice|100}} - Immune to ice damage.
  • {{res|physical|10}} - 10% resistant to physical damage.
  • {{res|electric|25|+}} - 25% weak to electric damage.
  • {{res|all|100}} - Immune to all damage types.
  • {{res|mojo|50}} - 50% resistant to UNKNOWN ELEMENT:mojo.