Module:WikiLinkEverything

This module is meant to be processed by putting "" into an existing page of flat text to deliver all Wikilinked text (nowiki) for you to copy and paste. For starting a new page from a Special: index that you can't directly access for example, or a list of place names most of which should exist etc.

local p = {}

function p.main(frame) local page=mw.title.getCurrentTitle if page then input=page.getContent(page) else return "error didn't get the page contents :(" end  input=mw.ustring.gsub(input,"","") --we don't want loops, etc.   input=mw.ustring.gsub(input,"(%S+)","%1")   return frame.preprocess(frame, " " .. input .. ) end

return p

-- I wonder if there's a way to put this directly back into an open edit window...