Pergi ke kandungan

Modul:Urldecode

Daripada Wikibuku

Functions

[sunting]
  • Function urlDecode reverses the transformation by magic word {{urldecode:}}.
{{#invoke:Urldecode|urlDecode|C%C3%B4te+d%27Ivoire}}  would produce  Côte d'Ivoire

local p = {}

function p.urlDecode( frame )
	return (mw.uri.decode(frame.args[1]))
end

return p