Module:Calendar date/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 326:
jsonlocal = (version.isRedirect and mw.text.jsonDecode( version.redirectTarget:getContent() )) or mw.text.jsonDecode( version:getContent() )
elseif isAvail == "calculator" then -- dates are calculated with a user-provided calculator
jsoncfg.main.event[it].datasource = frame:preprocess(jsoncfg.main.event[it].datasource:gsub("^<nowiki>", ''):gsub("</[ ]*nowiki>$", ''):gsub("YYYY", date))
else
return inlineError("holiday", 'Unknown datatype', tname )