Page MenuHomePhabricator

GeoShapes via Wikidata Query seems to fail creating the links
Closed, DuplicatePublic

Description

The example at mw:Help:Extension:Kartographer#GeoShapes via Wikidata Query seems to fail. Open the example, then click on the frame, and then click on California. A popup for Jerry Brown will be shown, but the link is red. This is wrong, the link should be blue. Inspecting the link you will find the page to be missing, but you can still open the page and it exists.

There is a thread on the discussion page, it could be about the same thing. Wikipedia links in the mapframe.

From T202993

Internal links in mapframes made by Extension:Kartographer in titles and descriptions are in many cases red links (red color, tooltip says "(page does not exist)", URL have "&redlik=1"), even when the page does exist. This happens when the titles and descriptions with the links comes from a SPARQL query. In other cases these links are blue, and I cannot see any system to which color a link has.

Examples on dawiki: In both examples the maps have both red and blue links, but all linked pages do exist.

From T202997

Summary
Maps using GeoShapes via Wikidata queries show redlinks in titles and descriptions in map markers and do not resolve to the specified wiki.

Description

It appears the interwiki prefix (like w: or wikipedia:) are not being concatenated correctly within a <mapframe>.

First reported here: https://www.mediawiki.org/wiki/Topic:Ujn44c42gfmjvur5

I was able to reproduce in my sandbox.

Changing the interwiki prefix to w: makes the links appear correctly, but instead of resolving the appropriate domain (en.wikipedia.org) they appear as links on the local wiki (in this case, MediaWiki.org)

Other inter wiki prefers like wg-en (?) seem to work (but obviously there is no article on that particular wiki).

Note: The same query present in the mapframe works on https://query.wikidata.org

Expected behavior
Maps using queries to create wikilinks within the title and description of markers should work consistently.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
jeblad added a subscriber: Yurik.