Module:Calendar date/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 167:
end
 
-- read dates from jsonlocal.itemslocalfile -- it assumes dates in the json are in chrono order, needs a more flexible method
elseif isAvail == "localfile" then
local numRecords = tableLength(jsonlocal.items) -- Get first and last date of holiday
Line 217:
if endoutoffset then
year, month, day = endoutoffset:match ('(%d%d%d%d)-(%d%d)-(%d%d)')
-- datesplit = mw.text.split(endoutoffset, "-")
local leader = ((format == "infobox") and "<br>") or " "
endoutoffset = leader .. "(" .. makeDate(year, month, day, df, "infobox") .. " outside of Israel)"
-- endoutoffset = leader .. "(" .. makeDate(datesplit[1], datesplit[2], datesplit[3], df, "infobox") .. " outside of Israel)"
end
if not endoutoffset then