Feature summary (what you would like to be able to do and where):
Add a lua module to the code so that DPL can be called directly, returning a list of pages as a Lua table.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
In a couple modules, I use DPL, format as minimally as possible, and then have to subsequently split the output so I can do operations on a list of pages. A simple example of doing this is here: https://kanrikyara.miraheze.org/wiki/Module:Character_credits
Benefits (why should this be implemented?):
First, we don't have to worry about the parser, so no need for funny characters like broken pipes.
Second, this will be a minor performance and memory improvement, as we're not creating so many strings, and looping over them less times.
Third, we can make an interface which is overall cleaner than the current one. DPL becomes a library for building other tools, as well as a tool itself. It should be possible to separate the page selection operations from the output formatting ones.
Feature summary (what you would like to be able to do and where):
Add a lua module to the code so that DPL can be called directly, returning a list of pages as a Lua table.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
In a couple modules, I use DPL, format as minimally as possible, and then have to subsequently split the output so I can do operations on a list of pages. A simple example of doing this is here: https://kanrikyara.miraheze.org/wiki/Module:Character_credits
Benefits (why should this be implemented?):
First, we don't have to worry about the parser, so no need for funny characters like broken pipes.
Second, this will be a minor performance and memory improvement, as we're not creating so many strings, and looping over them less times.
Third, we can make an interface which is overall cleaner than the current one. DPL becomes a library for building other tools, as well as a tool itself. It should be possible to separate the page selection operations from the output formatting ones.