Module:Sandbox/BrandonXLF/1: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 6:
local currentDate = Date('currentdate')
local date = Date('1 December 2010')
local out = '<table>'
local currentMonth
local currentYear
Line 12:
while date ~= currentDate do
if date.year ~= currentYear then
out = out .. '==</td></tr></table><h2>' .. date.year .. '==</h2><table>'
currentYear = date.year
end
if date.monthmonthabbr ~= currentMonth then
out = out .. '</td></tr><tr><th scope="row" style=="text-align:left;">' .. date.monthmonthabbr .. '===</th><td>'
currentMonth = date.monthmonthabbr
end
out = out .. '[[Wikipedia:Main Page history/' .. date:text('%Y %B %-d') .. '|' .. date:text('%-d') .. ']]' .. '/[[Wikipedia:Main Page history/' .. date:text('%Y %B %-d') .. 'b|b]] '
date = date + 1
end
return out .. '</td></tr></table>'
end