Module:Calendar date/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 192:
 
if usercalc then
startdate = frame:preprocess(usercalc)
enddate = dateOffset(startdate, json.days)
else -- no user-supplied calculator - read json.items
Line 361:
json.usercalc = json.usercalc:gsub("</[ ]*nowiki>$", '')
json.usercalc = json.usercalc:gsub("YYYY", date)
json.usercalc = frame:preprocess(json.usercalc)
else
json.usercalc = nil