Last modified: 2011-03-13 18:05:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5955, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3955 - Template or magic word handling for monetary values (currency conversion/inflation rates)
Template or magic word handling for monetary values (currency conversion/infl...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-13 20:34 UTC by Ben FrantzDale
Modified: 2011-03-13 18:05 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ben FrantzDale 2005-11-13 20:34:39 UTC
I mentioned this idea at the Village pump, but it appears it can't be
implemented easily with plain old templates:

A problem with mentioning dollar ammounts in a dictionary is inflation—the
meaning of a dollar changes so seeing that there was a $33 million bond to
finance the Golden Gate Bridge in 1933 means almost nothing to me. I would like
to be able to enter a dollar ammount like this: {{currency USD|33000000|1933}}
and then see “$33 million ($447 million in 2005 dollars)” or something similar.
Alternately this could be done like ISBN substitution, without any user
intervention.

This could be extended to a locale setting so one might see “$33 million (€382
million in 2005 euros)”.
Comment 1 Catherine Munro 2005-11-14 02:38:26 UTC
Another interesting suggestion in reply on the Village Pump:
"I agree this is a good idea. It would be hard to maintain this for many
currencies though. My idea would be to make it like the ISBN special page.
Dollar amounts formatted a certain way would be linked to a page where they are
automatically inflation adjusted to today's dollars and are then converted to
many world currencies. It'd be very useful. Broken S 02:39, 13 November 2005 (UTC)"
Comment 2 David E. Siegel 2005-11-14 16:13:21 UTC
I agree this would be desireable. it would obviously require soem sort of 
table of relative infaltion ratios from specified years to the current 
year, and since infaltion amounts vary in different currecies, a tablew 
would be needeed for each currency supported. Since different sources 
quyot different infaltion rates, we would need to agree on a source for 
the standard table. ~~~~
Comment 3 Ævar Arnfjörð Bjarmason 2005-11-14 16:18:35 UTC
Isn't there some offsite page which provides this? Can't you just link to that?
Comment 4 Ben FrantzDale 2005-11-15 02:20:26 UTC
As for ISBN-style automatic linking, I don't see how that would let you include
the year in the wikitext. Automatically linking all monitary ammounts to a big
table would work, but isn't nearly as user-friendly as providing the information
inline.

As for the template approach, how difficult would it be to add a magic template
that called a function in MediaWiki rather than substituting text?

Alternately, might it be possible to implement this sort of thing using
JavaScript (ala http://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups)
for the arithmetic? (Ugly, I know.)
Comment 5 Brion Vibber 2005-11-16 22:35:40 UTC
These conversions are an art, not a science. Do it manually.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links