Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module talk:Sandbox/Matroc/Testurlencode

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
  1. Testing an idea based on Lua request... http://en.wikipedia.org/wiki/Wikipedia:Lua_requests#Need_Lua_version_of_urlencode
  2. Did not create a template but it would look something like this:
    {{#invoke:urlencode|encode|{{{url|}}}|{{{link|}}}}}
  3. Call to template might look something like:
    {{encode|url=http://en.wikipedia.org/w/index.php?title=2%2B2%3D4&action=edit|link=A Link}}
  4. Direct Module invoke would look like:
    {{#invoke:Matroc/Testurlencode|encode|http://en.wikipedia.org/w/index.php?title{{=2}}%2B2%3D4&action{{=}}edit|A Link}}
  5. Direct Module invoke would look like:
    {{#invoke:Sandbox/Matroc/Testurlencode|encode|http://www.google.com/search%3Fq%3Dxyz|Google: xyz}}
  6. Direct Module invoke would look like:
    {{#invoke:Sandbox/Matroc/Testurlencode|encode|http://www.google.com/search%3Fq%3Dxyz|Google: xyz}}
  7. Direct Module invoke would look like:
    {{#invoke:Sandbox/Matroc/Testurlencode|encode|http://en.wikipedia.org/w/api.php?action{{=}}query&prop{{=}}revisions&rvprop{{=}}content&format{{=}}xml&titles{{=}}Main%20Page|API link}}

Start a discussion about improving the Module:Sandbox/Matroc/Testurlencode page

Start a discussion