Module:Timeline of release years/sandbox: Difference between revisions

Content deleted Content added
Update compressyear to follow highest range when year_to is in use.
No edit summary
Line 129:
end
 
-- If weemptyyear haveis anbelow emptyor year,equal checkthe ithighrange, againstwe theneed lastto highrangemake adjustments.
if(emptyyear and oldhighrange and emptyyear <= oldhighrange) then
-- If emptyyearthe current year is belowhighrange or equal the highrange +1, wesuppress needempty torow makeoutput adjustmentsentirely.
-- If the current year is highrange+2 or more, adjust the emptyyear to be above highrange)
if(emptyyear <= oldhighrange) then
if(year <= (oldhighrange+1)) then
-- If the current year is highrange or highrange +1, suppress empty row output entirely.
emptyyear = nil
if(year <= (oldhighrange+1)) then
else ifelseif(year > (oldhighrange+1)) then
emptyyear = nil
if( emptyyear <= oldhighrange) then+1
end
-- If the current year is highrange+2 or more, adjust the emptyyear to be above highrange)
else if(year > (oldhighrange+1)) then
emptyyear = oldhighrange+1
end
end
end