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.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2312faa7823ada9

Jump to content

Module:Ifexist/sandbox

From Wikipedia, the free encyclopedia
--[[
     Add your expirimental module code here
--]]
local p = {} -- represents p as a code for packages

function p.main(frame) -- package name = main, (frame) = global frame
 title = frame.args[1] -- parameter 1
 thenthis = frame.args[2] -- parameter 2
 elsethis = frame.args[3] -- parameter 3
--[[
     If this then return this else return this
--]]
 if mw.title.new(title).exists == true then
 return thenthis
  else
   return elsethis
 end
--[[
     You can use the magic word ({{#ifexist:title|thenthis|elsethis}})
--]]
end
return p