Last modified: 2014-02-12 23:35:57 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 T46795, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44795 - On Mouse over on dates, show relative time period to date
On Mouse over on dates, show relative time period to date
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.21.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-08 11:11 UTC by sigol
Modified: 2014-02-12 23:35 UTC (History)
4 users (show)

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


Attachments

Description sigol 2013-02-08 11:11:22 UTC
When hovering over a date in a wiki page, it would be really nice if the software showed how long ago (or how far in the future) the date was.

For example, if I hover over 2 December 1973, it showed something like "39 years, 1 month and 4 days ago".

And if I hover over "2 December 2023", it showed something like "10 years, 10 months and 15 days in the future".

This would help us quickly get an idea of the time that has passed since the event, which helps improve your understanding of a particular piece of history.

Anyways, just my two pennies.
Comment 1 Andre Klapper 2013-02-11 15:06:48 UTC
Thanks for the idea. It's an interesting one but would collide with web browsers that show the target URL on mouseover, and many such dates are weblinks. So I don't think this is feasible.
Comment 2 sigol 2013-02-25 22:16:03 UTC
Hi Andre, thank you for your feedback. I get what your saying. You're right, many dates are hyperlinks. I hadn't thought of that.

What about a small icon next to a date. When you click on (or hover over?) the icon, you get the relative date box.

I think this is an important issue. Many people are a bit date-lexic, in that they struggle to visualize dates in their mind.

I personally have no concept of 1755 for example. If you can quantify it in terms of years ago/years ahead, this would make Wikipedia more inclusive for those of us who find it hard to visualize dates in our mind.
Comment 3 sigol 2013-02-25 22:17:15 UTC
Apologies for the terrible grammar with "your saying". I should be shot at dawn.
Comment 4 Andre Klapper 2013-02-27 23:34:54 UTC
Currently there are no plans to provide this idea in the MediaWiki code, as your idea might only be useful for a small amount of users. However it could always become an extension which could be provided by third party developers!
See http://www.mediawiki.org/wiki/Manual:Developing_extensions for more info.
Comment 5 Quim Gil 2013-03-09 19:21:30 UTC
In fact MediaWiki core doesn't know when a text string is a date. Wikipedia uses a template for this: http://en.wikipedia.org/wiki/Template:Date

Maybe the functionality you are requesting could be build on / around that template? The discussion should happen in that page. And this sounds like a WONTFIX here.
Comment 6 Quim Gil 2013-03-11 23:41:23 UTC
I just found a gadget (enabled at least in English Wikipedia) that does basically what you say, but only for dates in comments:

http://en.wikipedia.org/wiki/Wikipedia:Comments_in_Local_Time
Comment 7 Quim Gil 2013-03-12 05:29:09 UTC
And againas a coincidence I learned about the {{#time}} parser function:  https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time
Comment 8 Quim Gil 2013-11-19 23:35:43 UTC
MatmaRex, Krinkle, would you mind sharing your thoughts about this request.

My agenda here: seeing whether this could be a potential Google Code-in task

https://www.mediawiki.org/wiki/Google_Code-In

Also, is there a better component for this report?

Thank you.
Comment 9 Bartosz Dziewoński 2013-11-21 12:56:49 UTC
Per previous comments, this is rather impossible to do in general, but we could do that for e.g. dates of edits on contributions pages, dates on history pages, in logs etc. I have no particular opinion on whether this is a good idea, I suppose it can't hurt. Alas, I have no idea how hard/easy it could be, hopefully these dates are all generated in just one place in the code.

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


Navigation
Links