Template:Urldecode/doc
Appearance
This is a documentation subpage for Template:Urldecode (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template undoes the transformation of magic word {{urlencode:}}
. For example, {{urlencode:Côte d'Ivoire}}
produces C%C3%B4te+d%27Ivoire
, while {{urldecode|C%C3%B4te+d%27Ivoire}}
or {{urldecode|{{urlencode:Côte d'Ivoire}}}}
produces Côte d'Ivoire
.
An optional second argument specifies encoding QUERY
, PATH
, or WIKI
(case-insensitive). These are the same three encodings supported by the magic word. The difference is that QUERY
decodes +
as a space, WIKI
decodes _
as a space, and PATH
does neither. Default is QUERY
.
Examples
[edit]markup | produces |
---|---|
|
|
|
|
|
|
|
|
Internals
[edit]This template invokes Module:Urldecode.