Template:Chancedisplay: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
mNo edit summary
m (Adding an optional identifier for rare tables that have varied rates.)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style = "display: none;">{{#expr:1/{{{1}}}}} </div>{{#tip-text:1 in {{significant figures|{{#expr:1/{{{1}}}}}|3}}|{{#expr:{{{1}}}*100}}%}}
<includeonly>{{#ifeq:{{{1}}}|0|{{#tip-text:1 in INF|<span class='text-only'>0%</span>}}|<span style='display: none;'>{{#expr:1/{{{1|999999}}}}}</span>{{#if:{{{raretip|}}}|{{#tip-text:~|From a Rare table and actual rates may vary.}}}}{{#tip-text:1 in {{significant_figures|{{#expr:1/{{{1}}}}}|3}}|<span class='text-only'>{{#expr:{{{1|999999}}}*100}}%</span>}}}}</includeonly><noinclude>
<pre>
Used for outputting correctly formatted percentages
Usage:
{{droptable|chance}}
</pre>
</noinclude>

Latest revision as of 01:41, 25 March 2024

Used for outputting correctly formatted percentages
Usage:
{{droptable|chance}}