The purpose of this template is to automatically convert and format South African rands applying adjustment for inflation where appropriate. Rates of exchange and inflation must be manually copied by editors in the supporting templates therefore this template's output does not necessarily reflect the present exchange rates or price indices but, rather, reflects the rates and indices at the time of the last update.
The default target currency (USD at present) may change in the future.
The possibility of converting to other target currencies in the future is left open, hence the general name of this template.
{{ZARConvert|value|currency_units|year=|to=|r=|force=|lk=|exact=|showdate=|ref=|mode=|convert=}}
A description of the template's parameters are listed below.
Field name | Usage | Example | Description |
value |
mandatory | 10000.01 | The value, in the country_code currency, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234). |
currency_units |
optional | m | Used to represent smaller or larger numbers. Available options are as follows.
The Indian units can be applied to any currency. |
lk |
optional | lk=on | This parameter gives you the option of internally linking currency names (paise, which is generalized here to mean cents in the source currency) and/or number names (billion, trillion, lakh, crore). By default, the parameter is set to "off" (i.e. it is set not to link). Available options are as follows.
|
year |
optional | year=2002 | This parameter allows entering values from previous years. The year will be displayed and historic values will be inflated to the latest year available in {{Inflation}} if index is also provided then converted by {{ToUSD}}. If no index name is present, the conversion will be attempted for the year indicated (but see force ). If year is not provided, just a conversion will be performed at the most current rate available.
|
to |
optional | to=EUR | This parameter allows for conversion to various different currencies. Currently, the USD (default) and the euro are supported. |
r |
optional | r=3 | Sets the digits to which the results must be rounded. A negative value indicates rounding to an upper significant digit, and a positive value indicates a fractional digit including trailing zeros. Defaults to 2 .
|
force |
optional | force=yes | This parameter allows to force a conversion at the most current rate available when data is lacking for the provided year when its value is yes .
|
exact |
optional | exact=source | This provides some control over formatting. source requests to display the input value normally (in American fashion) after applying the units. on does this for both the input and result values. Otherwise all values will be displayed as per {{Format price}}.
|
showdate |
optional | showdate=no | This allows to disable displaying the original year. |
ref |
optional | ref=<ref>some wikitext ref</ref> | This allows displaying one or more references next to the original value. Each one must consist of a ref wikitext element. |
mode |
optional | mode=historical | This parameter controls the output mode. Setting it to blank or omitting it results in the default mode. Setting it to historical allows conversion using historical exchange rates.
|
convert |
optional | convert=no | This parameter controls the currency conversion. Setting it to blank or omitting it results in the default mode. Setting it to no disables it.
|
ZARConvert syntax | Results |
---|---|
{{ZARConvert|1|ct|lk=on}} |
R0.01 (US$0) |
{{ZARConvert|10|ct}} |
R0.1 (US$0.01) |
{{ZARConvert|1|ct|exact=source}} |
R0.01 (US$0) |
{{ZARConvert|10|ct|exact=source}} |
R0.1 (US$0.01) |
{{ZARConvert|1|ct|exact=on}} |
R0.01 (US$0) |
{{ZARConvert|10|ct|exact=on}} |
R0.1 (US$0.01) |
{{ZARConvert|1|ct|year=2002}} |
R0.01 (2002) (equivalent to R0.03 or US$0 in 2018)[1] |
{{ZARConvert|10|ct|year=2002}} |
R0.1 (2002) (equivalent to R0.26 or US$0.02 in 2018)[1] |
{{ZARConvert|1|ct|year=2002|mode=historical}} |
R0.01 (2002) (US$0) |
{{ZARConvert|10|ct|year=2002|mode=historical}} |
R0.1 (2002) (US$0.01) |
{{ZARConvert|1|ct|year=2002|lk=on}} |
R0.01 (2002) (equivalent to R0.03 or US$0 in 2018)[1] |
{{ZARConvert|10|ct|year=2002|lk=on}} |
R0.1 (2002) (equivalent to R0.26 or US$0.02 in 2018)[1] |
{{ZARConvert|1|ct|year=2002|exact=on}} |
R0.01 (2002) (equivalent to R0.03 or US$0 in 2018)[1] |
{{ZARConvert|10|ct|year=2002|exact=on}} |
R0.1 (2002) (equivalent to R0.26 or US$0.02 in 2018)[1] |
{{ZARConvert|1|ct|lk=on|convert=no}} |
R0.01 |
{{ZARConvert|10|ct|convert=no}} |
R0.1 |
{{ZARConvert|1|ct|exact=source|convert=no}} |
R0.01 |
{{ZARConvert|10|ct|exact=source|convert=no}} |
R0.1 |
{{ZARConvert|1|ct|exact=on|convert=no}} |
R0.01 |
{{ZARConvert|10|ct|exact=on|convert=no}} |
R0.1 |
{{ZARConvert|1|ct|year=2002|convert=no}} |
R0.01 (2002) (equivalent to R0.03 in 2018)[1] |
{{ZARConvert|10|ct|year=2002|convert=no}} |
R0.1 (2002) (equivalent to R0.26 in 2018)[1] |
{{ZARConvert|1|ct|year=2002|mode=historical|convert=no}} |
R0.01 (2002) |
{{ZARConvert|10|ct|year=2002|mode=historical|convert=no}} |
R0.1 (2002) |
{{ZARConvert|1|ct|year=2002|lk=on|convert=no}} |
R0.01 (2002) (equivalent to R0.03 in 2018)[1] |
{{ZARConvert|10|ct|year=2002|lk=on|convert=no}} |
R0.1 (2002) (equivalent to R0.26 in 2018)[1] |
{{ZARConvert|1|ct|year=2002|exact=on|convert=no}} |
R0.01 (2002) (equivalent to R0.03 in 2018)[1] |
{{ZARConvert|10|ct|year=2002|exact=on|convert=no}} |
R0.1 (2002) (equivalent to R0.26 in 2018)[1] |
{{ZARConvert|1}} |
R1 (US$0.07) |
{{ZARConvert|1|k}} |
R1,000 (US$67.66) |
{{ZARConvert|1|m}} |
R1 million (US$67,659) |
{{ZARConvert|1|b|lk=on}} |
R1 billion (US$67.66 million) |
{{ZARConvert|1|t|lk=on}} |
R1 trillion (US$67.66 billion) |
{{ZARConvert|1|exact=source}} |
R1 (US$0.07) |
{{ZARConvert|1|k|exact=source}} |
R1,000 (US$67.66) |
{{ZARConvert|1|m|exact=source}} |
R1,000,000 (US$67,659) |
{{ZARConvert|1|b|exact=source}} |
R1,000,000,000 (US$67.66 million) |
{{ZARConvert|1|t|exact=source}} |
R1,000,000,000,000 (US$67.66 billion) |
{{ZARConvert|1|exact=on}} |
R1 (US$0.07) |
{{ZARConvert|1|k|exact=on}} |
R1,000 (US$67.66) |
{{ZARConvert|1|m|exact=on}} |
R1,000,000 (US$67,659) |
{{ZARConvert|1|b|exact=on}} |
R1,000,000,000 (US$67,658,998.65) |
{{ZARConvert|1|t|exact=on}} |
R1,000,000,000,000 (US$67,658,998,646.82) |
{{ZARConvert|1|year=2002}} |
R1 (2002) (equivalent to R2.64 or US$0.2 in 2018)[1] |
{{ZARConvert|1|k|year=2002}} |
R1,000 (2002) (equivalent to R2,642.68 or US$199.69 in 2018)[1] |
{{ZARConvert|1|m|year=2002}} |
R1 million (2002) (equivalent to R2.64 million or US$199,690.02 in 2018)[1] |
{{ZARConvert|1|b|year=2002}} |
R1 billion (2002) (equivalent to R2.64 billion or US$199.69 million in 2018)[1] |
{{ZARConvert|1|t|year=2002}} |
R1 trillion (2002) (equivalent to R2.64 trillion or US$199.69 billion in 2018)[1] |
{{ZARConvert|1|year=2002|lk=on}} |
R1 (2002) (equivalent to R2.64 or US$0.2 in 2018)[1] |
{{ZARConvert|1|k|year=2002|lk=on}} |
R1,000 (2002) (equivalent to R2,642.68 or US$199.69 in 2018)[1] |
{{ZARConvert|1|m|year=2002|lk=on}} |
R1 million (2002) (equivalent to R2.64 million or US$199,690.02 in 2018)[1] |
{{ZARConvert|1|b|year=2002|lk=on}} |
R1 billion (2002) (equivalent to R2.64 billion or US$199.69 million in 2018)[1] |
{{ZARConvert|1|t|year=2002|lk=on}} |
R1 trillion (2002) (equivalent to R2.64 trillion or US$199.69 billion in 2018)[1] |
{{ZARConvert|3.60}} |
R3.6 (US$0.24) |
{{ZARConvert|360}} |
R360 (US$24.36) |
{{ZARConvert|3600}} |
R3,600 (US$243.57) |
{{ZARConvert|360000}} |
R360,000 (US$24,357.24) |
{{ZARConvert|3600000}} |
R3.6 million (US$243,572.4) |
{{ZARConvert|3.6|m}} |
R3.6 million (US$243,572.4) |
{{ZARConvert|3650000}} |
R3.65 million (US$246,955.35) |
{{ZARConvert|3.65|m}} |
R3.65 million (US$246,955.35) |
{{ZARConvert|3650000|year=1960}} |
R3.65 million (1960) (equivalent to R530.82 million or US$40.11 million in 2018)[1] |
{{ZARConvert|3.65|m|year=1960}} |
R3.65 million (1960) (equivalent to R530.82 million or US$40.11 million in 2018)[1] |
{{ZARConvert|3650000|year=1960|exact=source}} |
R3,650,000 (1960) (equivalent to R530.82 million or US$40.11 million in 2018)[1] |
{{ZARConvert|3.65|m|year=1960|exact=source}} |
R3,650,000 (1960) (equivalent to R530.82 million or US$40.11 million in 2018)[1] |
{{ZARConvert|3650000|year=1960|force=yes}} |
R3.65 million (1960) (equivalent to R530.82 million or US$40.11 million in 2018)[1] |
{{ZARConvert|3.65|m|year=1960|force=yes}} |
R3.65 million (1960) (equivalent to R530.82 million or US$40.11 million in 2018)[1] |
{{ZARConvert|3650000|year=1960|force=yes|exact=on}} |
R3,650,000 (1960) (equivalent to R530,815,406.64 or US$40,110,277.9 in 2018)[1] |
{{ZARConvert|3.65|m|year=1960|force=yes|exact=on}} |
R3,650,000 (1960) (equivalent to R530,815,406.64 or US$40,110,277.9 in 2018)[1] |
{{ZARConvert|3650000|year=2002}} |
R3.65 million (2002) (equivalent to R9.65 million or US$728,868.59 in 2018)[1] |
{{ZARConvert|3.65|m|year=2002}} |
R3.65 million (2002) (equivalent to R9.65 million or US$728,868.59 in 2018)[1] |
{{ZARConvert|3650000|year=2002|exact=on}} |
R3,650,000 (2002) (equivalent to R9,645,774.01 or US$728,868.59 in 2018)[1] |
{{ZARConvert|3.65|m|year=2002|exact=on}} |
R3,650,000 (2002) (equivalent to R9,645,774.01 or US$728,868.59 in 2018)[1] |
{{ZARConvert|3650000|year=2002|exact=source}} |
R3,650,000 (2002) (equivalent to R9.65 million or US$728,868.59 in 2018)[1] |
{{ZARConvert|3.65|m|year=2002|exact=source}} |
R3,650,000 (2002) (equivalent to R9.65 million or US$728,868.59 in 2018)[1] |
{{ZARConvert|3650000|year=2002|exact=on}} |
R3,650,000 (2002) (equivalent to R9,645,774.01 or US$728,868.59 in 2018)[1] |
{{ZARConvert|3.65|m|year=2002|exact=on}} |
R3,650,000 (2002) (equivalent to R9,645,774.01 or US$728,868.59 in 2018)[1] |
{{ZARConvert|3600000|year=1962|ref=<ref name="qv">something1</ref>}} |
R3.6 million (1962)[2] (equivalent to R514.38 million or US$38.87 million in 2018)[1] |
{{ZARConvert|3600000|year=1962|ref=<ref name="qv">something1</ref><ref>something2</ref>}} |
R3.6 million (1962)[2][3] (equivalent to R514.38 million or US$38.87 million in 2018)[1] |
{{ZARConvert|3600000|year=2011|to=EUR|ref=<ref name="qv">something1</ref>}} |
R3.6 million (2011)[2] (equivalent to R5.22 million or €333,944.22 in 2018)[1] |
{{ZARConvert|3600000|year=2011|to=EUR|showdate=no|ref=<ref name="qv">something1</ref>}} |
R3.6 million[2] (equivalent to R5.22 million or €333,944.22 in 2018)[1] |
TemplateData for ZARConvert
Template calculates a value of South African rands, which you can enter, to US dollars and then presents the results.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Value | 1 | The value, in the source, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).
| Number | required |
Currency units | 2 | Use this to represent larger numbers such as crores, billions et al.
| Line | suggested |
Linking | lk | Gives option to whether link currency names (paise, etc.) or number names (crores, lakhs, billions, trillions)
| Line | suggested |
Year | year | This parameter allows for inflation. Historic values will be inflated to the most current values available then converted.
| Number | suggested |
To | to | This parameter allows for conversion to various different currencies. The USD (default) and the euro are currently supported.
| Unknown | optional |
Rounding digits | r | Used to round significant digits. A value of "0" will drop paise or cent values from the converted number. By default the conversion will be rounded to two significant figures.
| Number | optional |
Force | force | This parameter allows to force a conversion at the most current rate available when data is lacking for the provided year when its value is "yes".
| Line | optional |
Exact | exact | This provides some control over formatting. "source" requests to display the input value normally (in American fashion) after applying the units. "on" does this for both the input and result values. Otherwise all values will be displayed as per Format price.
| Line | optional |
Show date | showdate | This allows to disable displaying the original year.
| Line | optional |
References | ref | This allows displaying one or more references next to the original value. Each one must consist of a ref wikitext element.
| Content | suggested |
Mode | mode | This parameter allows for the control of the output mode. Currently, blank (default) and historical are supported. In historical mode, conversions are performed using a historical exchange rate, for the year supplied.
| Line | optional |
Convert | convert | This parameter controls the currency conversion. Setting it to blank or omitting it results in the default mode. Setting it to <code>no</code> disables it.
| Line | optional |