Predefinição:Chance
Saltar para a navegação
Saltar para a pesquisa
Documentação A documentação que segue é transcluída de Predefinição:Chance/doc. (editar | histórico)
[purgar]
A standardized way of probability presentation.
Usage
Describe usage instructions here.
- Unnamed Parameter 1
The fraction of chance. e.g. 1/250
, 4/100
. It does not need to be an irreducible fraction, the template will reduce it if needed.
- Unnamed Parameter 2
Rounds off the percent number to a multiple of 1/10 raised to a power, with the exponent equal to this number. Default value is 2
.
- pad =
y
If set, when the actual number of digits is less than the given value specified by unnamed parameter 2, it will pad the percent number with 0 to that length.
It takes as input.
Example
Code | Result |
---|---|
{{chance|1/100}} |
|
{{chance|1/2500}} |
|
{{chance|1/100|pad=y}} |
|
{{chance|1/2500|4|pad=y}} |
|
{{chance|1/7}} |
|
{{chance|1/7|4}} |
|
{{chance|84/1000}} |
|
{{chance|84/1000|reduce=n}} |
|
{{chance|49/11250}} |