Jump to content

Module talk:Exchangerate/testcases

Page contents not supported in other languages.
Add topic
From Wikivoyage
  • EUR in USD: 1.0395 (2024-12-19)
  • EUR in AUD: 1.6631 (2024-12-19)
  • EUR in EGP: 32.479 (2023-02-23)
  • EGP in ILS: 0.117905 (2023-02-23)
  • EUR in foo: rate not found (rate not found)

Convert:

  • 10 EUR in USD: "10"
  • 5 EUR in USD: "5.2"
  • 10 USD in EUR: "9.6"
  • 5 USD in EUR: "4.8"
  • 4.77 USD in EUR: "4.589"
  • 123456.789 USD in EUR: "118765.5498"
  • 10 FOO in BAR: "rate not found"

Range input:

  • {{#invoke:Exchangerate |convertSingelOrRange |source=USD |target=EUR |amounts=30-40}} gives "2938"
  • {{#invoke:Exchangerate |convertSingelOrRange |source=EGP |target=EUR |amounts=33,000-45,000}} gives "10201390"
  • {{#invoke:Exchangerate |convertSingelOrRange |source=FOO |target=EUR |amounts=30-40}} gives ""

currencyWithConversions:

  • {{#invoke:Exchangerate |currencyWithConversions |currency=USD |amount=30-40}} gives "$30-40"
  • {{#invoke:Exchangerate |currencyWithConversions |currency=USD |amount=}} gives "$1"
  • {{#invoke:Exchangerate |currencyWithConversions |currency=USD}} gives "$1"
  • {{#invoke:Exchangerate |currencyWithConversions |currency=FOO |amount=30-40}} gives "FOO30-40"

Start a discussion about Module:Exchangerate/testcases

Start a discussion