Module:Keppel birthday: Difference between revisions
From Amaranth Legacy, available at amaranth-legacy.community
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
-- libraries |
-- libraries |
||
local getArgs = require('Module:Arguments').getArgs |
local getArgs = require('Module:Arguments').getArgs |
||
local keppelDate = require('Module:Keppel date'). |
local keppelDate = require('Module:Keppel date').convert |
||
local birthdays = { |
local birthdays = { |
||
| Line 10: | Line 10: | ||
function p.main(frame) |
function p.main(frame) |
||
local keppelDate = keppelDate( |
local keppelDate = keppelDate(os.time()) |
||
for character, birthday in pairs(birthdays) do |
for character, birthday in pairs(birthdays) do |
||
if birthday.year == keppelDate.year and birthday.lythryd == keppelDate.lythryd and birthday.day == keppelDate.day then |
if birthday.year == keppelDate.year and birthday.lythryd == keppelDate.lythryd and birthday.day == keppelDate.day then |
||
Revision as of 03:59, March 10, 2025
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'] = { year = 1112, lythryd = 12, day = 27 }
}
function p.main(frame)
local keppelDate = keppelDate(os.time())
for character, birthday in pairs(birthdays) do
if birthday.year == keppelDate.year and birthday.lythryd == keppelDate.lythryd and birthday.day == keppelDate.day then
return character
end
end
return ''
end
return p