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

Content deleted Content added
right() doesn't need year or args. Unnecessary logic check.
right() returns nothing when itemNum is 0 anyway
Line 101:
if args.temparg then
left(builder, args, emptyyear .. '<br/>–<br/>' .. lastyear, 0)
right(builder, 0, {})
else
left(builder, args, emptyyear .. '–' .. lastyear, 0)
right(builder, 0, {})
end
else
if year-1 == emptyyear then
left(builder, args, emptyyear, 0)
right(builder, 0, {})
else
if args.temparg then
left(builder, args, emptyyear .. '<br/>–<br/>' .. (year-1), 0)
right(builder, 0, {})
else
left(builder, args, emptyyear .. '–' .. (year-1), 0)
right(builder, 0, {})
end
end