Template:Negative

From D&D Wiki
Revision as of 11:25, 2 March 2017 by Guy (talk | contribs) (a much more elegant solution)
Jump to navigation Jump to search

Usage

This template converts any negative number into a positive number of the opposite value, and leaves and positive number positive. Take the following examples.

{{Negative|-5}}

In the above example, the template will return "5".

{{Negative|10}}

In the above example, the template will return "10".

If no number is entered, the template defaults to "1".