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

Content deleted Content added
m different class
No edit summary
Line 90:
function p.main(frame)
local args = getArgs(frame)
return p._main(args, frame:extensionTag{ name = 'templatestyles', args = { src = 'Timeline of release years/styles.css'} })
return p._main(args)
end
 
function p._main(args, templatestyles)
-- Main module code goes here.
local currentyear = os.date('%Y')
Line 107:
:addClass('rt_caption')
:addClass('nowrap')
:wikitext((args.title or 'Release timeline')..(args.subtitle and ('<div class="rt_subtitle" style="font-weight: normal">'..args.subtitle..'</div>') or ''))
 
if tonumber(args.first) then
Line 118:
end
end
firstyear = firstyear or (currentyear + 3)
end
 
Line 140 ⟶ 141:
end
 
return templatestyles .. tostring(ret)
end