Module:Genus

local p = {}

-- Used to call from #invoke. function p.genus(frame) local pframe = frame:getParent local args = pframe.args return p._genus(args) end

-- Used when calling from other Lua modules. function p._genus(args) if (args[1] == "yes") then return 1 - args[2] / 2 elseif (args[1] == "no") then return 2 - args[2] end end

return p