Module:URLEncode
From The Joe Frank Wiki
Documentation for this module may be created at Module:URLEncode/doc
local p = {}
function p.encode(frame)
-- Retrieve the current page title directly
local title = mw.title.getCurrentTitle().text
-- Perform URL encoding
return mw.uri.encode(title, 'PATH')
end
return p