Template:Damage text: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Partial revert: Don't add "Sources of healing" category because this template is frequently used for hitpoints)
m (Fix category name)
Line 28: Line 28:
Result: Blah blah deals {{DamageText|2d6|Physical|drs=t}} damage.
Result: Blah blah deals {{DamageText|2d6|Physical|drs=t}} damage.


[[Category:Damage Info Templates]]
[[Category:Damage info templates]]
</noinclude>
</noinclude>

Revision as of 16:09, 10 October 2023


This template inserts formatted damage text.

Basic usage

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 2d6Damage TypesPhysical 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 2d6Damage TypesPhysicalDRS damage.