Content deleted Content added
see if we can quick-fix case when date is just a year and precision is year |
`time' is now (?) in ISO format, somebody can properly integrate this with the rest of the code later |
||
Line 226:
if entity.claims[propertyID] ~= nil then
local out = {}
for k, v in pairs(entity.claims[propertyID]) do
for k2, v2 in pairs(v.qualifiers[qualifierID]) do
if v2.snaktype == 'value' then
local d = v2.datavalue.value.time
if date_format == "mdy" then
out[#out + 1] =
elseif date_format == "my" then
out[#out + 1] =
elseif date_format == "y" then
out[#out + 1] =
else
out[#out + 1] =
end
end
|