On 8/8/15, Nicolas Vervelle
Is there a way through the API to list all possible URL that can be used
link to an article ?
For example, a siteinfo request for enwiki gives a few possible URL:
- with server and articlepath, you have URL like
- with server and script, you have URL like
But, is it possible to get all other possible URL ?
For example, the URL for the mobile website:
My goal is to detect external links in articles that could be replaced by
an internal link or a interwiki link.
Generally no... Lots of it is handled on the webserver level, and
MediaWiki doesn't even know.
e.g. Things like https://en.wikipedia.org/?curid=1234
theory]]) work on Wikipedia, but is really determined by how your web
server is set up.
And also all sorts of non-standard things, like
for backwards compatability with usemodwiki.
You've also got things like
May be helpful to you in terms of other domains.