User:Xenwolf/SandBox: Difference between revisions

Xenwolf (talk | contribs)
..
 
Xenwolf (talk | contribs)
..
Line 1: Line 1:
Testing [[User:Xenwolf/Template:Cents]]:
Testing [[User:Xenwolf/Template:Cents]]:


{{User:Xenwolf/Template:Cents|3}}
<!-- {{#number_format:{{#expr: 1200*ln({{{1|{{{ratio|1}}}}}})/ln(2)}}|{{{2|{{{precision|0}}}}}}|.|}}<noinclude>
This template calculates the cent value of its first argument (defaults to 1). An optional second argument controls the precision, it defaults to 0 decimal places.
 
<big>It requires the MediaWiki [https://www.mediawiki.org/wiki/Extension:NumberFormat Extension:NumberFormat] being [[Special:Version|installed]].</big>
 
[[Category:Templates]]
</noinclude>
-->{{#expr: 1200*ln(3)/ln(2) round 5}}