Server reboot imminent. Site will be down for up to 15 minutes, starting 15:00 UTC. (Current time: 14:38 UTC)

Please make sure you are not in the middle of an edit at that time, or make sure to save your work offline.

Template:Damage text: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Try removing main only)
Tag: Reverted
m (Willowisp moved page Template:DamageText to Template:Damage text)
 
(5 intermediate revisions by 2 users not shown)
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 | {{DamageColor | {{{2}}} |hit points}} | {{DamageColor | {{{2}}} |{{{2}}}}}}}}}{{#if:{{{drs|}}}|{{DRS}}}}</span></includeonly><noinclude>
|[[Category:Sources of healing]]
 
|[[Category:Sources of {{{2}}} damage]]}}
This template inserts formatted damage text.
}}</includeonly><noinclude>This template inserts formatted damage text.


=== Basic usage ===
=== Basic usage ===
Line 19: Line 18:
Result: Blah blah restores {{DamageText|2d4+2|Healing}}.
Result: Blah blah restores {{DamageText|2d4+2|Healing}}.


=== [[Damage rider as source]] ===
=== Damage rider as source ===
See [[Template:DRS]] for an explanation on why anyone would want to do this.
See [[Template:DRS]] for an explanation on why anyone would want to do this.



Latest revision as of 19:16, 6 January 2024


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.