This template does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Related pages |
---|
The Danish krone is not displaying correctly. Example:
It should look like:
Thanks. Green Cardamom ( talk) 17:00, 29 June 2011 (UTC)
Fixed (updated ~Currency/Types). Green Cardamom ( talk) 17:13, 29 June 2011 (UTC)
When the currency type has a space between the symbol and number, like the Danish krone above, it would be better if there was no line-wrap between them. Demonstrate:
I think it would be easy to fix, but maybe not. Green Cardamom ( talk) 17:18, 29 June 2011 (UTC)
Template:nowrap provides this feature also, as an example to copy from. Green Cardamom ( talk) 05:33, 19 July 2011 (UTC)
OK, no one's responded, and the template is open to edit, so I just added some simple code to enable nowraping. If this breaks anything I apologize, please revert, but it does appear to prevent line wrapping without breaking anything I can see. Green Cardamom ( talk) 05:50, 19 July 2011 (UTC)
Calling {{Currency|{{Format price|123E6}}|EUR}} can be a bit unreadable. Therefore I added internal Format price support to the Currency Template. You can find my version here. If there are no objections then I'd merge the changes to the official currency template. The use of Format price can still be prevented by adding the noformat=yes option. -- Wikieditoroftoday ( talk) 13:26, 29 September 2011 (UTC)
This userpage has been blanked. If this is your userpage, you can retrieve the contents of this page in the page history. Alternatively, if you would like it deleted, simply replace the content of this page with {{db-u1}}. |
This userpage has been blanked. If this is your userpage, you can retrieve the contents of this page in the page history. Alternatively, if you would like it deleted, simply replace the content of this page with {{db-u1}}. |
This userpage has been blanked. If this is your userpage, you can retrieve the contents of this page in the page history. Alternatively, if you would like it deleted, simply replace the content of this page with {{db-u1}}. |
On checking What links here only shows 50 or 75 articles using this template, shouldn't cause too much disruption, and better for the alpha display to be default going forward. One article I used it lot in is List of the world's richest literary prizes, I'll probably need to go back and add the noformat=yes to the second column to keep it consistent. Tables are where numerical display is usually preferred over alpha, may need to check the articles for those cases. Also perhaps instead of "noformat", call it "display=alpha" or "display=num" is more descriptive. Green Cardamom ( talk) 19:44, 30 September 2011 (UTC)
I like the idea in the previous section of a single currency template that would be able to properly format VERY LARGE currency amounts; i.e., amounts with 6 to 15 zeros. For example, US$280,000,000 would show up as US$280 million rather than 9 digits. But I can't figure out how to use the (two different???) currency templates to do so without all the nested "Format" falderal. And documentation help would be great! Is this capability being planned by those of you editors who care about currency templates and know how to write the code? Thanks. N2e ( talk) 20:53, 10 November 2011 (UTC)
Why is the "kr" of the krone (or krona, for Sweden) currencies placed before the number? In normal usage, it is always written after, and read as such: using Norwegian as an example, 5 kr = "fem kroner", not "kroner fem", which is what "kr 5" seems to imply. These currencies don't ever have a symbol before them, so it seems odd to place the "kr" before the number, like currencies which do have such a symbol. dalahäst ( let's talk!) 22:56, 14 June 2012 (UTC)
Only the number is returned, no hyperlinks or currency at all. Please fix. Ukrained2012 ( talk) 02:02, 10 September 2013 (UTC)
Re. this, I don't quite understand: why does it say "Teuro", and not "Euro"? It Is Me Here t / c 23:13, 7 March 2014 (UTC)
There is a discussion at Wikipedia talk:WikiProject Japan#Currency templates about how to disambiguation between "¥" for Japanese yen and "CN¥" for Chinese yuan. Please feel free to contribute on that page. Stepho talk 10:03, 12 October 2014 (UTC)
There is a follow-on discussion at
Template talk:CNY#Ambiguity with Japanese Yen about whether the {{
CNY}}
template should display '¥100' or 'RMB 100'. Please feel free to discuss it there.
Stepho
talk
13:13, 2 December 2014 (UTC)
Possible changes
According to Wikipedia:Manual of Style (dates and numbers)#Currencies, the names of currencies should be not be capitalized unless they are the first words in the sentence. In the long form output "1,000 Euros" and "1,000 Renminbi", the currencies should probably be lowercase "euros" and "renminbi".
There seems to be one bug in parameter parsing.
– Margin1522 ( talk) 16:49, 12 October 2014 (UTC)
This template is getting popular. Transclusion count is 700+. Shall "Module:Currency" be created? -- George Ho ( talk) 10:01, 24 January 2015 (UTC)
Module:Currency pursuant to a conversation at WT:LUA. The module and its data Module:Currency/Presentation are incomplete but enough of it works that you can play around with it and suggest changes and improvements. The data module is especially in need of work and is something that can be done by anyone; no Lua expertise required.
{{
currency/new}}
is the template that calls the module.
— Trappist the monk ( talk) 12:46, 7 April 2016 (UTC)
|linked=
which if set to no
does not link the symbol or the currency name (if |first=
is set).{{
currency}}
with {{
currency/new}}
.{{
currency}}
. If it becomes an issue, I can load the list of transcluded articles into AWB and do that many null edits relatively quickly.So, to move forward, I propose to do this:
Subtemplates of what will become Template:Currency/old shall not be moved.
— Trappist the monk ( talk) 12:14, 17 April 2016 (UTC)
Done. Report all oddities here.
— Trappist the monk ( talk) 15:12, 17 April 2016 (UTC)
I'm wondering if it's possible to add to this template (or create a new template with the function) the possibility to convert currencies, like Template:convert for measurement units. This would be very useful as it is sometimes difficult to understand articles citing local currencies. There could be a database with conversions from several currencies to the most common ones such as EUR or USD, updated at regular intervals. This would also solve the problem of fluctuating exchange rates which sometimes make articles outdated. -- Ita140188 ( talk) 08:01, 10 November 2015 (UTC)
Unless I am mistaken (in which case the doc could make it clearer; I've looked at the template source) this template only allows for currency values where the symbol is prefixed, rather than suffixed. For example {{
currency|1234|HUF}}
(Hungarian Forint) givesgave:
Whereas it should be written:
I think we need more metadata subtemplates to make it easier to control the spacing of currency symbols and their position (for example, the space between "1,234" and "Ft" above. I'd be inclined to add a parameter to the main template, pos=
which can take values "first", "sep" (or "dp" or "middle", i.e. in place of the decimal point) and "last". If absent, it should default to the value in a lookup template (
Template:currency/Position, say), arranged similarly to the one for
Template:Currency/Type.
Although of course most transclusions would use the default, this should be able to be overridden. For example, the euro symbol varies its position (and spacing) from country to country, largely depending on how national currencies were written before its introduction. (€15.49 vs. 15.49€ vs. 15€49). While in English Wikipedia we might follow one style, that can sometimes become incongrous when articles are heavily oriented to one country.
I'm quite happy to create the "position" lookup template (later, my wife is dragging me shopping...) but should like to hear of others' views; I think I'll create it then we can play with variations in (a draft/sandbox of) the daddy template. Si Trew ( talk) 07:40, 29 November 2015 (UTC)
I guess the question which you raise is how it appears in most English-language sources, or how it's done within the country itself, and is there a difference. -- Green C 14:03, 29 November 2015 (UTC)
{{
clarification needed}}
tag, but there's nothing on the talk about it. For Hungarian forints, which is the particular use I wanted, "Ft" always appears (spaced) after the amount in English and in Hungarian. This is the case for other currencies too such as "DM" (Deutsche mark), I think: in no way are Hungarian forints some unique exception.iso=y
or something to do this generically. You may ask what is the point instead of just writing it in the article longhand, and you would be kinda right, except it still automatically adds the link to the article about the currency (i.e. it implies first=yes
).
Si Trew (
talk)
08:23, 30 November 2015 (UTC)There's also I think an oddity in that in Type, PESETA and PIASSE produce Canadian dollars. Si Trew ( talk) 08:59, 30 November 2015 (UTC)
{{
nowrap}}
) and HUF is displayed after the currency: my original motive but also acts as a test case:link=
; then specialist templates like {{
AUD}}
can become wrappers for this more-general template. It might be better for Type to return not a piped link but simply a bare page link (or I might split into
Template:Currency/Article and
Template:Currency/Symbol and essentially recombine those in
Template:Currency/Format passing through link=
).If not already, can setup a sandbox + testcases page with 10 or 20 different currency examples using the option switches? Good idea anyway to make sure it works with all possibilities before rolling out. Here's an example testcases page that uses the {{ testcase}} template etc. -- Green C 15:30, 30 November 2015 (UTC)
SimonTrew, still generating transclusion errors. They are visible on this talk page for one, with NOK2. Recommend setup a sandbox and testcases page so that we can see the problem, instead of having to make it live in order to see the problem and then revert etc.. -- Green C 16:10, 30 November 2015 (UTC)
{{
error}}
when the input parameter for currency is unknown. I can try to set up a sandbox but in the meantime I have added some more examples. Thanks for your good faith here as my ultimate aim is to get all the info into one table rather than having the various templates all listing different switch statements; I think part of the problem is that cases have been added to e.g. Type and not LongType. I thought that NOK was broken on purpose because of what it says, that it's ambiguous.
Si Trew (
talk)
16:21, 30 November 2015 (UTC)
@ SimonTrew: See List of the world's richest literary prizes. Note the red transclusion errors being generated by the currency template. This is because there is a lag in the Wikipedia transclusion updates due to server load (it can take days to clear). The template is being rendered according to the new version (the one you made), even though it's been reverted back to the old version. The only way to fix is a null edit on the article. I expect there are others with the same problem, showing the red errors, the template has 867 transclusions. I think the sooner we can get it to the final state the better. So far it looks like problems with type UK, CAD, NOK and NOK2.. are those exceptions or should every country be tested? -- Green C 05:00, 1 December 2015 (UTC)
@
SimonTrew:, I wrote a script to search the 801 mainspace articles which are using {{
currency}} to find which ones still had red transclusion errors (due to the transclusion database lag still using the version of the template you wrote). I then issued a
WP:NULLEDIT to clear the error, and log which articles per below. This took about 2 hours to write, debug and run. I hope this list of articles and currency types which are causing errors are useful to you in debugging what the problem was. --
Green
C
16:35, 2 December 2015 (UTC)
{{
CurrencyTest}}
and its helpers {{
CurrencyTest/Type}}
and {{
CurrencyTest/LongType}}
. Please experiment with this new template. When it is operating correctly then I will apply the changes to the original templates and delete the Test templates.
Stepho
talk
08:47, 3 December 2015 (UTC)The new version of the template has broken a large number of instances of the template where there's anything other than a plain number without commas provided. (I fixed one at South Korean legislative election, 2016, just came across more at JYJ, and there's more on this page and the template documentation.) While it's possible to go through and fix all of these, is there no way to make the template function with numbers written with commas ("15,000,000") or in text ("15 million") ? I would also prefer to use 15 million rather than 15,000,000 at the election page, but this doesn't seem possible at the moment, or at least it's not documented. Paging Trappist the monk. — Nizolan (talk) 15:28, 19 April 2016 (UTC)
|<amount>
parameter. I suspect that this is because the magic word {{formatnum:}}
used by {{
currency/old}}
doesn't play well with commas in what is supposed to be an 'unformated' number. For example,
{{formatnum:10,00}}
→ 10,00 so:
{{currency/old|10,00}}
→ {{
currency/old|10,00}}
{{
currency}}
simply enforces the rule that was already in place:
{{currency|10,00}}
→ {{currency}} – invalid amount (
help){{currency/old}}
so is not supported by {{currency}}
. The question then is, what is the list of appropriate 'words' that can follow the number in the |<amount>
parameter?
{{formatnum:rabbits 10000 rabbits}}
→ rabbits 10,000 rabbits – doesn't care; should {{currency}}
similarly not care?From an editor perspective, it's hard to read templates like this {{currency|10000000|NK}} Is it 1, 10 or 100 million? Easy to make a mistake. That's why commas for numbers were invented along with paragraph breaks, periods and other punctuation (the Romans had none). Less work for editors if it displayed with commas, if it's not too much programming work. The expanded word version should be an optional switch. For malformed numbers (10,00) it should give an error since the program can't determine if that should be 1000 or 10,000 or 10.00 -- Green C 03:05, 20 April 2016 (UTC)
I spent half an hour at lunchtime teaching myself the basics of LUA and created ConvertStringToNumeric as a LUA module and a wrapper template to convert such things as 'million/billion/etc'
{{ConvertStringToNumeric|1000}}
{{ConvertStringToNumeric|10 million}}
{{ConvertStringToNumeric|10 billion}}
{{#expr:{{ConvertStringToNumeric|1.23 million}}}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|SGD}}
→ {{currency}} – invalid amount (
help)Sadly, my knowledge of LUA is still at the beginner stage and I don't know how to make the existing LUA currency module call ConvertStringToNumeric . Stepho talk
{{currency|1.23|SGD}} million
{{currency|1.23|PLN}} million
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|SGD}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|SGD}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|SGD}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|SGD}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|cve}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|cve}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|cve}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|cve}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|PLN}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|PLN}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|PLN}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|PLN}}
|amount=
has a quantifier (is that the right term?) should that not remain as part of the rendered output? The quantifiers are often used to make large numbers more readable, right? Why then would we want to convert a readable form into one that is arguably more difficult to read, even when that converted form is properly formatted?{{currency|1000 million|gbp}}
I have created {{
currency/sandbox}}
and
Module:Currency/sandbox. To the latter I have added code that allows the module to accept properly formatted, comma-separated numbers in the template's |amount=
parameter:
{{currency/sandbox |1000}}
– no commas
{{currency/sandbox |1000.00}}
– no commas
{{currency/sandbox |1,000,000,000}}
– properly placed commas
{{currency/sandbox |1,000,000,000.01}}
– properly placed commas
{{currency/sandbox |$1,000,000,000}}
– extra text
{{currency/sandbox |,1000}}
– misplaced comma
{{currency/sandbox |1000,}}
– misplaced comma
{{currency/sandbox |1000,.00}}
– misplaced comma
{{currency/sandbox |10,00}}
– misplaced comma or missing digit
{{currency/sandbox |1000,000,000}}
– missing comma
— Trappist the monk ( talk) 13:07, 21 April 2016 (UTC)
Looks good! I've never heard of money spoken of in quadrillions (or rabbits). -- Green C 00:41, 22 April 2016 (UTC)
Hi
I'm trying to add this template to text in the article for Phase-out of lightweight plastic bags, I would like to use it where it says '5 pence' but I get an error, I think it is because I'm trying to use a value less than one (0.05).
Thanks
-- John Cummings ( talk) 16:05, 29 August 2017 (UTC)
{{currency|0.05|GBP}}
gives
£0.05, which is correct. {{currency|0.05|pence}}
gives an error because pence is not in the list of currencies.
Stepho
talk
23:09, 29 August 2017 (UTC)Is there any way currency formats numbers with gaps as per MOS:DIGITS? For example, to work in harmony with template:val? Betterkeks ( talk) 01:15, 20 July 2018 (UTC)
|fmt=
where values assigned to that parameter are the same as at {{
val}}
with slightly different meanings. At {{
currency}}
, the default grouping separator is the comma, at {{val}}
, the default grouping separator is a gap.
{{currency/sandbox|1234567|euro}}
– |fmt=
omitted
{{currency/sandbox|1234567|euro|fmt=}}
– |fmt=
present but empty
{{currency/sandbox|1234567|euro|fmt=bob}}
– |fmt=bob
is nonsense value
{{currency/sandbox|1234567|euro|fmt=commas}}
– |fmt=commas
included for completeness; does nothing
{{currency/sandbox|1234567|euro|fmt=gaps}}
– |fmt=gaps
replaces default comma grouping separators with narrow gaps
{{currency/sandbox|1234567|euro|fmt=none}}
– |fmt=none
removes default comma grouping separators
If I understand MOS:CURRENCY correctly, the “first mention of a particular currency should use its full, unambiguous signifier (e.g. A$52), with subsequent references using just the appropriate symbol (e.g. $88), unless this would be unclear”. Is there any way to make your template do this? Betterkeks ( talk) 11:48, 6 August 2018 (UTC)
'AUD2' = {page = 'Australian dollar', plural = 's', position = 'b', symbol = '$'},
Is there any way to tell your template to output scale (for example, AU$100 million), where million, billion and so on are “spelled out on first use, and (optionally) abbreviated M or bn (both unspaced) thereafter” as per MOS:CURRENCY? Betterkeks ( talk) 11:53, 6 August 2018 (UTC)
{{currency|100|aud}} million
→
A$100 million{{currency|100|aud|linked=no}}M
→ A$100M|fmt=
to add a quantifier:
{{convert|{{#expr: (2592300 / 10^6) round 2 }}|e6t|e9lb|abbr=off}}
for “2.59 million tonnes (5.7 billion pounds)”.{{
and }}
markup; it would be nice, but, alas, not possible. This is why I suggested co-opting |fmt=
; so that editors can specify how the template renders. There is some merit in your spacing argument. I guess I don't think that we should use e6
and e9
for template parameter values or use exponential notation in template renderings unless they are in common use in articles that would use this template.Why does {{currency|6,000,000|ISK}}
return
ISK 6,000,000? I've never in my life seen "Íkr" used. The English currency abbreviation is ISK. In Icelandic, the abbreviation is "kr". I guess you might write "Íkr" if you were writing, in Icelandic, abbreviations of many different types of krónur in the same place - e.g. listing some prices in "Íkr", others in "Dkr", others in "Nkr", etc. But that's anything but common. --
Rei (
talk)
08:54, 14 August 2019 (UTC)
Hi, is it intentional that this template doesn't support any historic currencies, even ones that do have ISO 4217 codes?
If it is, then this should probably be noted in the documentation, as it's nowhere there currently.
If not, well, the Spanish peseta with code ESP doesn't work :)
Cheers, Naypta ☺ | ✉ talk page | 22:13, 2 May 2020 (UTC)
{{currency|1000|ESP}}
displays as 1,000
₧The currency template for
Pakistani Rupee uses the alphabetic symbol ‘Rs’. It would be more appropriate if the character ₨
was used. The space between the currency sign and the amount should also then be absent.
Idell (
talk)
11:24, 4 June 2020 (UTC)
{{currency|100|PKR}}
now gives
₨100.
Stepho
talk
13:26, 4 June 2020 (UTC)An editor has identified a potential problem with the redirect Template:Currency/new and has thus listed it for discussion. This discussion will occur at Wikipedia:Redirects for discussion/Log/2022 January 7#Template:Currency/new until a consensus is reached, and readers of this page are welcome to contribute to the discussion. Gonnym ( talk) 11:33, 7 January 2022 (UTC)
I find it unusual and disheartening that the abbreviation "STG" for sterling is not supported by this template's list of ISO code aliases, even though "RMB" and even "US$" are supported and unlike many ISO codes "GBP" is not even an accurate abbreviation of the currency's name. Could this be rectified please?
I would like to propose the following additional parameters, not necessarily replacing any existing ones, which I consider inappropriate for many applications, particularly for historical references from before the ISO standard even existed.
{{currency|1,000|STG}} Producing:
and:
{{currency|1,000|STERLING}}
Producing:
TheCurrencyGuy ( talk) 13:41, 12 June 2022 (UTC)
{{currency|1,000|STERLING}}
→
£1,000{{currency|1,000|STG}}
→
£1,000{{
currency/sandbox}}
from {{
currency}}
and make sure that {{currency/sandbox}}
invokes Module:Currency/sandbox. Use
Template:Currency/testcases to see if your updated sandboxen template and modules are working. When everything is working as it should, then you can do your experiments.Would it be possible for someone to add a modified version of the Cape Verde escudo code for use with the Portuguese escudo which used the same notation ($ in place of the decimal point), thanks. TheCurrencyGuy ( talk) 19:07, 5 July 2022 (UTC)
Reading the Manual of Style for MOS:CURRENCY, I think there is an issue with how the South African rand (code ZAR) is displayed. Because the currency abbreviation is entirely alphabetic and contains no numeric characters, shouldn't it have a space between the currency abbreviation R and the amount of currency as per the MOS? If so, there is a typo on the MOS:CURRENCY page. Please correct me if I'm wrong, as I don't have much experience working with templates. Somers-all-the-time ( talk) 12:14, 3 August 2022 (UTC)
{{currency|500|ZAR}}
→
R 500Many of the templates have only limited sets of options, so I would like to propose a basic standard for them (each currency could of course have its coding tailored to its own peculiarities). I have already prepared a possible set for each current template.
ANY CURRENCY
Basic use
{{XXX}} produces ¤ (simple currency sign)
{{XXX|123.45}} produces ¤123.45
Basic w/link
{{XXX|link=yes}} produces ¤ (simple currency article link)
{{XXX|123.45|link=yes}} produces ¤123.45
Include disambiguating abbreviation
{{XXX|123.45|long=no}} produces ¤123.45 an.cur.
{{XXX|123.45|long=no|link=yes}} produces ¤123.45 an.cur.
Verbal representation
{{XXX|123.45|long=yes}} produces ¤123.45 any currency
{{XXX|123.45|long=yes|link=yes}} produces ¤123.45 any currency
ISO code
{{XXX|123.45|ISO=yes}} produces 123.45 XXX TheCurrencyGuy ( talk) 07:11, 6 August 2022 (UTC)
Please contribute to the discussion at Template talk:US$#minus sign. Stepho talk 00:33, 30 December 2022 (UTC)
The ¥ symbol has for a very long time been construed in the west as the Japanese yen, without a second thought. When Stepho-wrs first raised this ( above) nearly ten years ago, that was the widespread assumption. Increasing prominence of its use for the Chinese yuan makes it timely, I think, to raise the question as to whether this template should disambiguate it invariably: always and only JP¥ or CN¥. This would be consistent with the way the template currently handles eg USD and AUD ( US$1,000 , A$1,000). I suggest that it is time that we do.
Do we need a discussion at talk:MOS around an update to MOS:CURRENCY first? I'm thinking of something like the current text about the $ sign, but without any equivalent of the USD as default meaning in non-national contexts.
Comments? 𝕁𝕄𝔽 ( talk) 10:33, 20 August 2023 (UTC)
¥
is an alias of JPY
; what happens to that?¥
just like we handle $
. If at present an unqualified $ defaults to USD, then it makes sense for an unqualified ¥ to default to JPY. My feeling is that this is the appropriate line to take right now: in ten years time, who knows but for now we really should at least get started down the road of equal treatment and add support for CN¥.CN¥nnnn
, it produced ¥nnnn RMB
. Gross! I have reverted it.
𝕁𝕄𝔽 (
talk) 07:31, 21 August 2023 (UTC) revised --
𝕁𝕄𝔽 (
talk)
07:46, 21 August 2023 (UTC)Why does {{currency|1|CAD}}
produce
CA$1 and not
CA$1 like it should from the style? That's how the page linked even stylizes it as CAD, matching it's
ISO 4217 code.
microbiologyMarcus (
petri dish•
growths)
20:41, 1 November 2023 (UTC)
{{
CAD}}
and {{
CA$}}
.
Stepho
talk
22:29, 1 November 2023 (UTC)
There is no standard disambiguating form, but the abbreviations Can$, CA$ and C$ are frequently used for distinction from other dollar-denominated currencies (though C$ remains ambiguous with the Nicaraguan córdoba). [1] [2] [a]
Apologies for the late reply - the real world sometimes keeps me busy.
I have asked at
Wikipedia_talk:Canadian Wikipedians' notice board#Currency and
Talk:Canadian dollar#currency template for comments. After all, they have more skin in this game than me.
Stepho
talk
22:44, 1 December 2023 (UTC)
After giving people plenty of notice and time to comment, CA$ seems to be the consensus, so I have changed the template to use this. Stepho talk 23:47, 9 December 2023 (UTC)
References
In an English document, when you need to specify the type of dollar (Canadian, American, Australian, etc.), the Translation Bureau recommends using the symbol Can$ to represent the Canadian dollar. ... The shorter variant C$ is another symbol frequently used for the Canadian dollar. However, the Translation Bureau does not recommend this symbol, since it has a slight risk of ambiguity: it is also used to represent the Nicaraguan córdoba oro, and occasionally the Cayman Islands dollar as well.
Notes
Kia ora, the template currently does not support the New Zealand Pound. This is a defunct currency used in New Zealand between 1840 and 1967. Because of the late switch to decimal currency a lot of articles about the history of New Zealand need to express numbers in pounds, but the currency template currently does not support that.
The commonly used short symbols for the currency are £ or £NZ. I would prefer to used NZ£, because this is consistent with the current format for NZ$ that is rendered by the template.
I would suggest that the code should be NZP because this does not appear elsewhere in ISO 4217 and is unlikely to result in future conflicts with the standard. If possible, I think the strings "New Zealand pound" and "NZ pound" should also be acceptable.
I'm happy to contribute any necessary underlying lua code and test cases for this, though I don't know where any of that is hosted or editable. David Palmer aka cloventt ( talk) 22:13, 17 April 2024 (UTC)
Those who participated in the Japanese Yen vs Chinese Yuan discussion, @ JMF, Trappist the monk, and Beland: I've restored Module:Currency/Presentation at its sandbox ( perma) back to Aug 2022, before banned user TheCurrencyGuy changed the whole thing without consensus. I've implemented the changes of subsequent editors. Here is a diff of what that looks like if we mirror the sandbox to the main page.
If there aren't any issues, then I suggest we restore. ~~ lol1 VNIO (I made a mistake? talk to me) 17:49, 19 May 2024 (UTC)
currency_properties{}
. I found DEM
, DEM2
, and DM
. Those should be moved or deleted as appropriate. Otherwise, I favor restoration.So, I was using the currency template on the "International versions" section on the page for Deal or No Deal, and I was using it with the Estonian kroon, the Slovak koruna, and the Slovenian tolar, and I got error messages, but I didn't when I used it with the Croatian kuna and the Lithuanian litas. I just happened to notice the inconsistency, and I just wanted to share it, that's all. GameShowWikiGuy ( talk) 03:36, 2 July 2024 (UTC)
Inclusion in the template does not rely on it being currently in use in the real world. If the currency is being mentioned frequently enough in WP articles then that is good enough to put it here. Stepho talk 23:21, 9 July 2024 (UTC)
This template does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Related pages |
---|
The Danish krone is not displaying correctly. Example:
It should look like:
Thanks. Green Cardamom ( talk) 17:00, 29 June 2011 (UTC)
Fixed (updated ~Currency/Types). Green Cardamom ( talk) 17:13, 29 June 2011 (UTC)
When the currency type has a space between the symbol and number, like the Danish krone above, it would be better if there was no line-wrap between them. Demonstrate:
I think it would be easy to fix, but maybe not. Green Cardamom ( talk) 17:18, 29 June 2011 (UTC)
Template:nowrap provides this feature also, as an example to copy from. Green Cardamom ( talk) 05:33, 19 July 2011 (UTC)
OK, no one's responded, and the template is open to edit, so I just added some simple code to enable nowraping. If this breaks anything I apologize, please revert, but it does appear to prevent line wrapping without breaking anything I can see. Green Cardamom ( talk) 05:50, 19 July 2011 (UTC)
Calling {{Currency|{{Format price|123E6}}|EUR}} can be a bit unreadable. Therefore I added internal Format price support to the Currency Template. You can find my version here. If there are no objections then I'd merge the changes to the official currency template. The use of Format price can still be prevented by adding the noformat=yes option. -- Wikieditoroftoday ( talk) 13:26, 29 September 2011 (UTC)
This userpage has been blanked. If this is your userpage, you can retrieve the contents of this page in the page history. Alternatively, if you would like it deleted, simply replace the content of this page with {{db-u1}}. |
This userpage has been blanked. If this is your userpage, you can retrieve the contents of this page in the page history. Alternatively, if you would like it deleted, simply replace the content of this page with {{db-u1}}. |
This userpage has been blanked. If this is your userpage, you can retrieve the contents of this page in the page history. Alternatively, if you would like it deleted, simply replace the content of this page with {{db-u1}}. |
On checking What links here only shows 50 or 75 articles using this template, shouldn't cause too much disruption, and better for the alpha display to be default going forward. One article I used it lot in is List of the world's richest literary prizes, I'll probably need to go back and add the noformat=yes to the second column to keep it consistent. Tables are where numerical display is usually preferred over alpha, may need to check the articles for those cases. Also perhaps instead of "noformat", call it "display=alpha" or "display=num" is more descriptive. Green Cardamom ( talk) 19:44, 30 September 2011 (UTC)
I like the idea in the previous section of a single currency template that would be able to properly format VERY LARGE currency amounts; i.e., amounts with 6 to 15 zeros. For example, US$280,000,000 would show up as US$280 million rather than 9 digits. But I can't figure out how to use the (two different???) currency templates to do so without all the nested "Format" falderal. And documentation help would be great! Is this capability being planned by those of you editors who care about currency templates and know how to write the code? Thanks. N2e ( talk) 20:53, 10 November 2011 (UTC)
Why is the "kr" of the krone (or krona, for Sweden) currencies placed before the number? In normal usage, it is always written after, and read as such: using Norwegian as an example, 5 kr = "fem kroner", not "kroner fem", which is what "kr 5" seems to imply. These currencies don't ever have a symbol before them, so it seems odd to place the "kr" before the number, like currencies which do have such a symbol. dalahäst ( let's talk!) 22:56, 14 June 2012 (UTC)
Only the number is returned, no hyperlinks or currency at all. Please fix. Ukrained2012 ( talk) 02:02, 10 September 2013 (UTC)
Re. this, I don't quite understand: why does it say "Teuro", and not "Euro"? It Is Me Here t / c 23:13, 7 March 2014 (UTC)
There is a discussion at Wikipedia talk:WikiProject Japan#Currency templates about how to disambiguation between "¥" for Japanese yen and "CN¥" for Chinese yuan. Please feel free to contribute on that page. Stepho talk 10:03, 12 October 2014 (UTC)
There is a follow-on discussion at
Template talk:CNY#Ambiguity with Japanese Yen about whether the {{
CNY}}
template should display '¥100' or 'RMB 100'. Please feel free to discuss it there.
Stepho
talk
13:13, 2 December 2014 (UTC)
Possible changes
According to Wikipedia:Manual of Style (dates and numbers)#Currencies, the names of currencies should be not be capitalized unless they are the first words in the sentence. In the long form output "1,000 Euros" and "1,000 Renminbi", the currencies should probably be lowercase "euros" and "renminbi".
There seems to be one bug in parameter parsing.
– Margin1522 ( talk) 16:49, 12 October 2014 (UTC)
This template is getting popular. Transclusion count is 700+. Shall "Module:Currency" be created? -- George Ho ( talk) 10:01, 24 January 2015 (UTC)
Module:Currency pursuant to a conversation at WT:LUA. The module and its data Module:Currency/Presentation are incomplete but enough of it works that you can play around with it and suggest changes and improvements. The data module is especially in need of work and is something that can be done by anyone; no Lua expertise required.
{{
currency/new}}
is the template that calls the module.
— Trappist the monk ( talk) 12:46, 7 April 2016 (UTC)
|linked=
which if set to no
does not link the symbol or the currency name (if |first=
is set).{{
currency}}
with {{
currency/new}}
.{{
currency}}
. If it becomes an issue, I can load the list of transcluded articles into AWB and do that many null edits relatively quickly.So, to move forward, I propose to do this:
Subtemplates of what will become Template:Currency/old shall not be moved.
— Trappist the monk ( talk) 12:14, 17 April 2016 (UTC)
Done. Report all oddities here.
— Trappist the monk ( talk) 15:12, 17 April 2016 (UTC)
I'm wondering if it's possible to add to this template (or create a new template with the function) the possibility to convert currencies, like Template:convert for measurement units. This would be very useful as it is sometimes difficult to understand articles citing local currencies. There could be a database with conversions from several currencies to the most common ones such as EUR or USD, updated at regular intervals. This would also solve the problem of fluctuating exchange rates which sometimes make articles outdated. -- Ita140188 ( talk) 08:01, 10 November 2015 (UTC)
Unless I am mistaken (in which case the doc could make it clearer; I've looked at the template source) this template only allows for currency values where the symbol is prefixed, rather than suffixed. For example {{
currency|1234|HUF}}
(Hungarian Forint) givesgave:
Whereas it should be written:
I think we need more metadata subtemplates to make it easier to control the spacing of currency symbols and their position (for example, the space between "1,234" and "Ft" above. I'd be inclined to add a parameter to the main template, pos=
which can take values "first", "sep" (or "dp" or "middle", i.e. in place of the decimal point) and "last". If absent, it should default to the value in a lookup template (
Template:currency/Position, say), arranged similarly to the one for
Template:Currency/Type.
Although of course most transclusions would use the default, this should be able to be overridden. For example, the euro symbol varies its position (and spacing) from country to country, largely depending on how national currencies were written before its introduction. (€15.49 vs. 15.49€ vs. 15€49). While in English Wikipedia we might follow one style, that can sometimes become incongrous when articles are heavily oriented to one country.
I'm quite happy to create the "position" lookup template (later, my wife is dragging me shopping...) but should like to hear of others' views; I think I'll create it then we can play with variations in (a draft/sandbox of) the daddy template. Si Trew ( talk) 07:40, 29 November 2015 (UTC)
I guess the question which you raise is how it appears in most English-language sources, or how it's done within the country itself, and is there a difference. -- Green C 14:03, 29 November 2015 (UTC)
{{
clarification needed}}
tag, but there's nothing on the talk about it. For Hungarian forints, which is the particular use I wanted, "Ft" always appears (spaced) after the amount in English and in Hungarian. This is the case for other currencies too such as "DM" (Deutsche mark), I think: in no way are Hungarian forints some unique exception.iso=y
or something to do this generically. You may ask what is the point instead of just writing it in the article longhand, and you would be kinda right, except it still automatically adds the link to the article about the currency (i.e. it implies first=yes
).
Si Trew (
talk)
08:23, 30 November 2015 (UTC)There's also I think an oddity in that in Type, PESETA and PIASSE produce Canadian dollars. Si Trew ( talk) 08:59, 30 November 2015 (UTC)
{{
nowrap}}
) and HUF is displayed after the currency: my original motive but also acts as a test case:link=
; then specialist templates like {{
AUD}}
can become wrappers for this more-general template. It might be better for Type to return not a piped link but simply a bare page link (or I might split into
Template:Currency/Article and
Template:Currency/Symbol and essentially recombine those in
Template:Currency/Format passing through link=
).If not already, can setup a sandbox + testcases page with 10 or 20 different currency examples using the option switches? Good idea anyway to make sure it works with all possibilities before rolling out. Here's an example testcases page that uses the {{ testcase}} template etc. -- Green C 15:30, 30 November 2015 (UTC)
SimonTrew, still generating transclusion errors. They are visible on this talk page for one, with NOK2. Recommend setup a sandbox and testcases page so that we can see the problem, instead of having to make it live in order to see the problem and then revert etc.. -- Green C 16:10, 30 November 2015 (UTC)
{{
error}}
when the input parameter for currency is unknown. I can try to set up a sandbox but in the meantime I have added some more examples. Thanks for your good faith here as my ultimate aim is to get all the info into one table rather than having the various templates all listing different switch statements; I think part of the problem is that cases have been added to e.g. Type and not LongType. I thought that NOK was broken on purpose because of what it says, that it's ambiguous.
Si Trew (
talk)
16:21, 30 November 2015 (UTC)
@ SimonTrew: See List of the world's richest literary prizes. Note the red transclusion errors being generated by the currency template. This is because there is a lag in the Wikipedia transclusion updates due to server load (it can take days to clear). The template is being rendered according to the new version (the one you made), even though it's been reverted back to the old version. The only way to fix is a null edit on the article. I expect there are others with the same problem, showing the red errors, the template has 867 transclusions. I think the sooner we can get it to the final state the better. So far it looks like problems with type UK, CAD, NOK and NOK2.. are those exceptions or should every country be tested? -- Green C 05:00, 1 December 2015 (UTC)
@
SimonTrew:, I wrote a script to search the 801 mainspace articles which are using {{
currency}} to find which ones still had red transclusion errors (due to the transclusion database lag still using the version of the template you wrote). I then issued a
WP:NULLEDIT to clear the error, and log which articles per below. This took about 2 hours to write, debug and run. I hope this list of articles and currency types which are causing errors are useful to you in debugging what the problem was. --
Green
C
16:35, 2 December 2015 (UTC)
{{
CurrencyTest}}
and its helpers {{
CurrencyTest/Type}}
and {{
CurrencyTest/LongType}}
. Please experiment with this new template. When it is operating correctly then I will apply the changes to the original templates and delete the Test templates.
Stepho
talk
08:47, 3 December 2015 (UTC)The new version of the template has broken a large number of instances of the template where there's anything other than a plain number without commas provided. (I fixed one at South Korean legislative election, 2016, just came across more at JYJ, and there's more on this page and the template documentation.) While it's possible to go through and fix all of these, is there no way to make the template function with numbers written with commas ("15,000,000") or in text ("15 million") ? I would also prefer to use 15 million rather than 15,000,000 at the election page, but this doesn't seem possible at the moment, or at least it's not documented. Paging Trappist the monk. — Nizolan (talk) 15:28, 19 April 2016 (UTC)
|<amount>
parameter. I suspect that this is because the magic word {{formatnum:}}
used by {{
currency/old}}
doesn't play well with commas in what is supposed to be an 'unformated' number. For example,
{{formatnum:10,00}}
→ 10,00 so:
{{currency/old|10,00}}
→ {{
currency/old|10,00}}
{{
currency}}
simply enforces the rule that was already in place:
{{currency|10,00}}
→ {{currency}} – invalid amount (
help){{currency/old}}
so is not supported by {{currency}}
. The question then is, what is the list of appropriate 'words' that can follow the number in the |<amount>
parameter?
{{formatnum:rabbits 10000 rabbits}}
→ rabbits 10,000 rabbits – doesn't care; should {{currency}}
similarly not care?From an editor perspective, it's hard to read templates like this {{currency|10000000|NK}} Is it 1, 10 or 100 million? Easy to make a mistake. That's why commas for numbers were invented along with paragraph breaks, periods and other punctuation (the Romans had none). Less work for editors if it displayed with commas, if it's not too much programming work. The expanded word version should be an optional switch. For malformed numbers (10,00) it should give an error since the program can't determine if that should be 1000 or 10,000 or 10.00 -- Green C 03:05, 20 April 2016 (UTC)
I spent half an hour at lunchtime teaching myself the basics of LUA and created ConvertStringToNumeric as a LUA module and a wrapper template to convert such things as 'million/billion/etc'
{{ConvertStringToNumeric|1000}}
{{ConvertStringToNumeric|10 million}}
{{ConvertStringToNumeric|10 billion}}
{{#expr:{{ConvertStringToNumeric|1.23 million}}}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|SGD}}
→ {{currency}} – invalid amount (
help)Sadly, my knowledge of LUA is still at the beginner stage and I don't know how to make the existing LUA currency module call ConvertStringToNumeric . Stepho talk
{{currency|1.23|SGD}} million
{{currency|1.23|PLN}} million
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|SGD}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|SGD}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|SGD}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|SGD}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|cve}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|cve}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|cve}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|cve}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|PLN}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23 million}}}}|PLN}}
{{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|PLN}}
→ {{currency|{{#expr:{{ConvertStringToNumeric|1.23}}}}|PLN}}
|amount=
has a quantifier (is that the right term?) should that not remain as part of the rendered output? The quantifiers are often used to make large numbers more readable, right? Why then would we want to convert a readable form into one that is arguably more difficult to read, even when that converted form is properly formatted?{{currency|1000 million|gbp}}
I have created {{
currency/sandbox}}
and
Module:Currency/sandbox. To the latter I have added code that allows the module to accept properly formatted, comma-separated numbers in the template's |amount=
parameter:
{{currency/sandbox |1000}}
– no commas
{{currency/sandbox |1000.00}}
– no commas
{{currency/sandbox |1,000,000,000}}
– properly placed commas
{{currency/sandbox |1,000,000,000.01}}
– properly placed commas
{{currency/sandbox |$1,000,000,000}}
– extra text
{{currency/sandbox |,1000}}
– misplaced comma
{{currency/sandbox |1000,}}
– misplaced comma
{{currency/sandbox |1000,.00}}
– misplaced comma
{{currency/sandbox |10,00}}
– misplaced comma or missing digit
{{currency/sandbox |1000,000,000}}
– missing comma
— Trappist the monk ( talk) 13:07, 21 April 2016 (UTC)
Looks good! I've never heard of money spoken of in quadrillions (or rabbits). -- Green C 00:41, 22 April 2016 (UTC)
Hi
I'm trying to add this template to text in the article for Phase-out of lightweight plastic bags, I would like to use it where it says '5 pence' but I get an error, I think it is because I'm trying to use a value less than one (0.05).
Thanks
-- John Cummings ( talk) 16:05, 29 August 2017 (UTC)
{{currency|0.05|GBP}}
gives
£0.05, which is correct. {{currency|0.05|pence}}
gives an error because pence is not in the list of currencies.
Stepho
talk
23:09, 29 August 2017 (UTC)Is there any way currency formats numbers with gaps as per MOS:DIGITS? For example, to work in harmony with template:val? Betterkeks ( talk) 01:15, 20 July 2018 (UTC)
|fmt=
where values assigned to that parameter are the same as at {{
val}}
with slightly different meanings. At {{
currency}}
, the default grouping separator is the comma, at {{val}}
, the default grouping separator is a gap.
{{currency/sandbox|1234567|euro}}
– |fmt=
omitted
{{currency/sandbox|1234567|euro|fmt=}}
– |fmt=
present but empty
{{currency/sandbox|1234567|euro|fmt=bob}}
– |fmt=bob
is nonsense value
{{currency/sandbox|1234567|euro|fmt=commas}}
– |fmt=commas
included for completeness; does nothing
{{currency/sandbox|1234567|euro|fmt=gaps}}
– |fmt=gaps
replaces default comma grouping separators with narrow gaps
{{currency/sandbox|1234567|euro|fmt=none}}
– |fmt=none
removes default comma grouping separators
If I understand MOS:CURRENCY correctly, the “first mention of a particular currency should use its full, unambiguous signifier (e.g. A$52), with subsequent references using just the appropriate symbol (e.g. $88), unless this would be unclear”. Is there any way to make your template do this? Betterkeks ( talk) 11:48, 6 August 2018 (UTC)
'AUD2' = {page = 'Australian dollar', plural = 's', position = 'b', symbol = '$'},
Is there any way to tell your template to output scale (for example, AU$100 million), where million, billion and so on are “spelled out on first use, and (optionally) abbreviated M or bn (both unspaced) thereafter” as per MOS:CURRENCY? Betterkeks ( talk) 11:53, 6 August 2018 (UTC)
{{currency|100|aud}} million
→
A$100 million{{currency|100|aud|linked=no}}M
→ A$100M|fmt=
to add a quantifier:
{{convert|{{#expr: (2592300 / 10^6) round 2 }}|e6t|e9lb|abbr=off}}
for “2.59 million tonnes (5.7 billion pounds)”.{{
and }}
markup; it would be nice, but, alas, not possible. This is why I suggested co-opting |fmt=
; so that editors can specify how the template renders. There is some merit in your spacing argument. I guess I don't think that we should use e6
and e9
for template parameter values or use exponential notation in template renderings unless they are in common use in articles that would use this template.Why does {{currency|6,000,000|ISK}}
return
ISK 6,000,000? I've never in my life seen "Íkr" used. The English currency abbreviation is ISK. In Icelandic, the abbreviation is "kr". I guess you might write "Íkr" if you were writing, in Icelandic, abbreviations of many different types of krónur in the same place - e.g. listing some prices in "Íkr", others in "Dkr", others in "Nkr", etc. But that's anything but common. --
Rei (
talk)
08:54, 14 August 2019 (UTC)
Hi, is it intentional that this template doesn't support any historic currencies, even ones that do have ISO 4217 codes?
If it is, then this should probably be noted in the documentation, as it's nowhere there currently.
If not, well, the Spanish peseta with code ESP doesn't work :)
Cheers, Naypta ☺ | ✉ talk page | 22:13, 2 May 2020 (UTC)
{{currency|1000|ESP}}
displays as 1,000
₧The currency template for
Pakistani Rupee uses the alphabetic symbol ‘Rs’. It would be more appropriate if the character ₨
was used. The space between the currency sign and the amount should also then be absent.
Idell (
talk)
11:24, 4 June 2020 (UTC)
{{currency|100|PKR}}
now gives
₨100.
Stepho
talk
13:26, 4 June 2020 (UTC)An editor has identified a potential problem with the redirect Template:Currency/new and has thus listed it for discussion. This discussion will occur at Wikipedia:Redirects for discussion/Log/2022 January 7#Template:Currency/new until a consensus is reached, and readers of this page are welcome to contribute to the discussion. Gonnym ( talk) 11:33, 7 January 2022 (UTC)
I find it unusual and disheartening that the abbreviation "STG" for sterling is not supported by this template's list of ISO code aliases, even though "RMB" and even "US$" are supported and unlike many ISO codes "GBP" is not even an accurate abbreviation of the currency's name. Could this be rectified please?
I would like to propose the following additional parameters, not necessarily replacing any existing ones, which I consider inappropriate for many applications, particularly for historical references from before the ISO standard even existed.
{{currency|1,000|STG}} Producing:
and:
{{currency|1,000|STERLING}}
Producing:
TheCurrencyGuy ( talk) 13:41, 12 June 2022 (UTC)
{{currency|1,000|STERLING}}
→
£1,000{{currency|1,000|STG}}
→
£1,000{{
currency/sandbox}}
from {{
currency}}
and make sure that {{currency/sandbox}}
invokes Module:Currency/sandbox. Use
Template:Currency/testcases to see if your updated sandboxen template and modules are working. When everything is working as it should, then you can do your experiments.Would it be possible for someone to add a modified version of the Cape Verde escudo code for use with the Portuguese escudo which used the same notation ($ in place of the decimal point), thanks. TheCurrencyGuy ( talk) 19:07, 5 July 2022 (UTC)
Reading the Manual of Style for MOS:CURRENCY, I think there is an issue with how the South African rand (code ZAR) is displayed. Because the currency abbreviation is entirely alphabetic and contains no numeric characters, shouldn't it have a space between the currency abbreviation R and the amount of currency as per the MOS? If so, there is a typo on the MOS:CURRENCY page. Please correct me if I'm wrong, as I don't have much experience working with templates. Somers-all-the-time ( talk) 12:14, 3 August 2022 (UTC)
{{currency|500|ZAR}}
→
R 500Many of the templates have only limited sets of options, so I would like to propose a basic standard for them (each currency could of course have its coding tailored to its own peculiarities). I have already prepared a possible set for each current template.
ANY CURRENCY
Basic use
{{XXX}} produces ¤ (simple currency sign)
{{XXX|123.45}} produces ¤123.45
Basic w/link
{{XXX|link=yes}} produces ¤ (simple currency article link)
{{XXX|123.45|link=yes}} produces ¤123.45
Include disambiguating abbreviation
{{XXX|123.45|long=no}} produces ¤123.45 an.cur.
{{XXX|123.45|long=no|link=yes}} produces ¤123.45 an.cur.
Verbal representation
{{XXX|123.45|long=yes}} produces ¤123.45 any currency
{{XXX|123.45|long=yes|link=yes}} produces ¤123.45 any currency
ISO code
{{XXX|123.45|ISO=yes}} produces 123.45 XXX TheCurrencyGuy ( talk) 07:11, 6 August 2022 (UTC)
Please contribute to the discussion at Template talk:US$#minus sign. Stepho talk 00:33, 30 December 2022 (UTC)
The ¥ symbol has for a very long time been construed in the west as the Japanese yen, without a second thought. When Stepho-wrs first raised this ( above) nearly ten years ago, that was the widespread assumption. Increasing prominence of its use for the Chinese yuan makes it timely, I think, to raise the question as to whether this template should disambiguate it invariably: always and only JP¥ or CN¥. This would be consistent with the way the template currently handles eg USD and AUD ( US$1,000 , A$1,000). I suggest that it is time that we do.
Do we need a discussion at talk:MOS around an update to MOS:CURRENCY first? I'm thinking of something like the current text about the $ sign, but without any equivalent of the USD as default meaning in non-national contexts.
Comments? 𝕁𝕄𝔽 ( talk) 10:33, 20 August 2023 (UTC)
¥
is an alias of JPY
; what happens to that?¥
just like we handle $
. If at present an unqualified $ defaults to USD, then it makes sense for an unqualified ¥ to default to JPY. My feeling is that this is the appropriate line to take right now: in ten years time, who knows but for now we really should at least get started down the road of equal treatment and add support for CN¥.CN¥nnnn
, it produced ¥nnnn RMB
. Gross! I have reverted it.
𝕁𝕄𝔽 (
talk) 07:31, 21 August 2023 (UTC) revised --
𝕁𝕄𝔽 (
talk)
07:46, 21 August 2023 (UTC)Why does {{currency|1|CAD}}
produce
CA$1 and not
CA$1 like it should from the style? That's how the page linked even stylizes it as CAD, matching it's
ISO 4217 code.
microbiologyMarcus (
petri dish•
growths)
20:41, 1 November 2023 (UTC)
{{
CAD}}
and {{
CA$}}
.
Stepho
talk
22:29, 1 November 2023 (UTC)
There is no standard disambiguating form, but the abbreviations Can$, CA$ and C$ are frequently used for distinction from other dollar-denominated currencies (though C$ remains ambiguous with the Nicaraguan córdoba). [1] [2] [a]
Apologies for the late reply - the real world sometimes keeps me busy.
I have asked at
Wikipedia_talk:Canadian Wikipedians' notice board#Currency and
Talk:Canadian dollar#currency template for comments. After all, they have more skin in this game than me.
Stepho
talk
22:44, 1 December 2023 (UTC)
After giving people plenty of notice and time to comment, CA$ seems to be the consensus, so I have changed the template to use this. Stepho talk 23:47, 9 December 2023 (UTC)
References
In an English document, when you need to specify the type of dollar (Canadian, American, Australian, etc.), the Translation Bureau recommends using the symbol Can$ to represent the Canadian dollar. ... The shorter variant C$ is another symbol frequently used for the Canadian dollar. However, the Translation Bureau does not recommend this symbol, since it has a slight risk of ambiguity: it is also used to represent the Nicaraguan córdoba oro, and occasionally the Cayman Islands dollar as well.
Notes
Kia ora, the template currently does not support the New Zealand Pound. This is a defunct currency used in New Zealand between 1840 and 1967. Because of the late switch to decimal currency a lot of articles about the history of New Zealand need to express numbers in pounds, but the currency template currently does not support that.
The commonly used short symbols for the currency are £ or £NZ. I would prefer to used NZ£, because this is consistent with the current format for NZ$ that is rendered by the template.
I would suggest that the code should be NZP because this does not appear elsewhere in ISO 4217 and is unlikely to result in future conflicts with the standard. If possible, I think the strings "New Zealand pound" and "NZ pound" should also be acceptable.
I'm happy to contribute any necessary underlying lua code and test cases for this, though I don't know where any of that is hosted or editable. David Palmer aka cloventt ( talk) 22:13, 17 April 2024 (UTC)
Those who participated in the Japanese Yen vs Chinese Yuan discussion, @ JMF, Trappist the monk, and Beland: I've restored Module:Currency/Presentation at its sandbox ( perma) back to Aug 2022, before banned user TheCurrencyGuy changed the whole thing without consensus. I've implemented the changes of subsequent editors. Here is a diff of what that looks like if we mirror the sandbox to the main page.
If there aren't any issues, then I suggest we restore. ~~ lol1 VNIO (I made a mistake? talk to me) 17:49, 19 May 2024 (UTC)
currency_properties{}
. I found DEM
, DEM2
, and DM
. Those should be moved or deleted as appropriate. Otherwise, I favor restoration.So, I was using the currency template on the "International versions" section on the page for Deal or No Deal, and I was using it with the Estonian kroon, the Slovak koruna, and the Slovenian tolar, and I got error messages, but I didn't when I used it with the Croatian kuna and the Lithuanian litas. I just happened to notice the inconsistency, and I just wanted to share it, that's all. GameShowWikiGuy ( talk) 03:36, 2 July 2024 (UTC)
Inclusion in the template does not rely on it being currently in use in the real world. If the currency is being mentioned frequently enough in WP articles then that is good enough to put it here. Stepho talk 23:21, 9 July 2024 (UTC)