On Wed, May 6, 2015 at 1:31 PM, Jack Phoenix <jack(a)countervandalism.net>
wrote:
I'm trying to build an autocompletion thingy that
suggests categories based
on user input using the opensearch API [1].
Sounds like
https://en.wikipedia.org/wiki/Wikipedia:HotCat
How can I totally strip out the "Category:"
part and pretend it doesn't exist and never did?
Hit api.php?action=query&meta=siteinfo&siprop=namespaces to get the
localized name of the Category namespace. Or you should be safe just
removing everything up to the first colon.
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation