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

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
bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz65117.
bzimport added a subscriber: Unknown Object (MLST).
Prtksxna created this task.May 10 2014, 8:33 AM

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!

Jaredzimmerman-WMF triaged this task as Normal priority.Dec 3 2014, 12:28 AM
Jaredzimmerman-WMF set Security to None.
Ricordisamoa added a subscriber: Ricordisamoa.
Restricted Application added a subscriber: Steinsplitter. · View Herald TranscriptFeb 29 2016, 12:04 PM
ovasileva lowered the priority of this task from Normal to Low.Nov 23 2016, 5:33 PM
ovasileva added a subscriber: ovasileva.

Changing priority until decision is made on hovercards cross-wiki

ovasileva moved this task from Backlog to Next Up on the Page-Previews board.Dec 5 2016, 4:19 PM
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
Alex_brollo added a subscriber: Alex_brollo.EditedJul 22 2017, 5:49 PM

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.