Content deleted Content added
No edit summary |
No edit summary |
||
Line 206:
-- read dates from jsonlocal.items -- it assumes dates in the json are in chrono order, needs a more flexible method
elseif isAvail == "
local numRecords = tableLength(jsonlocal.items) -- Get first and last date of holiday
for i = 1, numRecords do
Line 297:
if jsoncfg.main.event[i].datatype:lower() == "calculator" then
return "calculator", i
elseif jsoncfg.main.event[i].datatype:lower() == "
return "
else
return nil, nil
Line 368:
return inlineError("holiday", 'Template:' .. tname .. '/Configuration.js misconfigured: missing datasource', tname) .. createTracking()
end
if isAvail == "
local version = mw.title.makeTitle( 'Template', jsoncfg.main.event[it].datasource )
if not version.exists then
Line 407:
if cite then
cite = ""
if isAvail == "
if jsoncfg.main.event[it].citeurl and jsoncfg.main.event[it].accessdate and jsoncfg.main.event[it].source and jsoncfg.main.event[it].holiday then
cite = frame:preprocess('<ref name="' .. holiday .. ' dates">{{cite web |url=' .. jsoncfg.main.event[it].citeurl .. ' |title=Dates for ' .. jsoncfg.main.event[it].holiday .. ' |publisher=' .. jsoncfg.main.event[it].source .. ' |via=[[Template:' .. tname .. '|' .. tname .. ']] and [[Template:' .. tname .. '/holidays/' .. holiday .. '.js|' .. holiday .. '.js]] |accessdate=' .. jsoncfg.main.event[it].accessdate .. '}}</ref>')
|