Template:DamageModifier: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (Fix category name)
No edit summary
Line 1: Line 1:
<includeonly>{{#switch: {{trim | {{{1|}}} }}
<includeonly>{{#switch: {{trim | {{{1|}}} }}
| melee = + [[Damage Roll#Modifiers|Strength Modifier]]
| melee = + [[Damage Roll#Modifiers|Strength modifier]]
| ranged = + [[Damage Roll#Modifiers|Dexterity Modifier]]
| ranged = + [[Damage Roll#Modifiers|Dexterity modifier]]
| finesse = + [[Damage Roll#Modifiers|Strength or Dexterity Modifier]]
| finesse = + [[Damage Roll#Modifiers|Strength or Dexterity modifier]]
| spell | spellcasting = + [[Spellcasting Modifier]]
| spell | spellcasting = + [[Spellcasting modifier]]
| {{#if: {{{1|}}} | + [[Ability Score Modifier|{{{1}}} Modifier]] | }}
| {{#if: {{{1|}}} | + [[ability score modifier|{{{1}}} modifier]] | }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
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:
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:
Line 20: Line 20:
Result: {{DamageModifier|finesse}}
Result: {{DamageModifier|finesse}}


The keyword spell can be used to link to [[Spellcasting Modifier]]:
The keyword spell can be used to link to [[spellcasting modifier|spellcasting modifier]]:


Usage: {{code|<nowiki>{{DamageModifier|spell}}</nowiki>}}
Usage: {{code|<nowiki>{{DamageModifier|spell}}</nowiki>}}
Line 26: Line 26:
Result: {{DamageModifier|spell}}
Result: {{DamageModifier|spell}}


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


Usage: {{code|<nowiki>{{DamageModifier|Wisdom}}</nowiki>}}
Usage: {{code|<nowiki>{{DamageModifier|Wisdom}}</nowiki>}}
8,856
edits

Navigation menu