Jump to content

Module:Sandbox/Andrybak

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Andrybak (talk | contribs) at 19:59, 27 June 2022 (t). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local function list(frame)
	local start = 1609455600
	local images = {}
	for t = 0, 512, 1
	do
		local d = os.date("%Y-%m-%d", start + t * 24 * 60 * 60)
		local image = frame:expandTemplate{
			title = "POTD/" .. d,
			args = { "image" }
		}
		table.insert(images, image)
	end
	return frame:preprocess(table.concat(images, "<br />"))
end

p = {}
p.list = list
return p