Page MenuHomePhabricator

Hovercards: Display popups across wikis (interwiki popups)
Open, LowPublicFeature

Assigned To
None
Authored By
Prtksxna
May 10 2014, 8:33 AM
Referenced Files
F22373608: moshup.jpg
Jun 19 2018, 1:09 PM
Tokens
"Love" token, awarded by Pcoombe."Love" token, awarded by Sophivorus."Like" token, awarded by Bene."Doubloon" token, awarded by Ricordisamoa.

Description

(Quoting Pyb from https://www.mediawiki.org/w/index.php?title=Talk:Beta_Features/Hovercards&workflow=ru7lut84ni79e2oe)

On Wikimedia Commons, Hovercards displays an extract of a Commons page. And doesn't work on [[:en:toto]], [[:fr:toto]]...

It would be interesting to display an extract of a wikipedia page.


See also

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:14 AM
bzimport added a project: Page-Previews.
bzimport set Reference to bz65117.
bzimport added a subscriber: Unknown Object (MLST).

This would be a super super cool feature.

Main technical issue I see is would be mapping the interwiki prefix to the API url. Especially since we can nest prefixes ([[d:n:b:w:User:Legoktm]] is a valid link).

After that, we just use JSONP to grab the extract/pageimage from the other wiki!

ovasileva lowered the priority of this task from Medium to Low.Nov 23 2016, 5:33 PM
ovasileva added a subscriber: ovasileva.

Changing priority until decision is made on hovercards cross-wiki

Jdlrobson added a subscriber: Jdlrobson.

We'd need some design input on this before moving forward.

Jdlrobson renamed this task from Hovercards: Display popups across wikis to Hovercards: Display popups across wikis (interwiki popups).Jun 21 2017, 12:25 AM

Just to be bold: there's an ongoing discussion into it.source about hovercards, it has been dreamed a "nested popup", based on a wikidata link; first popup level would list wikidata links to projects about the wikidata entity linked, second level would show the interwiki hovercard of any linked page.

Jdlrobson added a project: Services.

Adding services as enabling this would probably require access via CORs or locally to other projects. e.g. wikivoyage would need to be able to access summaries from wikipedia. I've not looked into whether this is possible yet :)

Pchelolo added a subscriber: Pchelolo.

Adding services as enabling this would probably require access via CORs or locally to other projects. e.g. wikivoyage would need to be able to access summaries from wikipedia. I've not looked into whether this is possible yet :)

Unless we make some crazy exception of how we handle things for the summary, this is a matter of a CORS to the summary endpoint indeed. Currently, we allow * in the REST API CORS:

curl -i https://en.wikipedia.org/api/rest_v1/page/summary/Tank | grep access-control

access-control-allow-origin: *
access-control-allow-methods: GET,HEAD
access-control-allow-headers: accept, content-type, content-length, cache-control, accept-language, api-user-agent, if-match, if-modified-since, if-none-match, dnt, accept-encoding
access-control-expose-headers: etag

I'm not quite sure that's enough access, maybe you need some other headers exposed, but IMHO it should be enough to make a CORS for summary.

Hello, who has the new information about this task? :)

Hello, who has the new information about this task? :)

If it isn’t mentioned on the task, it probably hasn’t had an update.

Sophivorus added a subscriber: Sophivorus.

This would be useful also for non-Wikimedia wikis linking to Wikipedia.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM

Change 917950 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/Popups@master] Show page preview popup on interwiki links

https://gerrit.wikimedia.org/r/917950

Change 917950 abandoned by Sbisson:

[mediawiki/extensions/Popups@master] Show page preview popup on interwiki links

Reason:

Will try a different approach next time.

https://gerrit.wikimedia.org/r/917950

SBisson added a subscriber: SBisson.

Will pick this up again in the future but try adding the capability in a distinct InterwikiPopup extension to keep it separate from the core feature.

This would be useful also for non-Wikimedia wikis linking to Wikipedia.

Big +1. I included that as part of the wishlist proposal (which I should've linked here earlier!) https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2023/Bots_and_gadgets/Make_Navigation_Popups_%26_Page_Previews_work_cross-wiki - to quote:
"Add a Cross-wiki feature, so that the sister projects can more directly benefit each other, and every MediaWiki installation can get a built-in Wikimedia reference."

Jdlrobson edited projects, added Page-Previews (Tracking); removed Page-Previews.

Now page previews supports extensibility the best way to do this would be to create a new extension: https://www.mediawiki.org/wiki/Extension:Popups#Extensibility