Module:Citation/CS1: Difference between revisions

Jump to navigation Jump to search
336 bytes removed ,  12:03, 1 August 2022
no edit summary
No edit summary
No edit summary
Line 1,670: Line 1,670:
local path, timestamp, flag; -- portions of the archive.or url
local path, timestamp, flag; -- portions of the archive.or url
if url:match('//web%.archive%.org/save/') then -- if a save command url, we don't want to allow saving of the target page
table.insert( z.message_tail, { set_error( 'archive_url', {'save command'}, true ) } ); -- add error message
return '', ''; -- return empty strings for archiveURL and ArchiveDate
end
if url:match('//web%.archive%.org/web/%*/') or url:match('//web%.archive%.org/%*/') then -- wildcard with or without 'web/' path element
if url:match('//web%.archive%.org/web/%*/') or url:match('//web%.archive%.org/%*/') then -- wildcard with or without 'web/' path element
table.insert( z.message_tail, { set_error( 'archive_url', {'wildcard'}, true ) } ); -- add error message and
table.insert( z.message_tail, { set_error( 'archive_url', {'wildcard'}, true ) } ); -- add error message and

Navigation menu