Jump to content

Module:Sandbox/Amire80-CEE1

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Amire80 (talk | contribs) at 18:19, 3 October 2020 (is_leap). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Testing something for the CEE 2020 conference

local p = {}

function p.main(frame)
	return('hello CEE')
end

function p.is_leap(frame)
	year = frame.args[1]
	year_num = tonumber(year)
	if ((year_num % 4) == 0) and ((year_num % 200) ~= 0) then
		return 'leap'
	else
		return 'not leap'
	end
end

return p;