Template:Difference

From Archaelund Wiki
Revision as of 13:08, 19 March 2022 by MikeB (talk | contribs) (Created page with "<onlyinclude><includeonly>{{#ifeq:{{{1|}}}>0|<span style="color:Lime;">{{{1}}}</span>|{{#ifeq:{{{1|}}}<0|<span style="color:Red;">{{{1}}}</span>|{{{1}}}}}}}</includeonly></onl...")
(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.


View/Edit documentation page