View source for Module:URL
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
--
-- This module implements {{URL}}
--
-- See unit tests at [[Module:URL/tests]]
local p = {}
function trim(s)
return (mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1"))
end
function safeUri(s)
local success, uri = pcall(function()
return mw.uri.new(s)
end)
if success then
return uri
end
end
function p._url(url, text)
000
1:0
Template used on this page:
Return to Module:URL.