Module:Urldecode

local p = {}

function p.urlDecode( frame ) local enctype = frame.args[2] if (frame.args[2] ~= nil) then enctype = mw.ustring.upper(enctype) if ((enctype == "QUERY") or (enctype == "PATH") or (enctype == "WIKI")) then return (mw.uri.decode(frame.args[1],frame.args[2])) end end return (mw.uri.decode(frame.args[1])) end

return p