Template:Damage inline

From bg3.wiki
Jump to navigation Jump to search
Template documentation

Display damage information in a simple, compact inline format. This template is a simple wrapper around Module:Damage display.

This template is limited to a simplified subset of the module's features. For the full features of the module, use the {{Damage display}} template.

Usage

{{Damage inline | Damage 1 value | Damage 1 type | Damage 2 value (optional) | Damage 2 type (optional) | ...}}

Damage value and type are provided as pairs of unnamed arguments. The damage value may be an expression or an arbitrary string. Refer to the module's documentation for details. The damage type may be any of the normal damage types one of the special values: HealingHealing, PhysicalPhysical, or WeaponWeapon.

Examples

Markup Renders as
{{Damage inline|1d6 + 2|Piercing}}
1d6 + 2PiercingPiercing
{{Damage inline|2d6 + 1 + str mod|Slashing}}
2d6 + 1 + Strength modifierSlashingSlashing
{{Damage inline|4d6|Fire|4d6|Radiant}}
4d6FireFire + 4d6RadiantRadiant
{{Damage inline|Cleric level|Healing}}
Cleric levelHealingHealing