Template:Lb: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifexpr: {{#expr: {{#expr: {{#expr: {{#expr: {{#if: {{{1|}}} | {{formatnum: {{{1}}}|R}} | 0 }} * 100}} + {{#if: {{{2|}}} | {{formatnum: {{{2}}}|R}} | 0 }} }} * 0.4}} round2 }} < 59 | | {{#ifexpr: {{#expr: {{#expr: {{#expr: {{#expr: {{#if: {{{1|}}} | {{formatnum: {{{1}}}|R}} | 0 }} * 100}} + {{#if: {{{2|}}} | {{formatnum: {{{2}}}|R}} | 0 }} }} * 0.4}} round2 }} < 59 |¤{{#expr: {{#expr: {{#expr: {{#expr: {{#if: {{{1|}}} | {{formatnum: {{{1}}}|R}} | 0 }} * 100}} + {{#if: {{{2|}}} | {{formatnum: {{{2}}}|R}} | 0 }} }} * 0.4}} round2 }} | {{#expr: {{#expr: {{#expr: {{#expr: {{#expr: {{#expr: {{#if: {{{1|}}} | {{formatnum: {{{1}}}|R}} | 0 }} * 100}} + {{#if: {{{2|}}} | {{formatnum: {{{2}}}|R}} | 0 }} }} * 0.4}} round2 }} / 60}} round0}}¤{{#expr: {{#expr: {{#expr: {{#expr: {{#expr: {{#expr: {{#expr: {{#expr: {{#if: {{{1|}}} | {{formatnum: {{{1}}}|R}} | 0 }} * 100}} + {{#if: {{{2|}}} | {{formatnum: {{{2}}}|R}} | 0 }} }} * 0.4}} round2 }} / 60}} * 100}} mod 100}} round2}} }}<noinclude> | ||
===Usage=== | ===Usage=== | ||
This template automatically converts United States dollars (USD) to the Talossan bent and louis, the base unit of currency for Talossa. To change the conversion rate, alter the number 0.4 above to the appropriate ratio. To use this template, just type <nowiki>{{Lb|dollars|cents}}</nowiki>. Do not include any symbols ($ or ¤). | This template automatically converts United States dollars (USD) to the Talossan bent and louis, the base unit of currency for Talossa. To change the conversion rate, alter the number 0.4 above to the appropriate ratio. To use this template, just type <nowiki>{{Lb|dollars|cents}}</nowiki>. Do not include any symbols ($ or ¤). |
Revision as of 18:17, 30 June 2012
¤0
Usage
This template automatically converts United States dollars (USD) to the Talossan bent and louis, the base unit of currency for Talossa. To change the conversion rate, alter the number 0.4 above to the appropriate ratio. To use this template, just type {{Lb|dollars|cents}}. Do not include any symbols ($ or ¤).
Raw bence code (input of dollars and cents to bence): 0