Extension:DynamicPageListEngine/Lua

Lua library
All functions explained below take a single argument which is an associative array of parameters. The recognized parameters are explanined 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, if any.
 * 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.