মডিউল:উদ্ধৃতি: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
"মডিউল:উদ্ধৃতি" সুরক্ষিত করা হয়েছে: উচ্চ-ঝুঁকিপূর্ণ লুয়া মডিউল ([সম্পাদনা=কেবল প্রশাসকদের জন্য অনুমতি] (অসীম) [সরিয়ে নেয়া=কেবল প্রশাসকদের জন্য অনুমতি] (অসীম))
সম্পাদনা সারাংশ নেই
২,২১৮ নং লাইন:
ArchiveURL, ArchiveDate = archive_url_check (A['ArchiveURL'], A['ArchiveDate'])
local DeadURLUrlStatus = A['DeadURLUrlStatus']
if not is_valid_parameter_value (DeadURLUrlStatus, 'dead-url', cfg.keywords ['deadurlUrlStatus']) then -- set in config.defaults to 'yes'
DeadURLUrlStatus = ''; -- anything else, set to empty string
end
 
২,৮৬৬ নং লাইন:
 
local OriginalURL, OriginalURLorigin, OriginalFormat, OriginalAccess;
DeadURLUrlStatus = DeadURLUrlStatus:lower(); -- used later when assembling archived text
if is_set( ArchiveURL ) then
if is_set (ChapterURL) then -- URL not set so if chapter-url is set apply archive url to it
২,৮৭২ নং লাইন:
OriginalURLorigin = ChapterURLorigin; -- name of chapter-url parameter for error messages
OriginalFormat = ChapterFormat; -- and original |format=
if 'no' ~= DeadURLUrlStatus then
ChapterURL = ArchiveURL -- swap-in the archive's url
ChapterURLorigin = A:ORIGIN('ArchiveURL') -- name of archive-url parameter for error messages
২,৮৮২ নং লাইন:
OriginalFormat = Format; -- and original |format=
OriginalAccess = UrlAccess;
if 'no' ~= DeadURLUrlStatus then -- if URL set then archive-url applies to it
URL = ArchiveURL -- swap-in the archive's url
URLorigin = A:ORIGIN('ArchiveURL') -- name of archive url parameter for error messages
৩,১৩২ নং লাইন:
ArchiveDate = set_error('archive_missing_date');
end
if "no" == DeadURLUrlStatus then
local arch_text = cfg.messages['archived'];
if sepc ~= "." then arch_text = arch_text:lower() end
৩,১৪০ নং লাইন:
Archived = Archived .. " " .. set_error('archive_missing_url');
end
elseif is_set(OriginalURL) then -- DeadURLUrlStatus is empty, 'yes', 'true', 'y', 'unfit', 'usurped'
local arch_text = cfg.messages['archived-dead'];
if sepc ~= "." then arch_text = arch_text:lower() end
if in_array (DeadURLUrlStatus, {'unfit', 'usurped', 'bot: unknown'}) then
Archived = sepc .. " " .. 'Archived from the original on ' .. ArchiveDate; -- format already styled
if 'bot: unknown' == DeadURLUrlStatus then
add_maint_cat ('bot:_unknown'); -- and add a category if not already added
else
add_maint_cat ('unfit'); -- and add a category if not already added
end
else -- DeadURLUrlStatus is empty, 'yes', 'true', or 'y'
Archived = sepc .. " " .. substitute( arch_text,
{ external_link( OriginalURL, cfg.messages['original'], OriginalURLorigin, OriginalAccess ) .. OriginalFormat, ArchiveDate } ); -- format already styled