Misplaced Pages

Template:Exchange rate/doc: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Exchange rate Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 11:47, 1 April 2016 editMascarponette (talk | contribs)138 edits not relevant← Previous edit Revision as of 20:26, 16 April 2016 edit undoEdMercer (talk | contribs)87 edits Sites managed: adding site to listNext edit →
Line 56: Line 56:
* ] : currency converter with pocket guide * ] : currency converter with pocket guide
* ] : currency converter and 10 years history charts * ] : currency converter and 10 years history charts
* ] : currency converter, live exchange rates with pocket guide and rate alerts
* ] : currency converter, pocket guide, live exchange rates, with history since 1990 * ] : currency converter, pocket guide, live exchange rates, with history since 1990
* fxtop : exchange rates from central banks, daily historical rates and charts from 1953, currency converter (10 currencies at the same time), cross exchange rates, world map and pocket guide * fxtop : exchange rates from central banks, daily historical rates and charts from 1953, currency converter (10 currencies at the same time), cross exchange rates, world map and pocket guide

Revision as of 20:26, 16 April 2016

This is a documentation subpage for Template:Exchange rate.
It may contain usage information, categories and other content that is not part of the original template page.

Instruction

It is very easy to use this template. You will know right away when you see this example:

{{Exchange rate|TWD}}

which produces

Current TWD exchange rates
From Google Finance: AUD CAD CHF CNY EUR GBP HKD JPY USD
From Yahoo! Finance: AUD CAD CHF CNY EUR GBP HKD JPY USD
From XE.com: AUD CAD CHF CNY EUR GBP HKD JPY USD
From OANDA: AUD CAD CHF CNY EUR GBP HKD JPY USD

Additional currencies

You may also specify up to 3 additional foreign currencies.

{{Exchange rate|SGD|MYR|CNY|IDR}}

produces

Current SGD exchange rates
From Google Finance: AUD CAD CHF CNY EUR GBP HKD JPY USD MYR CNY IDR
From Yahoo! Finance: AUD CAD CHF CNY EUR GBP HKD JPY USD MYR CNY IDR
From XE.com: AUD CAD CHF CNY EUR GBP HKD JPY USD MYR CNY IDR
From OANDA: AUD CAD CHF CNY EUR GBP HKD JPY USD MYR CNY IDR

Alternative layouts

If you don't like navbox style you can specify style = h3 or style = h2 which produces something more like standard text. Using header = h3 or header = h2 also have the same effect.

{{Exchange rate|EUR|style=h3}}

produces

Current EUR exchange rates

From Google Finance: AUD CAD CHF CNY GBP HKD JPY USD
From Yahoo! Finance: AUD CAD CHF CNY GBP HKD JPY USD
From XE.com: AUD CAD CHF CNY GBP HKD JPY USD
From OANDA: AUD CAD CHF CNY GBP HKD JPY USD

The |style= parameter overrides the |header= parameter, but not vice versa. Thus, if the template is called with header = h3 but style = navbox, it will display as a navbox. If it is called with header = h3 and no specification for |style=, on the other hand, |header= will be used and it will show up as text instead of as a nabvox.


You may specify header = h3 or header = h2 so that the mock header looks like the level 3 header or level 2 header, respectively. By default, the template displays like a navbox. This template currently only supports an overridden mock headers 2 and 3, not level 4, 5, or 6.

{{Exchange rate|EUR|header = h3}}

produces

Current EUR exchange rates

From Google Finance: AUD CAD CHF CNY GBP HKD JPY USD
From Yahoo! Finance: AUD CAD CHF CNY GBP HKD JPY USD
From XE.com: AUD CAD CHF CNY GBP HKD JPY USD
From OANDA: AUD CAD CHF CNY GBP HKD JPY USD

Sites managed

  • Google finance : live exchange rates with history since mid 2003
  • Yahoo! Finance : currency converter with pocket guide
  • XE : currency converter and 10 years history charts
  • TransferWise : currency converter, live exchange rates with pocket guide and rate alerts
  • OANDA : currency converter, pocket guide, live exchange rates, with history since 1990
  • fxtop : exchange rates from central banks, daily historical rates and charts from 1953, currency converter (10 currencies at the same time), cross exchange rates, world map and pocket guide

Caveat

  • "Current XYZ exchange rates" looks like a section title, but it's not. This was done to "remove" the edit links on the right so that people won't accidentally change the template. However, the side-effect of that is the font size won't change in IE (at least IE 6) if I enlarge or shrink my font size.

Choice of currencies

Currently, the 8 default currencies listed here are Bloomberg's benchmark currencies .

See also