Module:Webarchive: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
fix cday and fulldate |
change plain-> true / check for missing URL protocol as mw.uri.new() requires |
||
வரிசை 226:
-- http://www.webcitation.org/getfile.php?fileid=1c46e791d68e89e12d0c2532cc3cf629b8bc8c8e
if mw.ustring.find( dt.split[2], "query", 1,
mw.ustring.find( dt.split[2], "cache", 1,
mw.ustring.find( dt.split[2], "getfile", 1,
tonumber(dt.split[2]) then
return "query"
வரிசை 400:
host = string.lower(host)
if mw.ustring.find( host, "europarchive.org", 1,
ulx.url1.tail = " at the " .. bracketopen .. "National Library of Ireland" .. bracketclose
elseif mw.ustring.find( host, "webarchive.org.uk", 1,
ulx.url1.tail = " at the " .. bracketopen .. "UK Web Archive" .. bracketclose
elseif mw.ustring.find( host, "archive.org", 1,
ulx.url1.service = "wayback"
ulx.url1.tail = " at the " .. bracketopen .. "Wayback Machine" .. bracketclose
tracking = "Category:Webarchive template wayback links"
elseif mw.ustring.find( host, "webcitation.org", 1,
ulx.url1.service = "webcite"
ulx.url1.tail = " at " .. bracketopen .. "WebCite" .. bracketclose
tracking = "Category:Webarchive template webcite links"
elseif mw.ustring.find( host, "archive.is", 1,
ulx.url1.service = "archiveis"
ulx.url1.tail = " at " .. bracketopen .. "Archive.is" .. bracketclose
tracking = "Category:Webarchive template archiveis links"
elseif mw.ustring.find( host, "archive.fo", 1,
ulx.url1.service = "archiveis"
ulx.url1.tail = " at " .. bracketopen .. "Archive.is" .. bracketclose
tracking = "Category:Webarchive template archiveis links"
elseif mw.ustring.find( host, "archive.today", 1,
ulx.url1.service = "archiveis"
ulx.url1.tail = " at " .. bracketopen .. "Archive.is" .. bracketclose
tracking = "Category:Webarchive template archiveis links"
elseif mw.ustring.find( host, "archive.li", 1,
ulx.url1.service = "archiveis"
ulx.url1.tail = " at " .. bracketopen .. "Archive.is" .. bracketclose
tracking = "Category:Webarchive template archiveis links"
elseif mw.ustring.find( host, "archive.ec", 1,
ulx.url1.service = "archiveis"
ulx.url1.tail = " at " .. bracketopen .. "Archive.is" .. bracketclose
tracking = "Category:Webarchive template archiveis links"
elseif mw.ustring.find( host, "archive
ulx.url1.service = "archiveit"
ulx.url1.tail = " at " .. bracketopen .. "Archive-It" .. bracketclose
elseif mw.ustring.find( host, "wikiwix.com", 1,
ulx.url1.tail = " at Wikiwix"
elseif mw.ustring.find( host, "arquivo.pt", 1,
ulx.url1.tail = " at the " .. "Portuguese Web Archive"
elseif mw.ustring.find( host, "webarchive.loc.gov", 1,
ulx.url1.service = "locwebarchives"
ulx.url1.tail = " at the " .. bracketopen .. "Library of Congress" .. bracketclose .. " Web Archives"
elseif mw.ustring.find( host, "loc.gov", 1,
ulx.url1.tail = " at the " .. bracketopen .. "Library of Congress" .. bracketclose
elseif mw.ustring.find( host, "webharvest.gov", 1,
ulx.url1.tail = " at the " .. bracketopen .. "National Archives and Records Administration" .. bracketclose
elseif mw.ustring.find( host, "bibalex.org", 1,
ulx.url1.tail = " at " .. "[[Bibliotheca_Alexandrina#Internet_Archive_partnership|Bibliotheca Alexandrina]]"
elseif mw.ustring.find( host, "collectionscanada", 1,
ulx.url1.tail = " at the " .. "Canadian Government Web Archive"
elseif mw.ustring.find( host, "haw.nsk", 1,
ulx.url1.tail = " at the " .. "Croatian Web Archive (HAW)"
elseif mw.ustring.find( host, "veebiarhiiv.digar.ee", 1,
ulx.url1.tail = " at the " .. "Estonian Web Archive"
elseif mw.ustring.find( host, "vefsafn.is", 1,
ulx.url1.tail = " at the " .. "[[National and University Library of Iceland]]"
elseif mw.ustring.find( host, "proni.gov", 1,
ulx.url1.tail = " at the " .. bracketopen .. "Public Record Office of Northern Ireland" .. bracketclose
elseif mw.ustring.find( host, "uni
ulx.url1.tail = " at the " .. "Slovenian Web Archive"
elseif mw.ustring.find( host, "stanford.edu", 1,
ulx.url1.tail = " at the " .. "[[Stanford University Libraries|Stanford Web Archive]]"
elseif mw.ustring.find( host, "nationalarchives.gov.uk", 1,
ulx.url1.tail = " at the " .. bracketopen .. "UK Government Web Archive" .. bracketclose
elseif mw.ustring.find( host, "parliament.uk", 1,
ulx.url1.tail = " at the " .. bracketopen .. "UK Parliament's Web Archive" .. bracketclose
elseif mw.ustring.find( host, "nlb.gov.sg", 1,
ulx.url1.tail = " at " .. "Web Archive Singapore"
elseif mw.ustring.find( host, "pandora.nla.gov.au", 1,
ulx.url1.tail = " at " .. bracketopen .. "Pandora Archive" .. bracketclose
elseif mw.ustring.find( host, "perma.cc", 1,
ulx.url1.tail = " at " .. bracketopen .. "Perma.cc" .. bracketclose
elseif mw.ustring.find( host, "perma-archives.cc", 1,
ulx.url1.tail = " at " .. bracketopen .. "Perma.cc" .. bracketclose
elseif mw.ustring.find( host, "screenshots.com", 1,
ulx.url1.tail = " at Screenshots"
elseif mw.ustring.find( host, "freezepage.com", 1,
ulx.url1.tail = " at Freezepage"
elseif mw.ustring.find( host, "yorku.ca", 1,
ulx.url1.tail = " at " .. "[[York University Libraries|York University Digital Library]]"
elseif mw.ustring.find( host, "webcache.googleusercontent.com", 1,
ulx.url1.tail = " at Google Cache"
elseif mw.ustring.find( host, "timetravel.mementoweb.org", 1,
ulx.url1.tail = " at " .. bracketopen .. "Memento Project" .. bracketclose
elseif mw.ustring.find( host, "langzeitarchivierung.bib-bvb.de", 1,
ulx.url1.tail = " at " .. bracketopen .. "Bavarian State Library" .. bracketclose
elseif mw.ustring.find( host, "webrecorder.io", 1,
ulx.url1.tail = " at " .. bracketopen .. "webrecorder.io" .. bracketclose
else
வரிசை 686:
return inlineError("url", "Empty.") .. createTracking()
end
if mw.ustring.find( url1, "https://web.http", 1,
track["Category:Webarchive template errors"] = 1
return inlineError("url", "https://web.http") .. createTracking()
வரிசை 697:
ulx.url1 = {}
ulx.url1.url = url1
if not mw.ustring.find( mw.ustring.lower(url1), "^http") then
if not mw.ustring.find( url1, "^//") then
ulx.url1.url = "http://" .. url1
end
end
local uri1 = mw.uri.new(ulx.url1.url)
ulx.url1.host = uri1.host
| |||