Template:Damage text: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Willowisp moved page Template:DamageText to Template:Damage text) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} | | <includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} |{{{1}}}{{DamageIcon|{{{2}}}}}{{#ifeq: {{{2}}} | Healing | {{DamageColor | {{{2}}} |hit points}} | {{DamageColor | {{{2}}} |{{{2}}}}}}}}}{{#if:{{{drs|}}}|{{DRS}}}}</span></includeonly><noinclude> | ||
This template inserts formatted damage text. | This template inserts formatted damage text. |
Latest revision as of 18:16, 6 January 2024
This template inserts formatted damage text.
Basic usage
Usage: Blah blah deals {{DamageText|2d6|Fire}} damage.
Result: Blah blah deals 2d6Fire damage.
Usage: Blah blah deals {{DamageText|2d6|Physical}} damage.
Result: Blah blah deals 2d6Physical damage.
Healing text
Usage: Blah blah heals {{DamageText|2d4+2|Healing}}.
Result: Blah blah restores 2d4+2hit points.
Damage rider as source
See Template:DRS for an explanation on why anyone would want to do this.
Usage: Blah blah deals {{DamageText|2d6|Physical}} damage.
Result: Blah blah deals 2d6PhysicalDRS damage.