Module:Event list: Difference between revisions

Content deleted Content added
No edit summary
m Pppery moved page Module:EventList to Module:Event list without leaving a redirect: Make module name match template name
 
(One intermediate revision by one other user not shown)
Line 10:
local cols = tonumber(args['columns'] or '2') or 2
local datewidth = args['datewidth'] or '-1'
local datealign = args['datealign'] or ''
local collapse = args['collapse'] or 'collapsed'
 
Line 74 ⟶ 75:
:attr('scope', 'col')
:css('width', datewidth)
:css('text-align', (datealign ~= '') and datealign or 'left')
:css('border-bottom', '1px #aaa solid')
:wikitext('Date')
Line 90 ⟶ 91:
if d ~= '' or e ~= '' then
tr = innertable:tag('tr'):css('vertical-align', 'top')
tr:tag('td'):css('text-align',(datealign ~= '') and datealign or nil):wikitext(d)
tr:tag('td'):wikitext(e)
end