모듈:CheckURL
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|%s]]", frame.args[1], frame.args[2])
end
end
return p