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 03:54, March 10, 2025 by Tesinormed (talk | contribs) (Created page with "local p = {} -- libraries local getArgs = require('Module:Arguments').getArgs local keppelDate = require('Module:Keppel date').invoke local birthdays = { { year = 1112, month = 12, day = 27, character = 'Tethyr Bathylis' } } function p.main(frame) local keppelDate = keppelDate(frame) for birthday in birthdays do if birthday.year == keppelDate.year and birthday.month == keppelDate.month and birthday.day == keppelDate.day then return birthday.character end en...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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').invoke

local birthdays = {
	{ year = 1112, month = 12, day = 27, character = 'Tethyr Bathylis' }
}

function p.main(frame)
	local keppelDate = keppelDate(frame)
	for birthday in birthdays do
		if birthday.year == keppelDate.year and birthday.month == keppelDate.month and birthday.day == keppelDate.day then
			return birthday.character
		end
	end
	return ''
end

return p