Template:Damage text: Difference between revisions
Jump to navigation
Jump to search
(Try removing main only) Tag: Reverted |
Tag: Undo |
||
Line 1: | Line 1: | ||
<includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} |'''{{{1}}}{{DamageIcon|{{{2}}}}}{{#ifeq: {{{2}}} | Healing | [[Hit Points|{{DamageColor | {{{2}}} |Hit Points}}]]''' | [[Damage Types|{{DamageColor | {{{2}}} |{{{2}}}}}]]'''}}}}{{#if:{{{drs|}}}|{{DRS}}}}</span>{{#if:{{{2|}}}|{{#ifeq:{{{2}}}|Healing | <includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} |'''{{{1}}}{{DamageIcon|{{{2}}}}}{{#ifeq: {{{2}}} | Healing | [[Hit Points|{{DamageColor | {{{2}}} |Hit Points}}]]''' | [[Damage Types|{{DamageColor | {{{2}}} |{{{2}}}}}]]'''}}}}{{#if:{{{drs|}}}|{{DRS}}}}</span>{{Main namespace only|{{#if:{{{2|}}}|{{#ifeq:{{{2}}}|Healing | ||
|[[Category:Sources of healing]] | |[[Category:Sources of healing]] | ||
|[[Category:Sources of {{{2}}} damage]]}} | |[[Category:Sources of {{{2}}} damage]]}} | ||
}}</includeonly><noinclude>This template inserts formatted damage text. | }} }}</includeonly><noinclude> | ||
This template inserts formatted damage text. | |||
=== Basic usage === | === Basic usage === |
Revision as of 22:06, 16 October 2023
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.