Template:Difference/doc

From Archaelund Wiki
< Template:Difference
Revision as of 13:33, 19 March 2022 by MikeB (talk | contribs) (Created page with "== Description == This template formats any input number as a bonus/malus. Positive numbers are highlighted in green and receive a preceding plus sign, while negative numbers...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This template formats any input number as a bonus/malus. Positive numbers are highlighted in green and receive a preceding plus sign, while negative numbers are highlighted in red. Zeros are ouputted in standard color without any sign.

Usage

{{Difference|<number>}}

Note that this template only supports numbers. Any non-numeric input will result in an error message.