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), and d (for deficit).

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

Examples
First parameter only:


 * gives
 * gives

Using the flag to hint interpretation:


 * gives
 * gives
 * gives
 * gives