I have a Lua module that parses pages with infoboxes and a returns a table with information from the infoboxes on the pages that match. (Viewable on this template.)
Right now, it renders a table with all of the items that match the query (this begins on line 68 of the module). How would I direct it to render a table for each page that matches the query, with the items inside?
For instance, I want a table with the four items on the page "Sweet Dumplings," then a table with the four items on the "Yak Cheese" page, then "Pancakes," etc. (Right now they're all in one table.)
(I know I can do this with separate DPL calls in the template using titlematch, but I would like it to be as automated as possible, without me having to edit the template to add a new DPL call each time that a new page is made.)