Jump to content

Template:ZAR/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by TheCurrencyGuy (talk | contribs) at 07:23, 6 August 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

This template renders a South African currency value with a currency symbol, or optionally an ISO 4217 identifier (ZAR), linked to the South African rand article.

{{ZAR|123.45}} produces R 123.45 (with a non-breaking space between the R and the value)

{{ZAR}} produces R (simple currency article link)

{{ZAR|ISO=yes}} produces ZAR (simple currency article link use ISO 4217 identifier)

{{ZAR|123.45|USD=yes}} produces R 123.45 (US$8.35) (with a non-breaking space between the Z and showing the value in US$)

{{ZAR|123.45|iso=yes|usd=yes}} produces ZAR 123.45 (US$8.35) (with a non-breaking space between the ZAR and showing the value in US$)

 ToDo Import inflation functionality from {{Inflation}} and, for example, {{US$}}. Would require calculating a functional latest year intersection between available datasets.

See also