模板:Exchangerate
To see and edit exchange rates go to Template:Exchangerate/list and click on the link for the currency combination
Exchange rate templates used in currency exchange info boxes[編輯]
To show exchange rate using {{Exchangerate|1|USD|EUR}} will give you 0.9, meaning $1 is this amount in €.
To display when exchange rate was last updated use {{Exchangerate/date|USD|EUR}} . This will give you - 2019年12月29日.
To display exchange rate box use {{exchangerate/box| currencyCode=EUR| USD=1}}
To display currency name use {{Exchangerate/name|USD}} . This will give you - US dollar.
To display currency symbol use {{Exchangerate/symbol|USD}} . This will give you - $.
Individual currency display[編輯]
Some currencies have templates to display specific prices
To display a monetary value and see in other currencies on mouseover
- {{USD|2}} will give you : $2
- {{EUR|2}} will give you : €2
- {{ZAR|100}} will give you : R100
To display symbol of currencies when no exchange rate available
- {{BDT|2}} will give you : ৳2
上述自Template:Exchangerate/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |