Content deleted Content added
No edit summary |
No edit summary |
||
Line 299:
elseif not verifyDate(date) then
return inlineError("year", "Invalid year", tname) .. createTracking()
end▼
df = trimArg(args.df)▼
if not df then▼
df = "dmy"▼
elseif df ~= "mdy" and df ~= "dmy" and df ~= "iso" then▼
df = "dmy"▼
end
Line 327 ⟶ 319:
else
json = mw.text.jsonDecode( version:getContent() )
▲ end
--- Determine df - priority to |df in template, otherwise df in datafile, otherwise default to dmy
▲ df = trimArg(args.df)
▲ if not df then
if json.df then
end
▲ elseif df ~= "mdy" and df ~= "dmy" and df ~= "iso" then
▲ df = "dmy"
end
|