Template:GenS/doc

Format a generic score value, either dependent on its value alone or with the addition of a flag that indicates how to interpret it.

Usage
The first parameter is mandatory and any chain of characters (or words) is accepted. The second parameter is optional and declares how to interpret the value. It may be empty, b (for benefit or bonus), and d/p (for deficit or penalty).

Use with only one parameter (the second parameter being empty or invalid) puts the value in the color depending on whether its value is positive or negative.

Examples
First parameter only:


 * gives
 * gives

Using the flag to hint interpretation:


 * gives
 * gives
 * gives
 * gives