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
 
(2 intermediate revisions 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 68 ⟶ 69:
:css('cellpadding', '0px')
:css('margin', '-1px')
:css('font-size', '8588%')
:css('line-height', '95100%')
local tr = innertable:tag('tr'):css('vertical-align', 'top')
tr:tag('th')
: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