Difference between revisions of "Template:Modifier"

From Twilight Heroes Wiki
Jump to: navigation, search
m
m
Line 2: Line 2:
 
|elementaldamage={{{3}}} {{{2}}} damage[[Category:Bonus Elemental Damage]][[Category:Bonus Elemental Damage by Type|{{{2}}}]]
 
|elementaldamage={{{3}}} {{{2}}} damage[[Category:Bonus Elemental Damage]][[Category:Bonus Elemental Damage by Type|{{{2}}}]]
 
|meleedamage={{{2}}} melee damage[[Category:Bonus Melee Damage]]
 
|meleedamage={{{2}}} melee damage[[Category:Bonus Melee Damage]]
|elementalres={{{3}}} resist {{#ifeq:{{{2|}}}|all|fire, ice, electric, and acid[[Category:Resist Elemental Damage by Type|*]]|{{{2}}}[[Category:Resist Elemental Damage by Type|{{{2}}}]]}}[[Category:Resist Elemental Damage]]
+
|elementalres={{{3}}} resist {{#ifeq:{{{2|}}}|all|fire, ice, electric, and acid[[Category:Resist Elemental Damage by Type|*]]|{{{2}}}[[Category:Resist Elemental Damage by Type|{{{2}}}]]}} damage[[Category:Resist Elemental Damage]]
 
|#default=<i>Unknown Modifier</i>[[Category:Incomplete]]}}'''<br></includeonly><noinclude>
 
|#default=<i>Unknown Modifier</i>[[Category:Incomplete]]}}'''<br></includeonly><noinclude>
 
This template is to be used to specify and autocat modifiers. It is going to be build incrementally.
 
This template is to be used to specify and autocat modifiers. It is going to be build incrementally.

Revision as of 11:21, 29 January 2009

This template is to be used to specify and autocat modifiers. It is going to be build incrementally.

Currently you can use it to set:

modifier format example yields
Bonus elemental damage {{modifier|elementaldamage|electric|+1}} +1 electric damage
Bonus melee damage {{modifier|meleedamage|+3}} +3 melee damage
Resist elemental damage {{modifier|elementalres|fire|+10%}} +10% resist fire damage
{{modifier|elementalres|all|+4%}} +4% resist fire, ice, electric, and acid damage