Шаблон:DamageModifier: відмінності між версіями
bg3>Taylan Немає опису редагування |
587 (обговорення | внесок) (Створена сторінка: <includeonly>{{#switch: {{trim | {{{1|}}} }} | melee = + Strength Modifier | ranged = + Dexterity Modifier | finesse = + Strength or Dexterity Modifier | spell | spellcasting = + Spellcasting Modifier | {{#if: {{{1|}}} | + {{{1}}} Modifier | }} }}</includeonly><noinclude> The keywords melee, ranged, and finesse can be used to print the corresponding...) |
(Немає відмінностей)
|
Версія за 12:43, 25 серпня 2023
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: {{DamageModifier|melee}}
Result: + Strength Modifier
Usage: {{DamageModifier|ranged}}
Result: + Dexterity Modifier
Usage: {{DamageModifier|finesse}}
Result: + Strength or Dexterity Modifier
The keyword spell can be used to link to Spellcasting Modifier:
Usage: {{DamageModifier|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: {{DamageModifier|Wisdom}}
Result: + Wisdom Modifier
If the parameter is completely empty however, then nothing will be printed:
Usage: {{DamageModifier|}}
Result:
(That makes it easier to use in other templates, where a modifier might be optional.)