Page MenuHomePhabricator

Show summary of target page in link tooltips
Open, MediumPublicFeature


Author: kueikhan

Dear All,

This is not actually a bug report, rather an enhancement request.

I think it would be useful to have short descriptions to appear when I move over a link. Now I only see the link word itself. However, there could be the first sentence from the link’s main page instead, to describe the definition, so I wouldn’t have to go to the link to read it.

Thanks in advance.

Version: unspecified
Severity: enhancement
See Also:



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:13 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz26587.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for your enhacemente request (yes, this is the proper place).

That can be done with the popups gadget. I think that's a WONTFIX as a core feature.

Popups is pure JS, though, right? Something like this could perhaps be useful as an extension. Just a Simple Matter Of Programming it... :)

You still need javascript for it to work. And doing some pieces in php will lead you to caching madness™. Making a generic javascript wrapper extension could work, and seems a good idea, but that's a different feature.

Not necessarily, if you just used text-only tooltips. But I do agree, caching would be an issue. Not in the sense that it'd be difficult -- just purge all linking pages on every edit -- but in terms of performance. Still, some wikis might consider the performance hit worth it. (And it's not like the JS popups don't have performance issues of their own.)

This is a dupe of Bug 503, but it would be nice to bundle that piece of js as an extension, with any wikimedia specific parts removed.

Or alternatively, having an optional version of the gadgets extensions that bundles the really popular gadgets that are widely applicable (like popups) wrote:

*** This bug has been marked as a duplicate of bug 503 ***

Reopening, as bug 503 is about a specific JS implementation while the request here is more general. Meanwhile, here's a very quick proof-of-concept implementation with JS:

You almost certainly won't want to use that code as it is now (v0.1), but it demonstrates that showing page content in tooltips is possible without JS.

...and of course that should say "proof-of-concept implementation withOUT JS". :(

  • Bug 27189 has been marked as a duplicate of this bug. ***

efenna wrote:

(In reply to comment #10)

> *** Bug 27189 has been marked as a duplicate of this bug. ***

The current tooltip on mouseover shows the name of the link, but there would be
many instances when a short description would be helpful as well, like a one
sentence summary of a linked article, so that the user doesn't have to go to
the linked article in order to understand what it is.

I envisage that the short description is written on the page being linked to
(the target), and when the link is created on the 'current' page (eg
[[target|alias]] a flag can indicate if the description should show in the
mouseover, eg [[target|alias|hoverdesc]]

Hovercards is currently available as a Beta Feature on all wikis.
Please try it out, and give feedback on the talkpage there!

(bug 61167 tracks the deployment status)

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.