Module:Calendar widget: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 185:
for col = 1, 7 do
local dom = 7 * (row-1) + col + 1 - firstday -- calculate day of month for row/col position
local day;
if props.iso_wk and 1 == col then -- when column 1, insert iso week number <td> ahead of first 'dom'
Line 194 ⟶ 195:
if dom < 1 or dom > daysinmonth[mnum] then
domday = "&nbsp;" -- before or after month, blank cell
else
domday = get_display_day (dom, mnum, props); -- make wikilinks from month and day if required
end
 
Line 205 ⟶ 206:
end
table.insert (td_items, domday);
end