Last modified: 2014-02-19 14:52:08 UTC
Looking at <https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual>, I don't see a way currently to generate a list of pages based on prefix. For example, I wanted to write a module that would take each page listed at <https://meta.wikimedia.org/wiki/Special:PrefixIndex/Global_message_delivery/Targets/> and generate output based on iterating over this generated list. Rather than using a generated list, I was forced to specify each page title. This isn't great, as pages may be added or deleted and I don't want to update such a list by hand. An equivalent to [[Special:PrefixIndex]] (or the MediaWiki API's list=allpages&apprefix=) inside Scribunto/Lua would be wonderful.
I've provided an iterator solution, but it has the same limitations as the prefixindex special page: https//meta.wikimedia.org/wiki/Module:Subpages I think an equivalent to the MediaWiki API's list=allpages&apprefix= in iterator form inside Scribunto/Lua would be better though.
Correct URL: https://meta.wikimedia.org/wiki/Module:Subpages