Content deleted Content added
Jackmcbarn (talk | contribs) no globals |
Jackmcbarn (talk | contribs) simplify |
||
Line 4:
local function isYearReleased(args, year)
if args[year] then
return true
end▼
end
end
end
local function color(args, year)
▲ end
end
local function titleItem(content)
if content ~= nil then
end
end
local function left(args, year, displeft)
ret = mw.html.create( 'td' )▼
▲ :wikitext( (displeft or year) .. ' –' )
end
local function center(args, year)
ret = mw.html.create( 'td' )▼
:css( 'width', '10px' )
:css( 'border', '1px solid black' )
:css( 'background-color', color(args, year) )
end
Line 64 ⟶ 40:
local ret
ret = mw.html.create( 'td' )
:node( titleItem(args[year]) or titleItem(args[year .. 'a' ]) )
Line 76 ⟶ 50:
local function row(args, year, displeft)
:node( left(args, year) )
:node( center(args, year) )
:node( right(args, year) )
end
Line 99 ⟶ 68:
local firstyear, lastyear
ret = mw.html.create( 'table' )
:css('float', args.align or 'right')
:css('clear', args.align or 'right')
Line 110 ⟶ 77:
:attr('summary', args.summary or '')
▲ :css('font-weight', 'bold')
▲ :wikitext(args.title or 'Timeline of release years')
▲ ret:node(caption)
if tonumber(args.first) then
|