Module:Current events calendar/sandbox: Difference between revisions

Content deleted Content added
Make archive layouts look okay for now.
sync to main
Line 112:
-- corressponding CSS margin attribute can be simplified.
local temporaryMarginAdjustment = "auto !important"
if dateStuff.argsDate then temporaryMarginAdjustment = "8px 8px 0 0 8px" end
root
:addClass('infobox')
Line 130:
:tag('th')
:css{['text-align'] = 'center'}
:tag('span')
:wikitext(makeWikilink('Portal:Current events/' .. dateStuff.previousMonthAndYear, '◀'))
:addClass('noprint')
:wikitext(makeWikilink('Portal:Current events/' .. dateStuff.previousMonthAndYear, '◀'))
:done()
:done()
:tag('th')
Line 139 ⟶ 142:
:tag('th')
:css{['text-align'] = 'center'}
:tag('span')
:wikitext(makeWikilink('Portal:Current events/' .. dateStuff.nextMonthAndYear, '▶'))
:addClass('noprint')
 
:wikitext(makeWikilink('Portal:Current events/' .. dateStuff.nextMonthAndYear, '▶'))
 
-- Day of week headings
Line 167 ⟶ 171:
if not dateStuff.argsDate then -- No footer necessary on Archive pages.
root:tag('tr')
:addClass('noprint')
:tag('td')
:attr('colspan', '7')
:css{['padding-top'] = '3px', ['padding-bottom'] = '5px', ['font-size'] = '78%', ['text-align'] = 'right'}
:wikitext('   ' .. makeWikilink('Portal:Current events/' .. monthAndYear, 'More ' .. monthAndYear .. ' events...    '))
end