API: Allow finding log events and links to special pages
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 6 Jan 2017 17:49:27 +0000 (12:49 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 6 Jan 2017 18:07:29 +0000 (13:07 -0500)
commit47e2bec3611dd78fe8e4b47d2b69452c7ea77f96
tree5b9b0f710d0ba430118bc535b46259c4edf84a0d
parent5ef54fab528764a60f1cbe4b060ba25ac43138c2
API: Allow finding log events and links to special pages

Log events are sometimes attributed to a special page; it should be
allowed to use rcnamespace or lenamespace to filter for these.

It's also possible for special pages to be the targets of redirects, so
list=allredirects and prop=redirects should find them.

Maybe someday we'll record links to and transclusions of special pages
too (see T19597), so we may as well make it possible to query for those
as well via list=alllinks, list=alltransclusions, list=backlinks,
list=embeddedin, prop=linkshere, prop=transcludedin, prop=links, and
prop=templates.

NS_MEDIA has similar considerations: although we currently "normalize"
page links to the corresponding File and I don't think anything logs the
Media title rather than the File, transclusions and redirects do show
up in those tables.

Bug: T154319
Change-Id: I00348f83855c6c703b6bd6015f6d3bedc5bfd1c5
includes/api/ApiBase.php
includes/api/ApiHelp.php
includes/api/ApiParamInfo.php
includes/api/ApiQueryAllLinks.php
includes/api/ApiQueryBacklinks.php
includes/api/ApiQueryBacklinksprop.php
includes/api/ApiQueryLinks.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryRecentChanges.php