Content deleted Content added
Plastikspork (talk | contribs) Fix |
Synch up |
||
Line 1:
require('Module:No globals')
local getArgs = require('Module:Arguments').getArgs▼
local p = {}
Line 68 ⟶ 67:
-- if itemNum >= 2
builder:tag('td')
:addClass('
:wikitext(itemList[1])
Line 74 ⟶ 73:
builder = builder:tag('tr')
:tag('td')
:addClass('
:wikitext(itemList[key])
end
Line 80 ⟶ 79:
builder = builder:tag('tr')
:tag('td')
:addClass('
:wikitext(itemList[itemNum])
Line 88 ⟶ 87:
local itemNum, itemList = items(args, year)
-- If compressempty is set, check for empty items, track empty years, and
-- put out a compressed range when next year is found. if args.compressempty then
-- If we're compressing and there's no items, return this year for tracking.
Line 115:
return nil
end▼
function p.main(frame)▼
return frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Timeline of release years/styles.css'} } .. tostring(p._main(args))▼
end
Line 134 ⟶ 126:
ret = mw.html.create( 'table' )
:addClass(
:addClass(args.align == 'left' and 'rt-left' or nil)
ret:tag('caption')
:wikitext((args.title or 'Release timeline') ..
▲ :wikitext((args.title or 'Release timeline')..(args.subtitle and ('<div class="rt_subtitle">'..args.subtitle..'</div>') or ''))
if tonumber(args.first) then
Line 177 ⟶ 169:
end
return mw.getCurrentFrame():extensionTag{
▲
} .. tostring(ret)
▲end
▲function p.main(frame)
return p._main(args)
end
|