Módulo:Urldecode
Este módulo no tiene página de documentación[crear]
-- This function allows to translate the percent-encoding of web links and texts
local z = {}
function z.decode(frame)
local enctype = frame.args[2]
local ret = nil;
if (frame.args[2] ~= nil) then
enctype = mw.ustring.upper(enctype)
if ((enctype == "QUERY") or (enctype == "PATH") or (enctype == "WIKI")) then
ret = mw.uri.decode(frame.args[1],frame.args[2])
end
else
ret = mw.uri.decode(frame.args[1])
end
ret = string.gsub(ret, "{", "{")
ret = string.gsub(ret, "}", "}")
return ret
end
return z