Extension:DynamicPageListEngine/Lua

Lua library
All functions explained below take a single argument which is an associative array of parameters. The recognized parameters are explained in Usage.

mw.ext.dpl.getFullpagenames
Select and sort pages according to the parameters and return an array of full page names.

mw.ext.dpl.getPagenames
Select and sort pages according to the parameters and return an array of page names without namespace. This is useful if you know the namespace in advance because you have specified it in the arguments.

mw.ext.dpl.getPages
Select and sort pages according to the parameters and return an array of associative arrays, each of which represents a page. The latter contain the following items which have the same meaning as the corresponding properties of mw.title objects:. In addition, the following items are provided:
 * length: Uncompressed length in bytes of the page's current source text.
 * categoryadd: Timestamp of addition to the first category specified with the  parameter, if any.
 * categoryaddx: Timestamp of addition of the first page specified with the  parameter, if any, to the selected category.
 * counter: Page view counter, unless counters are disabled.
 * sortkey: Sort key in the first category, if any, provided that DynamicPageListEngineFeatureExtra is enabled.
 * extra: Extra information given with sort key, if any, provided that DynamicPageListEngineFeatureExtra is enabled.
 * sortkeyx: Sort key in the category of the first page specified with the  parameter, if any, provided that DynamicPageListEngineFeatureExtrax is enabled.
 * extra: Extra information given with the sortkeyx sort key, if any, provided that DynamicPageListEngineFeatureExtrax is enabled.