Template talk:ToUSD
From Wikipedia, the free encyclopedia
Allo.
This one's pretty easy to use.
Just use the template: {{toUSD|(amount)|(currency code)}}
eg. {{toUSD|100|CAD}} would convert 100 canadian dollars into: $86 .
Pretty easy, eh? Well, I'm assuming I made a couple of mistakes, so obviously, feel free to modify as you see fit.
Just please remember something: This was intended to do currency conversions for tables. As such, the decimals were intentionally removed from calculated values. If you do choose to put them back in, then make sure it's only as an optional parameter. (That is, the default should still be to use no decimals)
Incidentally, if you want to update the current list of currency conversions, just go here. Bladestorm 22:34, 14 February 2007 (UTC)