Module:Timeline of release years: Difference between revisions

Content deleted Content added
add padding back in
avoid use of 'i' in these two cases as ambiguous
Line 7:
return true
end
for iasciiletter = 97, 106 do -- 97 = a, 106 = j
if args[year .. string.char(iasciiletter)] then
return true
end
Line 20:
end
for iyearrange = 1, 5 do
if args['range' .. iyearrange] and args['range' .. iyearrange .. '_color'] then
local _, _, beginyear, endyear = string.find( args['range' .. iyearrange], '^(%d%d%d%d).+(%d%d%d%d)$' )
local year = tonumber(year) or 9999 -- For year == 'TBA'
Line 29:
if year >= beginyear and year <= endyear then
local _, _, color1, color2 = string.find( args['range' .. iyearrange .. '_color'], '^(%S*)%s*(%S*)$' )
color2 = (color2 == '') and color1 or color2
return isYearReleased(args, year) and color1 or color2