Module:Webarchive: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Lingam No edit summary |
imported>Lingam No edit summary |
||
வரிசை 11:
]]
require('
local getArgs = require ('Module:Arguments').getArgs;
வரிசை 268:
local date = table.concat ({year, month, day}, '-'); -- assemble year-initial numeric-format date (zero padding not required here)
if non_western_digits then --
date = mw.ustring.gsub (date, '%d', digits); -- convert this wiki's non-western digits to western digits
end
வரிசை 359:
decode = makeDate (dt.year, dt.month, dt.day, 'iso'); -- date comparisons are all done in iso format with western digits
if non_western_digits then --
decode = mw.ustring.gsub (decode, '%d', digits); -- convert this wiki's non-western digits to western digits
end
வரிசை 370:
Given a URI-path to Wayback (eg. /web/20160901010101/http://example.com )
or Library of Congress Web Archives (
return the formatted date eg. "September 1, 2016" in df format
Handle non-digits in snapshot ID such as "re_" and "-" and "*"
வரி 390 ⟶ 388:
local msg, snapdate;
snapdate = path
snapdate = snapdate:match ('^[^/]+'); -- get timestamp
if snapdate == "*" then -- eg. /web/*/http..
return 'index'; -- return indicator that this url has an index date
end
வரி 550 ⟶ 548:
ulx[argurl2] = {}
ulx[argurl2]["url"] = args[argurl]
argdate = "date" ..
if args[argdate] then
ulx[argurl2]["date"] = args[argdate]
வரி 557 ⟶ 555:
end
argtitle = "title" ..
if args[argtitle] then
ulx[argurl2]["title"] = args[argtitle]
வரி 849 ⟶ 847:
date = 'index';
ldf = 'iso'; -- set to default format
else
date, ldf = decode_date (date); -- get an iso format date from date and get date's original format
வரி 863 ⟶ 852:
end
if 'wayback' == ulx.url1.service or 'locwebarchives
if date then
if config.verifydates then
| |||