Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Module:Keppel birthday

From Amaranth Legacy, available at amaranth-legacy.community
Revision as of 04:00, March 10, 2025 by Tesinormed (talk | contribs)

Documentation for this module may be created at Module:Keppel birthday/doc

local p = {}

-- libraries
local getArgs = require('Module:Arguments').getArgs
local keppelDate = require('Module:Keppel date').convert

local birthdays = {
	['Tethyr Bathylis'] = { lythryd = 12, day = 27 }
}

function p.main(frame)
	local keppelDate = keppelDate(os.time())
	for character, birthday in pairs(birthdays) do
		if birthday.lythryd == keppelDate.lythryd and birthday.day == keppelDate.day then
			return character
		end
	end
	return ''
end

return p