Module:Sandbox/Motoko C. K./checkURL explained

local p =

function p.checkURL(frame)

local check_a = string.match(frame.args[1], "^https://") local check_b = string.match(frame.args[1], "^http://")

if check_a or check_b then return string.format("[%s %s]", frame.args[1], frame.args[2]) else return string.format("%s", frame.args[1], frame.args[2]) end

end

return p