Module:Sandbox/Aidan9382: Difference between revisions

Content deleted Content added
fix use of _
fix (working on expanded content)
Line 217:
local out = ""
for line in content:gmatch("(.-)\n") do
local _,_,page = string.subfind(line, 26,"# %[%[:(.-3)%]%]")
--todo: make it a wikitable
local page = string.sub(line, 26, -3)
local found = false
for regex, reason in next,RegexToReason do
--mw.log(page)
if string.find(page, regex) then
out = out .. line .. " -> " .. reason .. "\n"