Module:Sandbox/KEmel49

local p = {}

function p.notify(frame)

local args = frame.args

local article = args.article or ""

local diff = args.diff or ""

local cite_format = args["cite_format"] or ""

local ogurl = args.ogurl or ""

local username = mw.title.getCurrentTitle().text

local out = {}

table.insert(out, "== Re: " .. article .. " ==\n\n")

table.insert(out, '20px Hello ' .. username .. ', This is to let you know that ')

if diff ~= "" then

table.insert(out, 'one of your recent edits')

else

table.insert(out, 'one of your recent edits')

end

table.insert(out, ' at \'\'' .. article .. '\'\' caused a citation error. ')

if cite_format ~= "" then

table.insert(out, 'you have added invalid url at {{Tl|' .. cite_format .. '}} template. ')

end

if ogurl ~= "" then

table.insert(out, 'Your url input was ' .. mw.text.nowiki(ogurl) .. '. ')

end

table.insert(out, 'Do not add invalid URLs and use preview before saving your edit. Happy editing.')

table.insert(out, ' ')

return table.concat(out)

end

return p