Module:Wiki Welcome

local WikiWelcomeModule = {}

local currentTime = os.date('*t')

function WikiWelcomeModule.GetWikiWelcome(frame) local Holiday if currentTime.month == 1 and currentTime.day == 1 then Holiday = "Happy New Year" end if currentTime.month == 6 and currentTime.day == 14 then Holiday = "Happy National Skunk Day" end if currentTime.month == 12 and currentTime.day < 31 then Holiday = "Happy Holidays" end if currentTime.month == 12 and currentTime.day == 31 then Holiday = "Happy New Year's Eve" end if Holiday then return frame:preprocess("" .. Holiday .. " from ") end return frame:preprocess("Welcome to ") end

return WikiWelcomeModule