Last modified: 2014-02-19 14:52:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49137, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47137 - Add ability to generate a list of pages based on prefix to Scribunto/Lua
Add ability to generate a list of pages based on prefix to Scribunto/Lua
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 48176
  Show dependency treegraph
 
Reported: 2013-04-11 20:41 UTC by MZMcBride
Modified: 2014-02-19 14:52 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2013-04-11 20:41:22 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.
Comment 1 darklama 2013-04-21 00:47:11 UTC
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.
Comment 2 Gryllida 2014-01-24 00:43:53 UTC
Correct URL: https://meta.wikimedia.org/wiki/Module:Subpages

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links