DPLquery

DPLquery is a JavaScript library that generates JSON data queries with DPL. It enables data extraction from templates and categories. Note that DPL must be available on the wiki for the library to work.

1. Importing the script
To use DPLquery, you need to import it into your script. You can listen for the  event using.

2. DPL parameter configuration
The script registers a  constructor which creates an instance of. The constructor accepts configuration options like so: N.B: FANDOM uses DynamicPageList 2.3.0. Some parameters have been internally blacklisted in the library - see the library code if your query reports that error.

3. Querying your DPL data
After you create your new  object, use the   method to fetch your data. This requires an object with the following keys:
 * - template name without namespace
 * - array listing parameters to extract

There are two ways to retrieve the data from the query:
 * it accepts a second callback parameter
 * it returns a able jQuery Deferred object

Changelog

 * June 2, 2018
 * User:Speedit: Published on.

TODO

 * Reduce dependency on  method
 * Support for Lua output through some  parameter
 * Data dump automation through MediaWiki API