Board Thread:New Features/@comment-26522807-20160208225359/@comment-24473195-20160421180615

BeCutter wrote:

I would like to use features of Version 1.20. and later, (e.g. magic word PAGESINCAT with parameters like 'all', 'subcats', etc.) which are not available in 1.19. so far.

Is there any upgrade planed or already in progress?

I was looking into to create a module and just realized that it is entirely possible (and simple) to get this exact functionality right now without any upgrade at all:

-- Identical to the parserfunction local p = {} function p.main(frame) local args = require("Dev:Arguments").getArgs(frame) local cat = args[1] local prop = args[2] if cat and prop then return p._main(cat, prop) end end

function p._main(cat, prop) return mw.site.stats.pagesInCategory (cat, prop) end return p Using:

Note: This still performs a database query (an expensive function).

It seems to me that one path forward is adding more libraries to Lua. These are 100% easier to add than a full upgrade because they make use of core existing mediawiki libraries.