Changes

MyWikiBiz, Author Your Legacy — Saturday September 28, 2024
Jump to navigationJump to search
452 bytes added ,  07:47, 16 July 2021
Pywikibot 6.4.0
local p = {}

function p.urlDecode( 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 p

Navigation menu