Difference between revisions of "Prices on WikiOverland"
(Created page with "__TOC__ {{pricecontrol_country}} WikiOverland contains a lot of prices, which are often entered in different currencies. Sometimes it's the currency local to the country in q...") |
|||
Line 1: | Line 1: | ||
− | + | {{pricecontrol_country}}__TOC__ | |
− | {{pricecontrol_country}} | + | |
− | WikiOverland contains | + | WikiOverland contains prices entered in different currencies. Sometimes it's the currency local to the country in question, and sometimes it's the preferred currency of the person editing the article. <br/> |
− | WikiOverland handles this by | + | WikiOverland handles this by automatically 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). |
− | + | =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).<br /> | 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).<br /> | ||
− | An example is shown at the top right of this page, ''"Currency to display"'' | + | An example is shown at the top right of this page, '''"Currency to display"'''. <br /> |
+ | Look in the list now to see the 125 currencies WikiOverland can convert between. | ||
Once the user makes a selection, all prices on the page will be displayed in that currency. <br/> | Once the user makes a selection, all prices on the page will be displayed in that currency. <br/> | ||
For Example, I've entered the following as 100 United States dollars, and it will be converted into whatever currency you choose above: <price cost="100" currency="USD" /> | For Example, I've entered the following as 100 United States dollars, and it will be converted into whatever currency you choose above: <price cost="100" currency="USD" /> | ||
− | The selection is stored in a cookie, so all future pages will also display in the chosen | + | The selection is stored in a cookie, so all future pages will also display in the chosen currency and unit. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | =Entering a simple price= | ||
+ | For the purposes of this demonstration, use the currency selector above to see what happens to the prices:<br/> | ||
{| class="wikitable" | {| class="wikitable" | ||
! Description | ! Description | ||
Line 31: | Line 28: | ||
<price cost="100" currency="USD" /> | <price cost="100" currency="USD" /> | ||
|- | |- | ||
− | | Price with unit | + | | Price in sentence example |
+ | | <pre> | ||
+ | Camping usually costs <price cost="10" currency="USD" /> per person per night. | ||
+ | </pre> | ||
+ | | | ||
+ | Camping usually costs <price cost="10" currency="USD" /> per person per night. | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | =Entering a price with unit= | ||
+ | For the purposes of this demonstration, use the currency and unit selector below to see what happens to the prices:<br/> | ||
+ | {{pricecontrol_unit_country}} | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Description | ||
+ | ! width=40% | You type | ||
+ | ! width=40% | You get (automatically converted) | ||
+ | |- | ||
+ | | Price with liter unit | ||
+ | | <pre> | ||
+ | <price cost="5" currency="USD" unit="liter" /> | ||
+ | </pre> | ||
+ | | | ||
+ | <price cost="5" currency="USD" unit="liter" /> | ||
+ | |- | ||
+ | | Price with galUS unit | ||
+ | | <pre> | ||
+ | <price cost="5" currency="USD" unit="galUS" /> | ||
+ | </pre> | ||
+ | | | ||
+ | <price cost="5" currency="USD" unit="galUS" /> | ||
+ | |- | ||
+ | |- | ||
+ | | Price with galUK unit | ||
| <pre> | | <pre> | ||
− | <price cost=" | + | <price cost="5" currency="USD" unit="galUK" /> |
</pre> | </pre> | ||
| | | | ||
− | <price cost=" | + | <price cost="5" currency="USD" unit="galUK" /> |
|- | |- | ||
|} | |} | ||
Line 44: | Line 74: | ||
For the unit of measure, the values "liter", "gal" and "galUK" are accepted. | 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 [http://openexchangerates.org/ Open Exchange Rates] API, and all conversion data is updated every 6 hours. | Currency conversion is completed behind the scenes using the [http://openexchangerates.org/ Open Exchange Rates] API, and all conversion data is updated every 6 hours. |
Revision as of 10:28, 5 November 2012
Currency to display:
Contents
WikiOverland contains prices entered in different currencies. Sometimes it's the currency local to the country in question, and sometimes it's the preferred currency of the person editing the article.
WikiOverland handles this by automatically 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).
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".
Look in the list now to see the 125 currencies WikiOverland can convert between.
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 and unit.
Entering a simple price
For the purposes of this demonstration, use the currency selector above to see what happens to the prices:
Description | You type | You get (automatically converted) |
---|---|---|
Simple price | <price cost="100" currency="USD" /> |
$100.00 USD |
Price in sentence example | Camping usually costs <price cost="10" currency="USD" /> per person per night. |
Camping usually costs $10.00 USD per person per night. |
Entering a price with unit
For the purposes of this demonstration, use the currency and unit selector below to see what happens to the prices:
Template:Pricecontrol unit country
Description | You type | You get (automatically converted) |
---|---|---|
Price with liter unit | <price cost="5" currency="USD" unit="liter" /> |
$5.00 USD per Liter |
Price with galUS unit | <price cost="5" currency="USD" unit="galUS" /> |
$5.00 USD per Gallon (US) |
Price with galUK unit | <price cost="5" currency="USD" unit="galUK" /> |
$5.00 USD per Gallon (UK) |
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.