Modulo:Webarchive/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
m versione corrente |
||
Riga 235:
if not tonumber(dt.year) or not tonumber(dt.month) or not tonumber(dt.day) then
return inlineRed("[
end
if tonumber(dt.month) > 12 or tonumber(dt.day) > 31 or tonumber(dt.month) < 1 then
return inlineRed("[
end
if tonumber(dt.year) > tonumber(os.date("%Y")) or tonumber(dt.year) < 1900 then
return inlineRed("[
end
local fulldate = makeDate(dt.year, dt.month, dt.day, df)
if not fulldate then
return inlineRed("[
else
return fulldate
Riga 282:
if not tonumber(snapdate) then
return inlineRed("[
end
local dlen = string.len(snapdate)
if dlen < 4 then
return inlineRed("[
end
if dlen < 14 then
Riga 297:
local day = string.sub(snapdatelong, 7, 8)
if not tonumber(year) or not tonumber(month) or not tonumber(day) then
return inlineRed("[
end
if tonumber(month) > 12 or tonumber(day) > 31 or tonumber(month) < 1 then
return inlineRed("[
end
currdate = os.date("%Y")
if tonumber(year) > tonumber(currdate) or tonumber(year) < 1900 then
return inlineRed("[
end
local fulldate = makeDate(year, month, day, df)
if not fulldate then
return inlineRed("[
else
return fulldate
Riga 377:
ulx[indx]["date"] = args["date" .. i] or args["data" .. i]
if not ulx[indx]["date"] then
ulx[indx]["date"] = inlineRed("
end
ulx[indx]["title"] = args["title" .. i] or args["titolo" .. i]
Riga 541:
-- Date argument
local date = args.date or args.date1 or args.data or args.data1
if date == "*" and url_main.service == "wayback" then
date = "index"
Riga 549:
local udate = decodeWaybackDate( uri1.path, ldf )
if udate ~= date then
date = udate .. inlineRed("<sup>[Date
end
end
Riga 558:
if udate == "query" then -- skip
elseif udate ~= date then
date = udate .. inlineRed("<sup>[Date
end
end
Riga 564:
date = decodeWaybackDate( uri1.path, "iso" )
if not date then
date = inlineRed("[
end
elseif not date and url_main.service == "webcite" then
Riga 571:
date = inlineRed("[Data mancante]", "warning")
elseif not date then
date = inlineRed("[
end
elseif not date then
|