Difference between revisions of "Template:Dollar sign"

From blackwiki
Jump to navigation Jump to search
imported>Soap
(change AU$ to A$ per talk. This template apparently has only about 200 transclusions, so it shouldn't cause any chaos)
imported>Jimp
(tidy up code)
Line 1: Line 1:
{{#if:{{{1|}}}|{{!(}}{{!(}}}}{{#switch:{{{1|}}}|AUD = Australian dollar{{!}}A$|BBD = Barbadian dollar{{!}}Bds$|BMD = Bermudian dollar{{!}}BD$|BND = Brunei dollar{{!}}B$|BRL = Brazilian real{{!}}R$|BSD = Bahamian dollar{{!}}B$|BZD = Belize dollar{{!}}BZ$|CAD = Canadian dollar{{!}}C$|COOK = Cook Islands dollar{{!}}$|CNY = Renminbi{{!}}¥|CUC = Cuban convertible peso{{!}}CUC$|CUP = Cuban peso{{!}}$MN|DOP = Dominican peso{{!}}RD$|EUR = Euro{{!}}€|FL = Dutch guilder{{!}}ƒ|FRF = French franc{{!}}₣|FJD = Fijian dollar{{!}}FJ$|GBP = Pound sterling{{!}}£|GYD = Guyanese dollar{{!}}G$|HKD = Hong Kong dollar{{!}}HK$|JMD = Jamaican dollar{{!}}J$|JPY = Japanese yen{{!}}¥|KYD = Cayman Islands dollar{{!}}CI$|LRD = Liberian dollar{{!}}L$|MXN = Mexican peso{{!}}N$|NAD = Namibian dollar{{!}}N$|NZD = New Zealand dollar{{!}}NZ$|PGK = Papua New Guinean kina{{!}}K|SBD = Solomon Islands dollar{{!}}SI$|SGD = Singapore dollar{{!}}S$|SRD = Surinamese dollar{{!}}$|TWD = New Taiwan dollar{{!}}NT$|TTD = Trinidad and Tobago dollar{{!}}TT$|TVD = Tuvaluan dollar{{!}}$|USD = United States dollar{{!}}US$|UYU = Uruguayan peso{{!}}$|WST = Samoan tala{{!}}WS$|XAF = Central African CFA franc{{!}}FCFA|XCD = East Caribbean dollar{{!}}EC$|XOF = West African CFA franc{{!}}CFA|ZAR = South African rand{{!}}R|ZWL = Zimbabwean dollar{{!}}Z$|#default=$}}{{#if:{{{1|}}}|]]|}}<noinclude>{{documentation}}</noinclude>
+
{{#if:{{{1|}}}|{{!(}}{{!(}}}}{{#switch:{{{1|}}}
 +
|AUD = Australian dollar{{!}}A$
 +
|BBD = Barbadian dollar{{!}}Bds$
 +
|BMD = Bermudian dollar{{!}}BD$
 +
|BND = Brunei dollar{{!}}B$
 +
|BRL = Brazilian real{{!}}R$
 +
|BSD = Bahamian dollar{{!}}B$
 +
|BZD = Belize dollar{{!}}BZ$
 +
|CAD = Canadian dollar{{!}}C$
 +
|COOK = Cook Islands dollar{{!}}$
 +
|CNY = Renminbi{{!}}¥
 +
|CUC = Cuban convertible peso{{!}}CUC$
 +
|CUP = Cuban peso{{!}}$MN
 +
|DOP = Dominican peso{{!}}RD$
 +
|EUR = Euro{{!}}€
 +
|FL = Dutch guilder{{!}}ƒ
 +
|FRF = French franc{{!}}₣
 +
|FJD = Fijian dollar{{!}}FJ$
 +
|GBP = Pound sterling{{!}}£
 +
|GYD = Guyanese dollar{{!}}G$
 +
|HKD = Hong Kong dollar{{!}}HK$
 +
|JMD = Jamaican dollar{{!}}J$
 +
|JPY = Japanese yen{{!}}¥
 +
|KYD = Cayman Islands dollar{{!}}CI$
 +
|LRD = Liberian dollar{{!}}L$
 +
|MXN = Mexican peso{{!}}N$
 +
|NAD = Namibian dollar{{!}}N$
 +
|NZD = New Zealand dollar{{!}}NZ$
 +
|PGK = Papua New Guinean kina{{!}}K
 +
|SBD = Solomon Islands dollar{{!}}SI$
 +
|SGD = Singapore dollar{{!}}S$
 +
|SRD = Surinamese dollar{{!}}$
 +
|TWD = New Taiwan dollar{{!}}NT$
 +
|TTD = Trinidad and Tobago dollar{{!}}TT$
 +
|TVD = Tuvaluan dollar{{!}}$
 +
|USD = United States dollar{{!}}US$
 +
|UYU = Uruguayan peso{{!}}$
 +
|WST = Samoan tala{{!}}WS$
 +
|XAF = Central African CFA franc{{!}}FCFA
 +
|XCD = East Caribbean dollar{{!}}EC$
 +
|XOF = West African CFA franc{{!}}CFA
 +
|ZAR = South African rand{{!}}R
 +
|ZWL = Zimbabwean dollar{{!}}Z$
 +
|#default=$}}{{#if:{{{1|}}}|]]|}}<noinclude>{{documentation}}</noinclude>

Revision as of 01:55, 5 August 2011

$

Template documentation[view] [edit] [history] [purge]

Usage

This template produces a dollar sign ($). It is designed to be a workaround for a bug caused by bots running on PHP, as the dollar sign indicates a PHP variable in PHP language. It can also produce symbols for various world currencies and can produce links to the relevant article.

Do not subst: this template, otherwise it won't work.

Specific currencies

This template can support various currencies. The complete index of supported currencies and their codes is below.

AUD = Australian dollar
BBD = Barbadian dollar
BMD = Bermudian dollar
BND = Brunei dollar
BRZ = Brazilian real
BSD = Bahamian dollar
BZD = Belize dollar
CAD = Canadian dollar
COOK = Cook Islands dollar
CNY = Chinese yuan
CUC = Cuban convertible peso
CUP = Cuban peso
DOP = Dominican peso
EUR = Euro
FJD = Fijian dollar
FL = Dutch guilder
FRF = French franc
GBP = Pound sterling
GYD = Guyanese dollar
HKD = Hong Kong dollar
JMD = Jamaican dollar
JPY = Japanese yen
KYD = Cayman Islands dollar
LRD = Liberian dollar
MXN = Mexican peso
NAD = Namibian dollar
NZD = New Zealand dollar
PGK = Papua New Guinean kina
SGD = Singapore dollar
SBD = Solomon Islands dollar
SRD = Surinamese dollar
TWD = New Taiwan dollar
TTD = Trinidad and Tobago dollar
TVD = Tuvaluan dollar
USD = United States dollar
UYU = Uruguayan peso
WST = Samoan tala
XAF = Central African CFA franc
XCD = East Caribbean dollar
XOF = West African CFA franc
ZAR = South African rand
ZWL = Zimbabwean dollar

For a specific currency add the three/four letter ISO 4217 code for the desired currency as an additional parameter, separated by a vertical pipe.
Example:
{{dollarsign|NZD}} (New Zealand Dollar) produces:
NZ$
{{dollarsign|EUR}} (Euro) produces:

{{dollarsign|DOP}} (Dominican peso) produces:
RD$

There is no need to add the additional letters, they are automatically added.

Linking

To link add |lk=on.

See also