Template:DamageModifier: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#switch:{{{1|}}} | melee = + Strength Modifier | ranged = + Dexterity Modifier | finesse = + Strength or Dexterity Modifier |}}</includeonly><noinclude> Usage: {{code|<nowiki>{{DamageModifier|melee}}</nowiki>}} Result: {{DamageModifier|melee}} Usage: {{code|<nowiki>{{DamageModifier|ranged}}</nowiki>}} Result: {{DamageModifier|ranged}} Usage: {{code|<nowiki>{{DamageModifier|fi...") |
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]] | ||
|}}</includeonly><noinclude> | | {{#if:{{{1|}}}|+ {{{1}}}|}} | ||
}}</includeonly><noinclude> | |||
Usage: {{code|<nowiki>{{DamageModifier|melee}}</nowiki>}} | Usage: {{code|<nowiki>{{DamageModifier|melee}}</nowiki>}} | ||
Line 15: | Line 16: | ||
Result: {{DamageModifier|finesse}} | Result: {{DamageModifier|finesse}} | ||
Anything that's not one of the specially recognized keywords will be used verbatim: | |||
Usage: {{code|<nowiki>{{DamageModifier|[[Wisdom Modifier]]}}</nowiki>}} | |||
Result: {{DamageModifier|[[Wisdom Modifier]]}} | |||
If the parameter is completely empty however, then nothing will be printed: | |||
Usage: {{code|<nowiki>{{DamageModifier|}}</nowiki>}} | |||
Result: {{DamageModifier|}} | |||
(That makes it easier to use in other templates, where a modifier might be optional.) | |||
</noinclude> | </noinclude> |
Revision as of 23:17, 1 February 2023
Usage: {{DamageModifier|melee}}
Result: + Strength Modifier
Usage: {{DamageModifier|ranged}}
Result: + Dexterity Modifier
Usage: {{DamageModifier|finesse}}
Result: + Strength or Dexterity Modifier
Anything that's not one of the specially recognized keywords will be used verbatim:
Usage: {{DamageModifier|[[Wisdom Modifier]]}}
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.)