Template:DamageModifier: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
| 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]]
| {{#if:{{{1|}}}|+ [[{{{1}}} Modifier]]|}}
| {{#if:{{{1|}}}|+ [[Damage Roll#Modifiers|{{{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 19: Line 19:
Result: {{DamageModifier|finesse}}
Result: {{DamageModifier|finesse}}


Anything that's not one of the specially recognized keywords will create a link of the form {{code|<nowiki>[[<___> Modifier]]</nowiki>}}:
Anything that's not one of the specially recognized keywords will just have the word "Modifier" appended:


Usage: {{code|<nowiki>{{DamageModifier|Wisdom}}</nowiki>}}
Usage: {{code|<nowiki>{{DamageModifier|Wisdom}}</nowiki>}}