可在模块:LinkStatsape/doc创建此模块的帮助文档
-- Optionally add "https://statsape.com/" to url if it is not present.
local p = {}
function p.statsape_url(frame)
local base_url = "https://statsape.com/"
local support_url = "https://statsape.com/"
local url = frame.args[1]
local return_val
if (string.sub(url,1,string.len(base_url))==base_url) or (string.sub(url,1,string.len(support_url))==support_url) then
return_val = url
else
return_val = base_url .. url
end
return return_val
end
return p