Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Module:Urldecode

Permanently protected module
From Wikipedia, the free encyclopedia
Module documentation[view] [edit] [history] [purge]

Functions

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

See also

The abovedocumentation istranscluded fromModule:Urldecode/doc.(edit |history)
Editors can experiment in this module's sandbox(create |mirror) and testcases(create) pages.
Subpages of this module.

localp={}functionp.urlDecode(frame)localenctype=frame.args[2]localret=nil;if(frame.args[2]~=nil)thenenctype=mw.ustring.upper(enctype)if((enctype=="QUERY")or(enctype=="PATH")or(enctype=="WIKI"))thenret=mw.uri.decode(frame.args[1],frame.args[2])endelseret=mw.uri.decode(frame.args[1])endret=string.gsub(ret,"{","{")ret=string.gsub(ret,"}","}")returnretendreturnp
Retrieved from "https://en.wikipedia.org/w/index.php?title=Module:Urldecode&oldid=1307155125"
Categories:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp