0

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

模板介绍

使用方法

范例

美元之外的货币可以用对应的ISO 4217货币代码 查找到。

  • 对于Bermudian dollar,{{Formal pricing|1000|BMD}} 输出:BD$1,000
  • 对于Bangladeshi taka,{{Formal pricing|1000|BDT}} 输出:1,000
  • 对于亚美尼亚德拉姆,{{Formal pricing|1000|AMD}} 输出:{Template:Formal pricing|1000|AMD}}

对于一些更知名的货币,除了全名之外,也可以使用常用缩写。注意此参数亦是大小写不敏感的。

  • {{Formal pricing|1000|US}} 输出:US$1,000
  • {{Formal pricing|1000|United States}} 输出:US$1,000
  • {{Formal pricing|1000|JPY}} 输出:¥1,000

如果想的话,使用参数名也可以:

  • {{Formal pricing|amount=1000|type=US}} gives:US$1,000
  • {{Formal pricing|1000|type=us}} gives:US$1,000
  • {{Formal pricing|Amount=1000|Teuro}} gives:1,000

第一使用某种货币时,需要展示汇率及货币全名。所以如果参数 first 被定义时,就会展示传入模板的相应内容。

  • {{Formal pricing|Amount=1000|quid|first=yes}} gives:1,000 Euros

注意事项

参见

{{Formal pricing/Type}} {{Formal pricing/LongType‎}}

给模板编辑者的说明

模板结构

实现方法

编辑注意

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.