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.