模板:Exchange rate
| hiêng-câi gì gì huôi-lŭk | |
|---|---|
| Google Finance: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD |
| Yahoo! Finance: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD |
| XE.com: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD |
| OANDA: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD |
| fxtop.com: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD |
Instruction
[Gāi nguòng-mā]It is very easy to use this template. You will know right away when you see this example:
{{Exchange rate|TWD}}
which produces
| hiêng-câi gì TWD gì huôi-lŭk | |
|---|---|
| Google Finance: | AUD CAD CHF CNY EUR GBP HKD JPY USD |
| Yahoo! Finance: | AUD CAD CHF CNY EUR GBP HKD JPY USD |
| XE.com: | AUD CAD CHF CNY EUR GBP HKD JPY USD |
| OANDA: | AUD CAD CHF CNY EUR GBP HKD JPY USD |
| fxtop.com: | AUD CAD CHF CNY EUR GBP HKD JPY USD |
Additional currencies
[Gāi nguòng-mā]You may also specify up to 3 additional foreign currencies.
{{Exchange rate|SGD|MYR|CNY|IDR}}
produces
| hiêng-câi gì SGD gì huôi-lŭk | |
|---|---|
| Google Finance: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD MYR CNY IDR |
| Yahoo! Finance: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD MYR CNY IDR |
| XE.com: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD MYR CNY IDR |
| OANDA: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD MYR CNY IDR |
| fxtop.com: | AUD CAD CHF CNY EUR GBP HKD JPY TWD USD MYR IDR |
Alternative layouts
[Gāi nguòng-mā]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
| Google Finance: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| Yahoo! Finance: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| XE.com: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| OANDA: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| fxtop.com: | AUD CAD CHF CNY GBP HKD JPY TWD 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
| Google Finance: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| Yahoo! Finance: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| XE.com: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| OANDA: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
| fxtop.com: | AUD CAD CHF CNY GBP HKD JPY TWD USD |
Sites managed
[Gāi nguòng-mā]- 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
- OANDA : currency converter, pocket guide, live exchange rates, with history since 1990
Caveat
[Gāi nguòng-mā]- "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
[Gāi nguòng-mā]Currently, the 8 default currencies listed here are Bloomberg's benchmark currencies [1].
See also
[Gāi nguòng-mā]| The above documentation is transcluded from 模板:Exchange rate/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |