Edge Rewrite
// 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: a44eed676c97ee32

Jump to content

Module:Autocryptidbox

From Wikipedia, the free encyclopedia
local p = {}

function p.main(frame)
    local args = frame:getParent().args
    local taxon = args["taxon"] or "Unknown cryptid"
    local image = args["image"] or ""
    local caption = args["image_caption"] or ""
    local parent = args["parent"] or "Cryptids"
    local first_sighting = args["first_sighting"] or "Unknown"
    local subdivisions = args["subdivisions"] or ""
    local country = args['country'] or ''


local output = '{| class="infobox" style="background-color:#FFCCCC;"\n'
 output = output .. "|-\n| colspan=\"2\" style=\"text-align:center;\" | '''" .. taxon .. "'''\n"
    if image ~= "" then
        output = output .. '|-\n| colspan="2" style="text-align:center;" | [[File:' .. image .. '|250px]]\n'
        output = output .. '|-\n| colspan="2" style="text-align:center;" | ' .. caption .. '\n'
        output = output .. "|-\n| colspan=\"2\" style=\"text-align:center; background-color:#FFCCCC;\" | '''" .. taxon .. "'''\n"
local output = '{| class="infobox" style="background-color:#FFCCCC;"\n'
country = country
    end
    output = output .. '|-\n| Parent || ' .. parent .. '\n'
    output = output .. '|-\n| First sighting || ' .. first_sighting .. '\n'
    if subdivisions ~= "" then
        output = output .. '|-\n| Subdivisions || ' .. subdivisions .. '\n'
    end
    output = output .. '|}'
output = output 
    return output
end


return p