Prices on WikiOverland

From WikiOverland, the encyclopedia of Overland travel
Revision as of 10:17, 5 November 2012 by Dan (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Currency to display:

WikiOverland contains a lot of prices, which are often entered in different currencies. Sometimes it's the currency local to the country in question, sometimes it's the preferred currency of the person editing the article.
WikiOverland handles this by automattically converting prices into any currency the reader chooses, and in the case of gas and diesel prices, it also converts the unit of measure (liters or gallons).

Currency Conversion

Selecting a currency to display

Any page on WikiOverland that contains a price, will contain the currency selector where the user can select their preferred currency (and unit when applicable).
An example is shown at the top right of this page, "Currency to display"

Once the user makes a selection, all prices on the page will be displayed in that currency.
For Example, I've entered the following as 100 United States dollars, and it will be converted into whatever currency you choose above: $100.00 USD

The selection is stored in a cookie, so all future pages will also display in the chosen currency.

Entering prices on WikiOverland

For the purposes of this demonstration, use the currency and unit selector below to see what happens to the prices:
Currency and unit to display:

Description You type You get (automatically converted)
Simple price
<price cost="100" currency="USD" />

$100.00 USD

Price with unit (usually for gas and diesel)
<price cost="100" currency="USD" unit="liter" />

$100.00 USD per Liter

All currencies of the world are accepted. A full list of currency codes can be seen at List of circulating currencies

For the unit of measure, the values "liter", "gal" and "galUK" are accepted.

Currency conversion information

Currency conversion is completed behind the scenes using the Open Exchange Rates API, and all conversion data is updated every 6 hours.