Module:Timeline of release years: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
the variable _ is intended as a dummy variable and should only be written to, never read. since that isn't how it's being used here, rename it
Jackmcbarn (talk | contribs)
simplify more
Line 25:
 
local function left(builder, year)
builder:tag( 'td' ):wikitext( year .. ' –' ):attr('align', 'right')
:attr('align', 'right')
:wikitext( year .. ' –' )
end
 
Line 92 ⟶ 94:
if tonumber(args.last) then
lastyear = tonumber(args.last)
else
localfor yeari = os.date('%Y') + 3, TBA and os.date('%Y') or firstyear, -1 do
 
for i = os.date('%Y') + 3, year, -1 do
if isYearReleased(args, i) then
lastyear = i