Module:Calendar widget: Difference between revisions

Content deleted Content added
split code for when month is present
in case args.month is not a month
Line 59:
local month = args.month
if month then
local monthnummnum = tonumber(month)
if not monthnummnum then
monthnummnum = monthnumber[month:sub(1,3)] or 0
end
month = monthname[tonumber(month)mnum] or "not a month"
return ">" .. year .. "< >" .. (month or "noname") .. "<"
else
return ">" .. year .. "<"