Predefinição:Chance

Fonte: Terraria Wiki
Saltar para a navegação Saltar para a pesquisa
Essa predefinição é pronta para i18n, o que significa que ela é simples de localizar para línguas diferentes. Veja I18n & l10n para Predefinições para entender melhor.
Veja Predefinição:Chance/l10n para a localização dessa predefinição.
Template-info.svg Documentação A documentação que segue é transcluída de Predefinição:Chance/doc. (editar | histórico)

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}} 1*1/100 (1%)
{{chance|1/2500}} 0.04*1/2500 (0.04%)
{{chance|1/100|pad=y}} 1.00*1/100 (1.00%)
{{chance|1/2500|4|pad=y}} 0.0400*1/2500 (0.0400%)
{{chance|1/7}} 14.29*1/7 (14.29%)
{{chance|1/7|4}} 14.2857*1/7 (14.2857%)
{{chance|84/1000}} 8.4*21/250 (8.4%)
{{chance|84/1000|reduce=n}} 8.4*84/1000 (8.4%)
{{chance|49/11250}} 0.44*49/11250 (0.44%)