Modul:Wikidata utilities: Unterschied zwischen den Versionen

(stronger type checks)
K (remove +)
Zeile 4: Zeile 4:
local WikidataUtilities = {
local WikidataUtilities = {
suite  = 'WikidataUtilities',
suite  = 'WikidataUtilities',
serial = '2021-10-29',
serial = '2021-11-05',
item  = 65439025
item  = 65439025
}
}
Zeile 308: Zeile 308:
v.calendarmodel = wu.getUnit( v.calendarmodel )
v.calendarmodel = wu.getUnit( v.calendarmodel )
if wu.isGregorian( v ) then
if wu.isGregorian( v ) then
v = v.time
v = v.time:gsub( '^+', '' )
end
end
end
end