Template:AbilityMod

This is a simple math function to calculate modifiers on ability scores. Pass it a number in the first variable slot, and it will return the modifier (with a plus or minus sign in front). So, something like   gives ,    gives , and    gives .

See also the integer version, which is identical to this one but produces a number instead of a string.