User:Xenwolf/SandBox: Difference between revisions
Jump to navigation
Jump to search
.. |
.. |
||
Line 1: | Line 1: | ||
Testing [[User:Xenwolf/Template:Cents]]: | Testing [[User:Xenwolf/Template:Cents]]: | ||
{{ | <!-- {{#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}} |
Revision as of 15:13, 29 October 2018
Testing User:Xenwolf/Template:Cents:
1901.955