Template:Formal pricing/doc

维基百科,自由的百科全书

模板介紹

使用方法

範例

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

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

  • {{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‎}}

给模板编辑者的说明

模板结构

实现方法

编辑注意