Page MenuHomePhabricator

Make a special page to expose iwbacklinks
Open, LowPublic

Description

For a few releases now we have iwbacklinks. However, while it is exposed in the API, there is no special page for it.

This would be similar to Special:LinkSearch and Special:WhatLinksHere from the user perspective in that it takes a target (in this case an interwiki prefix and title), and paginates through pages on the current wiki that link to it.


See Also:
T3886: A cross-wiki "What links here" (aggregate local iwbacklinks from wikis)
T14833: Provide Special:ExternalLinksFromHere which displays in-line links from Wikipedia, Wikibooks, commons, meta, etc.

Details

Reference
bz66293

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:23 AM
bzimport set Reference to bz66293.
bzimport added a subscriber: Unknown Object (MLST).

For a few releases now we have iwbacklinks. However, while it is exposed in the API, there is no special page for it.

If someone added more information to the description, like 'which API', it would be easy for a potential contributor to fix this. Its tagged with good first task tag though.

For a few releases now we have iwbacklinks. However, while it is exposed in the API, there is no special page for it.

If someone added more information to the description, like 'which API', it would be easy for a potential contributor to fix this. Its tagged with good first task tag though.

I presume it's https://en.wikipedia.org/w/api.php?action=help&modules=query%2Biwbacklinks

Is this feature currently working?
The example link given at: https://en.wikipedia.org/w/api.php?action=help&modules=query%2Biwbacklinks
doesn't work: https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks
plus iwbacklinks doesn't appear in the dropdown menu at https://www.mediawiki.org/wiki/Special:ApiSandbox

If so, something needs to be fixed there.
If not, the manual page needs to be updated: https://www.mediawiki.org/wiki/API:Iwbacklinks

Wikidata?

That's because nothing on enwiki links to wikibooks:Test. It's not possible for API examples to give examples that will always give results every single time, many simply include a valid query that might need tweaking for the particular wiki you're on.

If you try it with no title, or with a title that is linked from enwiki, it works fine.

https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&list=iwbacklinks&iwblprefix=wikibooks
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&list=iwbacklinks&iwbltitle=0.999...&iwblprefix=wikibooks

plus iwbacklinks doesn't appear in the dropdown menu at https://www.mediawiki.org/wiki/Special:ApiSandbox

Yes it does.

screenshot.png (627×820 px, 41 KB)