Content deleted Content added
Way too long |
Cleanup, shrink up, handle TBA |
||
Line 79:
end
local function row(builder, args, year, emptyyear, lastyear)
local itemNum, itemList = items(args, year)
-- If excludeempty is set and no items are returned, don't build a row.
if args.excludeempty and #itemList < 1 then
return nil
end
-- If compressempty is set, check for empty items, track empty years, and put out a compressed range when next year is found.
builder = builder:tag('tr')▼
left(builder, args, year, itemNum)▼
-- If we're compressing and there's no items, return this year for tracking.
if #itemList < 1 then
end▼
return year▼
▲ end
local function rowCompress(builder, args, year, emptyyear)▼
▲ return year
if year == 'TBA' then
end▼
left(builder, args, emptyyear .. ' ~ ' .. (year-1), 0)▼
else▼
▲ left(builder, args, emptyyear .. ' ~ ' .. (year-1), 0)
▲ else
▲ left(builder, args, (year-1), 0)
▲ right(builder, args, (year-1), 0, {})
end
end
Line 169 ⟶ 167:
local emptyyear = nil
for year = firstyear, lastyear do
▲ if(args.compressempty) then
if (emptyyear == nil and yearcheck ~= nil) or (emptyyear ~= nil and yearcheck == nil) then
end
end
|