Category Reporter

From Freephile Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This page is a demo of using a Lua Module to process data from the mw.Api

While we can invoke the api via JavaScript, we wanted to try out a little bit of Lua, which in the end would also allow for integration with the ExternalData extension to be able to process and format data from other wikis outside this farm.

Example local Api query that could be easily manipulated in JavaScript. https://wiki.freephile.org/wiki/api.php?action=query&list=categorymembers&cmtitle=Category:Documentation&cmtype=page&cmlimit=5000&format=json