Template:RiskRange
Appearance
This is the "RiskRange" template. It uses Module:RiskRange to convert two decimal probabilities into a human-friendly range with a common denominator.
Usage
{{RiskRange|lower_probability|higher_probability}}
The template automatically:
- Orders probabilities (lower risk first, higher risk second)
- Uses a common denominator for easy comparison
- Rounds to sensible values
Examples
| Template call | Output |
|---|---|
{{RiskRange|0.2|0.6}}
|
2 to 6 in 10 |
{{RiskRange|0.001|0.01}}
|
1 to 10 in 1,000 |
{{RiskRange|0.33|0.82}}
|
3 to 8 in 10 |
See also
- Template:One_In_X - For single probabilities
- Module:RiskRange - The underlying Lua module
- Module:RiskRange/testcases - Test cases