Jump to content

Module:Calendar widget

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RexxS (talk | contribs) at 14:06, 29 June 2019 (start Module to create Calendar widget with isleap function). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

--[[
Module to create Calendar widget

--]]

local p = {}

local function isleap(year)
	year = tonumber(year) or 0
	return year % 4 == 0
	and year % 100 ~= 0
	or year % 1000 == 0
end



function p.isleap(frame)
	return isleap(frame.args[1])
end


return p