Template:Modifier: Difference between revisions

From Twilight Heroes Wiki
Jump to navigation Jump to search
mNo edit summary
Added 3 more
Line 3: Line 3:
|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}}}]]}} damage[[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]]
|tohit={{{2}}} to hit [[Category:Bonus To Hit]]
|hpregen={{{2}}} HP per turn [[Category:HP Regeneration]]
|absorb={{{2}}} damage absorption [[Category:Damage Absorption]]
|#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 19: Line 22:
|-
|-
| <nowiki>{{modifier|elementalres|all|+4%}}</nowiki> || <b>+4% resist fire, ice, electric, and acid damage</b>
| <nowiki>{{modifier|elementalres|all|+4%}}</nowiki> || <b>+4% resist fire, ice, electric, and acid damage</b>
|-
| Bonus to hit || <nowiki>{{modifier|tohit|+5%}}</nowiki> || <b>+5% to hit</b>
|-
| HP regeneration || <nowiki>{{modifier|hpregen|+3}}</nowiki> || <b>+3 HP per turn</b>
|-
| Damage absorption || <nowiki>{{modifier|absorb|+2}}</nowiki> || <b>+2 damage absorption</b>
|}
|}
</noinclude>
</noinclude>

Revision as of 19:47, 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
Bonus to hit {{modifier|tohit|+5%}} +5% to hit
HP regeneration {{modifier|hpregen|+3}} +3 HP per turn
Damage absorption {{modifier|absorb|+2}} +2 damage absorption