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: a22c8d801a011709

Jump to content

Module:Sandbox/RexxS/GenerateIDs

From Wikipedia, the free encyclopedia
--[[
Module:GenerateIDs
--]]

p = {}

--[[ 
This generates the second ID,
which is the term in lower-case if it begins with an upper case letter,
or nothing otherwise.
--]]
function p.second(frame)
	local args = frame:getParent().args
	local term = args.id or args.term or args[1] or ""
	if term == "" then
		args= frame.args
		term = args.id or args.term or args[1] or ""
		if term == "" then return nil end
	end
	return (term:match("^%u.*$") or ""):lower()
end

return p