Module:Sandbox/Lemondoge/testRetrievePageContents

local p = {}

function p.main(frame) local page = mw.title.getCurrentTitle:getContent local holder = {} for link in page:gmatch("%[%b[]%]") do		holder[#holder + 1] = link end return frame:preprocess("Links on this page: *" .. table.concat(holder, "*\n")) end

return p