Module:Calendar widget: Difference between revisions

Content deleted Content added
attempt to add a way of highlighting arbitrary dates
No edit summary
 
(One intermediate revision by one other user not shown)
Line 204:
local result = {};
local hilite;
local hilite_two;
for col = 1, 7 do
Line 261 ⟶ 262:
local css_opts = props.week_color and {['background'] = props.week_color} or {}
 
if props.iso_wk or props.iso then
if props.iso_wk then
table.insert (headers, repeat_tags ('th', {'Wk'}, {['class']='mcal', ['attr']={['title'] = 'ISO week number'}, ['css'] = css_opts})); -- iso week header
end
for i, abbr in ipairs (iso_dayabbr) do
table.insert (headers, repeat_tags ('th', {iso_dayabbr[i]}, {['class']='mcal', ['attr']={['title'] = iso_dayname[i]}, ['css'] = css_opts}));