Template:Qty



Purpose
Insert an inline colored quantity, by default green if quantity is evaluated as positive number, red if negative and teal if quantity can not be evaluated as a number (text).

Textual prefixes and suffixes can also be included as additional parameters, and will be colored according to quantity. This is useful for coloring percentages.

Colors for positive, negative and text can also be chosen via parameters.

Examples
Basic usage:, , → Basic usage: , , Arithmetic works:,, , → Arithmetic works: , , , Reversing colors:, → Reversing colors: , Prefixes and suffixes:, → Prefixes and suffixes: , Custom colors:, → Custom colors: , Non-numeric values:, , → Non-numeric values: , ,

See Template:Link qty for usages like this: x Fuel x Terror x Fuel x Terror