Template:DropChance: Difference between revisions

From Ephinea PSO Wiki
mNo edit summary
m (updated!!)
Line 1: Line 1:
{{#ifexpr: {{{1|0}}} = 0 | - | {{#ifexpr: {{{1|0}}} < 10 | 1/{{#expr: {{{1|0}}} round 2}} | {{#ifexpr: {{{1|0}}} < 100 | 1/{{#expr: {{{1|0}}} round 1}} | 1/{{#expr: {{{1|0}}} round 0}}}}}}}}
{{#ifeq: {{DropCalc|{{{1|0}}}|{{{2|0}}}}} | - | - | {{#ifexpr: {{DropCalc|{{{1}}}|{{{2}}}}} < 10 | 1/{{#expr: {{DropCalc|{{{1}}}|{{{2}}}}} round 2}} | {{#ifexpr: {{DropCalc|{{{1}}}|{{{2}}}}} < 100 | 1/{{#expr: {{DropCalc|{{{1}}}|{{{2}}}}} round 1}} | 1/{{#expr: {{DropCalc|{{{1}}}|{{{2}}}}} round 0}}}}}}}}
<noinclude>==Usage and example==
<noinclude>==Usage and example==
<pre>{{DropChance|0}}</pre>
<pre>{{DropChance|0|0}}</pre>
{{DropChance|0}}
{{DropChance|0|0}}
<pre>{{DropChance|3.1415927}}</pre>
<pre>{{DropChance|80|56.25}}</pre>
{{DropChance|3.1415927}}
{{DropChance|80|56.25}}
<pre>{{DropChance|63.2120558828557}}</pre>
<pre>{{DropChance|15|56.25}}</pre>
{{DropChance|63.2120558828557}}
{{DropChance|15|56.25}}
<pre>{{DropChance|555.55555}}</pre>
<pre>{{DropChance|28|0.04272}}</pre>
{{DropChance|555.55555}}
{{DropChance|28|0.04272}}
</noinclude>
</noinclude>

Revision as of 06:52, 17 October 2022

-

Usage and example

{{DropChance|0|0}}

-

{{DropChance|80|56.25}}

1/0.02

{{DropChance|15|56.25}}

1/0.12

{{DropChance|28|0.04272}}

1/83.6