Template:Damage text: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
m (update to support healing)
Line 1: Line 1:
<includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} |'''{{{1}}}{{#ifeq: {{{2}}} | Physical | &nbsp; | {{DamageIcon|{{{2}}}}} }}[[Damage Types|{{DamageColor | {{{2}}} |{{{2}}}}}]]'''}}</span></includeonly><noinclude>
<includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} |'''{{{1}}}{{#ifeq: {{{2}}} | Physical | &nbsp; | {{DamageIcon|{{{2}}}}} }}{{#ifeq: {{{2}}} | Healing | {{DamageColor | {{{2}}} |Hit Points}} | [[Damage Types|{{DamageColor | {{{2}}} |{{{2}}}}}]]'''}}}}</span></includeonly><noinclude>
Usage: {{code|Blah blah deals <nowiki>{{DamageText|2d6|Fire}}</nowiki> damage.}}
Usage: {{code|Blah blah deals <nowiki>{{DamageText|2d6|Fire}}</nowiki> damage.}}


Result: Blah blah deals {{DamageText|2d6|Fire}} damage.
Result: Blah blah deals {{DamageText|2d6|Fire}} damage.
 
----
Usage: {{code|Blah blah deals <nowiki>{{DamageText|2d6|Physical}}</nowiki> damage.}}
Usage: {{code|Blah blah deals <nowiki>{{DamageText|2d6|Physical}}</nowiki> damage.}}


Result: Blah blah deals {{DamageText|2d6|Physical}} damage.
Result: Blah blah deals {{DamageText|2d6|Physical}} damage.
----
Also supports Healing text.
Usage: {{code|Blah blah heals <nowiki>{{DamageText|2d4+2|Healing}}</nowiki>.}}


Result: Blah blah restores {{DamageText|2d4+2|Healing}}.
[[Category:Damage Info Templates]]
[[Category:Damage Info Templates]]
</noinclude>
</noinclude>

Revision as of 23:42, 6 March 2023

Usage: Blah blah deals {{DamageText|2d6|Fire}} damage.

Result: Blah blah deals 2d6Damage TypesFire damage.


Usage: Blah blah deals {{DamageText|2d6|Physical}} damage.

Result: Blah blah deals 2d6 Physical damage.


Also supports Healing text.

Usage: Blah blah heals {{DamageText|2d4+2|Healing}}.

Result: Blah blah restores 2d4+2Hit Points.