Template:Damage modifier

From bg3.wiki
Jump to navigation Jump to search

The keywords melee, ranged, and finesse can be used to print the corresponding modifier(s) with a link to the Damage Roll page that explains the details:

Usage: {{damage modifier|melee}}

Result: + Strength modifier

Usage: {{damage modifier|ranged}}

Result: + Dexterity modifier

Usage: {{damage modifier|finesse}}

Result: + Strength or Dexterity modifier

The keyword spell can be used to link to spellcasting modifier:

Usage: {{damage modifier|spell}}

Result: + spellcasting modifier

Anything that's not one of the specially recognized keywords will just have the word "Modifier" appended and link to ability score modifier:

Usage: {{damage modifier|Wisdom}}

Result: + Wisdom modifier

If the parameter is completely empty however, then nothing will be printed:

Usage: {{damage modifier|}}

Result:

(That makes it easier to use in other templates, where a modifier might be optional.)