Ad placeholder

Template:DamageModifier: Difference between revisions

Jump to navigation Jump to search
no edit summary
(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>

Navigation menu