Difference between revisions of "Template:Modifier"
From Twilight Heroes Wiki
(melee damage) |
(Adding elemental damage resistance) |
||
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]] | ||
|#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. | ||
Line 13: | Line 14: | ||
|- | |- | ||
| Bonus melee damage || <nowiki>{{modifier|meleedamage|+3}}</nowiki> || <b>+3 melee damage</b> | | Bonus melee damage || <nowiki>{{modifier|meleedamage|+3}}</nowiki> || <b>+3 melee damage</b> | ||
+ | |- | ||
+ | | rowspan=2 | Bonus melee damage | ||
+ | | <nowiki>{{modifier|elementalres|fire|+10%}}</nowiki> || <b>+10% resist fire damage</b> | ||
+ | |- | ||
+ | | <nowiki>{{modifier|elementalres|all|+4%}}</nowiki> || <b>+4% resist fire, ice, electric, and acid damage</b> | ||
|} | |} | ||
</noinclude> | </noinclude> |
Revision as of 11:19, 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 |
Bonus melee damage | {{modifier|elementalres|fire|+10%}} | +10% resist fire damage |
{{modifier|elementalres|all|+4%}} | +4% resist fire, ice, electric, and acid damage |