Allow API meta=siteinfo to return list of know variable IDs
authorBrad Jorsch <anomie.wikipedia@gmail.com>
Sat, 2 Jun 2012 20:34:18 +0000 (22:34 +0200)
committerReedy <reedy@wikimedia.org>
Thu, 5 Jul 2012 01:03:50 +0000 (02:03 +0100)
commit68597a13452820b6e457a3ee8e4f6fe2aa9da00d
treee1e52facce1ba3555960cc24f372f8034c1f97ca
parentc5d3a6a715514b895caf301d957cfa351c8e49ca
Allow API meta=siteinfo to return list of know variable IDs

To know whether something like {{foo}} is a template, variable, or
function, you have to first check if it's a magic word, and then look up
the magic word ID in the list of variables and the list of function
hooks. The API already can return the list of known magic word mappings
(siprop=magicwords) and function hooks (siprop=functionhooks), this
completes the set by allowing siprop=variables.

Change-Id: If13df9c3796ea6815393d847a3c6f70380bba58a
RELEASE-NOTES-1.20
includes/api/ApiQuerySiteinfo.php