Page MenuHomePhabricator

A cross-wiki "What links here" (aggregate local iwbacklinks from wikis)
Open, LowPublicFeature

Description

Author: andreengels

Description:
Could it be made possible (perhaps as part of the database changes for 1.5?) to
show interwiki-links TO a page? And even more important: Could it be shown for
images on WikiCommons which wikis are using that image?


See Also:
T68293: Make a special page to expose iwbacklinks
T14833: Provide Special:ExternalLinksFromHere which displays in-line links from Wikipedia, Wikibooks, commons, meta, etc.


Proposed in Community-Wishlist-Survey-2016. Received 38 support votes, and ranked 38 out of 265 proposals. View full proposal with discussion and votes here.

Details

Reference
bz1886

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:17 PM
bzimport set Reference to bz1886.
bzimport added a subscriber: Unknown Object (MLST).

MediaZilla wrote:

This sounds similar to Bug #1394, although being more general. Could these Bugs/Requests for features be merged
or mor clearly separated? It's not exactly a duplicate.

andreengels wrote:

Hmmm, yes, they are rather similar. The main similarity is in what is needed for
them - both need something to search all databases rather than just one,
although this one would need a special field for interwiki-links too. Once those
have been implemented (which might be hard, I suppose, to do in a not-too-slow
manner), both can easily be implemented.

webmaster wrote:

I'd say you might need a few fields, or maybe even its own table would be best.
Having a separate table would make for a cleaner implementation and you could have a whack of indices to speed queries along nicely.

I think images and articles could be both served by this table...

How has MW changed since April '05, that would help or hinder the resolution of this bug?

robchur wrote:

There are some recent musings related to this (well, more bug 10237, but still relevant) at http://www.mediawiki.org/wiki/User:Robchurch/Interwiki_existence_checks.

Adding "whatlinkshere" to summary for better searching.

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

The Commons part has been solved by GlobalUsage.

However a global "WhatLinksHere" to see incoming links from all wikis, doesn't exist yet.
Perhaps a similar thing called GlobalLinks ?

sumanah wrote:

Jan Ainali suggested:

Global Link Search:

A tool that does what Special:LinkSearch does, but on all projects and languages.

Need to have:
Total number of links.

Nice to have:
Total number of links per project in one table.
Total number of links per language in one table.
Total number of links per project and language in one table.
From the last table, links to each "local" Special:Linksearch.
All links in one table order by number of occurencies descending.
Languages/projects with no links could be left out of the tablee instead of showing "0".

in https://wikimania2011.wikimedia.org/wiki/Talk:Developer_Days

My suggestion is related, but I was mostly curious about external links i.e. showing links to a specific external website. But perhaps, if done in a general way, that wish could be solved by this issue.

Note, there is now interwiki stuff in the api:

All links to wikibooks using b prefix: https://en.wikipedia.org/w/api.php?action=query&list=iwbacklinks&iwblprefix=b

All interwikis on main page:
https://en.wikipedia.org/w/api.php?action=query&prop=iwlinks&titles=Main%20Page

There's not really any special page web interface to this though that i am aware of...

Of course doing this in a cross wiki fashion (anything that links to this specific page from any other wiki) is much harder.

sumanah wrote:

Jan, did you say that you were able to talk with Timo about this a few days ago? What was the result?

content hidden as private in Bugzilla

(In reply to comment #11)

Jan, did you say that you were able to talk with Timo about this a few days
ago? What was the result?

We did talk, and there is a tool on the toolserver for that. But :

(In reply to comment #8)

Jan Ainali suggested:

Global Link Search:

... that is about external links, this bug is about interwiki links
(http://example.org vs. [[x:foo]])

To keep these issues separated, I started https://bugzilla.wikimedia.org/show_bug.cgi?id=38405 for the Global LinkSearch.

Of course, before we have a cross-wiki one. We should first have a local wiki one.

See T68293 (bug 66293).

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:24 AM
This task was proposed in the Community-Wishlist-Survey-2016 and in its current state needs owner. Wikimedia is participating in Google Summer of Code 2017 and Outreachy Round 14. To the subscribers -- would this task or a portion of it be a good fit for either of these programs? If so, would you be willing to help mentor this project? Remember, each outreach project requires a minimum of one primary mentor, and co-mentor.

Removing the Possible-Tech-Projects tag as we are planning to kill it soon! This project does not seem to fit in the Outreach-Programs-Projects category in its current state, so I am not adding that tag right now!

DannyS712 changed the subtype of this task from "Task" to "Feature Request".Mar 29 2020, 9:03 PM

Another use case for a generalized 'whatLinksHere' -- seeing where a tabular data file is used?

Note, there is now interwiki stuff in the api:

All links to wikibooks using b prefix: https://en.wikipedia.org/w/api.php?action=query&list=iwbacklinks&iwblprefix=b

All interwikis on main page:
https://en.wikipedia.org/w/api.php?action=query&prop=iwlinks&titles=Main%20Page

There's not really any special page web interface to this though that i am aware of...

Of course doing this in a cross wiki fashion (anything that links to this specific page from any other wiki) is much harder.

Hmm. I can almost see how to do this the slow way: just ask all the wikis. But this can't possibly work for e.g. multilingual interproject links, since the wiki containing the link only knows about the first prefix, and then the rest are all HTTP redirects :-(. I think it'd require a quite substantial change to interwiki link semantics (and implementation) to get anything really useful here. (Hopefully, this could be done without actually screwing up any of the actual links ...)