Content deleted Content added
fix typo |
construct archive-date if possible |
||
Line 18:
[3] = "rd",
["default"] = "th"
},
["months"] = {
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
},
}
Line 470 ⟶ 474:
-- if url then see if there's an archive: citeq_args.url
local url
if not citeq_args.url then
url = getValue( {pr, ps = 1, qid = qid, maxvals = 1, qual="P1065" } )
citeq_args.url local arcy, arcm, arcd = arcurl:match("(20%d%d)%p?(%d%d)%p?(%d%d)")
break▼
if arcy and arcm and arcd then
citeq_args["archive-url"] = arcurl
citeq_args["archive-date"] = tonumber(arcd) .. " " .. i18n.months[tonumber(arcm)] .. " " .. arcy
end
▲ break
end
end
end
|