Modulo:Webarchive/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m Sakretsu ha spostato la pagina Modulo:Webarchive/Sandbox a Modulo:Webarchive/sandbox senza lasciare redirect: correggo nome
fix
Riga 186:
end
m = month_localized[m]
if d == '1' then d = '1º' end
return mw.ustring.format("%s %s %s", d, m, y)
end
Riga 249:
 
]]
function p.decodeWaybackDate(path)
local snapdate = string.gsub(uri.path, "^/w?e?b?/?", "") -- rimuove la sequenza iniziale "/web/" o "/"
local path_elements = mw.text.split(snapdate, "/")
snapdate = path_elements[1]
Riga 265:
local month = string.sub(snapdate, 5, 6)
local day = string.sub(snapdate, 7, 8)
iffulldate checkDate= makeDate(year, month, day) then
fulldate = makeDate(year, month, day)
end
end
return fulldate or inlineRed("Collegamento non valido", "error")
Line 503 ⟶ 501:
local ldf = dateFormat(date)
if ldf then
local udate = p.decodeWaybackDate( uri1.path, ldf )
if udate ~= date then
date = udate .. inlineRed("<sup>[Date non combacianti]</sup>", "warning")
Line 518 ⟶ 516:
end
elseif not date and url_main.service == "wayback" then
date = p.decodeWaybackDate( uri1.path, "iso" )
if not date then
date = inlineRed("[Errore nella data] (1)", "error")