Mòdul:Wikidata: diferència entre les revisions
Contingut suprimit Contingut afegit
un espai en blanc que sobra |
anys dC menors de 100 i sense 0 al davant, demanat a la discussió |
||
Línia 111:
elseif datatype == 'time' then
-- Dates and times are stored in ISO 8601 format
-- check for negative date, ex. "-0027-01-16T00:00:00Z"
local suffix = ""
local timestamp = snak.datavalue.value.time
Línia 117:
timestamp = '+' .. string.sub(timestamp, 2)
suffix = " aC"
suffix = " dC"
end
local function d(f)
Linha 123 ⟶ 125:
if formatting == 'year' then
-- suppress leading zeros in year
local
▲ while string.sub(stryear, 1, 1) == '0' do
▲ return stryear
else
return ret
end
|