Content deleted Content added
No edit summary |
No edit summary |
||
Line 186:
function renderHoli(json,holiday,date,df,format,tname,cite,usercalc)
local hits = 0
local matchdate = "^" .. date
Line 192 ⟶ 191:
local starttitle,endtitle = ""
startdate = frame:preprocess(json.usercalc)
enddate = dateOffset(startdate, json.days)
if mw.ustring.find( json.items[i].date, matchdate ) then▼
else -- no user-supplied calculator - read json.items
▲ if hits == 0 then
-- Get first and
local
for i = 1,
▲ if mw.ustring.find( json.items[i].date, matchdate ) then
end▼
if hits >= tonumber(json.days) then
enddate = json.items[i].date
endtitle = json.items[i].title
break▼
end
hits = hits + 1
end
▲ if hits >= tonumber(json.days) then
▲ enddate = json.items[i].date
▲ endtitle = json.items[i].title
▲ break
▲ end
▲ hits = hits + 1
end
end
|