Bước tới nội dung

Bản mẫu:Tỷ giá

Từ Wikivoyage
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

This template displays currency exchange rates for one or more currencies as shown in the example below. It should only be used on country articles, and should be placed in the "Buy" section of those articles.

Template parameters

[sửa]

To use this template, invoke it with the following arguments:

currency (Required)
The name of the currency being converted. Example: "Belizean dollars".
currencyCode or currencyCodeAfter (Required)
The currency symbol for the currency being converted. Example: "BZ$".
date (Required)
The date on which the currency conversion values were obtained. Example: "January 2017".
source (Required)
The source where the currency conversion information was obtained from. Example: "[http://www.xe.com/currency/bzd-belizean-dollar XE.com]".
USD (Optional)
The conversion rate for one US dollar into the currency being converted. Example: "2".
EUR (Optional)
The conversion rate for one Euro into the currency being converted. Example: "2.5".
GBP (Optional)
The conversion rate for one British pound into the currency being converted. Example: "2.1".
AUD (Optional)
The conversion rate for one Australian dollar into the currency being converted. Example: "1.6".
CAD (Optional)
The conversion rate for one Canadian dollar into the currency being converted. Example: "1.5".
NZD (Optional)
The conversion rate for one New Zealand dollar into the currency being converted. Example: "1.5".
JPY (Optional)
The conversion rate for one hundred Japanese yen into the currency being converted. Example: "1.7".
CHF (Optional)
The conversion rate for one Swiss franc into the currency being converted. Example: "1.7".
CNY (Optional)
The conversion rate for one Chinese yuan (reminbi) into the currency being converted. Example: "0.15".
INR (Optional)
The conversion rate for one Indian rupee into the currency being converted. Example: "0.15".
HKD (Optional)
The conversion rate for one Hong Kong dollar into the currency being converted. Example: "0.15".
SGD (Optional)
The conversion rate for one Singapore dollar into the currency being converted. Example: "0.15".
MYR (Optional)
The conversion rate for one Malaysian ringgit into the currency being converted. Example: "0.15".
THB (Optional)
The conversion rate for ten Thai baht into the currency being converted. Example: "1.50".
ZAR (Optional)
The conversion rate for one South African rand into the currency being converted. Example: "0.15".

Examples

[sửa]
{{exchange rates
| currency=đô la Belize
| currencyCode=BZ$
| date=Tháng 7 năm 2019
| VND=2.17
| USD=2 (fixed rate)
| EUR=2.5
| GBP=2.1
| AUD=1.6
| CAD=1.5
| JPY=1.74
| ZAR=0.15
| source=[http://www.xe.com/currency/bzd-belizean-dollar XE.com]
}}
{{exchange rates/sandbox
| currency=Croatian kuna
| currencyCode=
| currencyCodeAfter= kn
| date=January 2018
| USD=6.2
| EUR=7.5
| GBP=8.4
| source=[http://www.xe.com/currency/hrk-croatian-kuna XE.com]
}}

...which produces: rate file doesn't exist Bản mẫu:Exchange rates/sandbox

Notes for template use

[sửa]
  • It is easy to update this template: click on the XE.Com link in the template to go to a web page with current rates for the currency.
    • Wikivoyage does not endorse XE.com—you can use another source for rates if you prefer, just be sure to identify your source in the template.
  • When updating the rates shown in the template, be sure to change the "as of" date too.
  • To avoid clutter, only major currencies should normally be used: US dollars, euros and British pounds.
  • In some cases, it may be appropriate to add other currencies where a country may receive a lot of visitors from nearby countries, e.g.,
    • Canadian tourists in Mexico and the Caribbean,
    • Chinese in East Asia,
    • Australians in Southeast Asia and New Zealand,
    • Indians in South Asia, and
    • South Africans in southern Africa.

See also

[sửa]
  • {{exchange rate euros}} – Shared template for Eurozone currency conversions.
  • {{exchange rate CFA}} – Shared template for West and Central African CFA franc currency conversions.
  • {{exchange rate EC}} – Shared template for East Caribbean dollar currency conversions.
  • {{exchange rate US}} – Shared template for US dollar currency conversions.
  • {{Exchange rate GBP}} – Shared template for British pound currency conversions.
  • {{Exchange rate NZD}} – Shared template for New Zealand dollar currency conversions (for various Pacific islands)