local p = ;local redr = require("Module:Redirect");function p.main(frame) local output = ""; local text = frame.args.text; local matcher = string.gmatch(text, "[^\n]+") while true do local p = matcher; if not p then return output; end -- p= p:gsub("^.*(Wikipedia:.-) %(.*$","%1") p = mw.text.trim(p) local q = mw.title.new(p):getContent if q ~= nil then q = q:gsub(".*content=","") local target = redr.getTargetFromText(q) if target and not (target