local p = {}
function p.listExistingPages(frame)
local output = ""
for i, title in ipairs(frame.args) do
if mw.title.new(title).exists then
output = output .. "* [[" .. title .. "]]\n"
end
end
-- Return the output
return output
end
-- Export the module
return p