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

Content deleted Content added
No edit summary
No edit summary
Line 50:
:attr('scope', 'row')
:css('border-right', '1.4em solid ' .. color(args, year, itemNum))
:wikitext(args[year .. '_range_to'] and year .. '–' .. args[year .. '_to'] or year)
if itemNum > 1 then
builder = builder:attr('rowspan', itemNum)
Line 158:
 
local emptyyear = nil
local skipyear = nil
for year = firstyear, lastyear do
if skipyear == nil or (skipyear ~= nil and year == skipyear+1) then
local yearcheck = row(ret, args, year, emptyyear, lastyear)
skipyear = nil
if (emptyyear == nil and yearcheck ~= nil) or (emptyyear ~= nil and yearcheck == nil) then
local yearcheck = row(ret, args, year, emptyyear, lastyear)
emptyyear = yearcheck
if (emptyyear == nil and yearcheck ~= nil) or (emptyyear ~= nil and yearcheck == nil) then
end
emptyyear = yearcheck
if args[year .. '_range'] then
end
local y1, y2 = string.match(args[year .. '_range'], '(%d%d%d%d)–(%d%d%d%d)')
if args[year =.. '_to'] y2then
skipyear = tonumber(args[year .. '_to'])
end
end
end