Difference between revisions of "Template:Urldecode/doc"

From "PTTLink Wiki"
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{Lua|Module:Urldecode}}...")
 
 
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
{{tl|urldecode}} reverses the transformation done by magic word <code><nowiki>{{urlencode:}}</nowiki></code> (''[[viz.]]'', [[Percent-encoding]]).
+
{{tl|urldecode}} reverses the transformation done by magic word <code><nowiki>{{urlencode:}}</nowiki></code> (''[[Wikipedia:viz|viz.]]'', [[Wikipedia:Percent-encoding|Percent-encoding]]).
 
:: <code><nowiki>{{</nowiki>{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}}<nowiki>|C%C3%B4te+d%27Ivoire}}</nowiki></code>&nbsp; would produce&nbsp; <code>{{urldecode|C%C3%B4te+d%27Ivoire}}</code>
 
:: <code><nowiki>{{</nowiki>{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}}<nowiki>|C%C3%B4te+d%27Ivoire}}</nowiki></code>&nbsp; would produce&nbsp; <code>{{urldecode|C%C3%B4te+d%27Ivoire}}</code>
  

Latest revision as of 23:07, 20 January 2022

Usage

{{urldecode}} reverses the transformation done by magic word {{urlencode:}} (viz., Percent-encoding).

{{Urldecode|C%C3%B4te+d%27Ivoire}}  would produce  Côte d'Ivoire