Page MenuHomePhabricator

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

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.


Version: unspecified
Severity: enhancement

Details

Reference
bz65117

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