Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync to sandbox, this creates temporary transitional hidden error for cite web archiveurl. This will be merged into the visible archiveurl errors next week or so. |
fix isbn flag, add some spaces |
||
வரிசை 43:
of the error message in the output is the responsibility of the calling function.
]]
function seterror( error_id, args, raw, prefix, suffix )
local error_state = cfg.error_conditions[ error_id ];
prefix = prefix or "";
suffix = suffix or "";
if error_state == nil then
வரி 71 ⟶ 73:
return '', false;
end
message = prefix .. message .. suffix;
if raw == true then
வரி 118 ⟶ 122:
if label == nil or label == "" then
label = URL;
error_str = seterror( 'bare_url_missing_title', {}, false, " " );
end
if not checkurl( URL ) then
error_str = seterror( 'bad_url', {}, false, " " ) .. error_str;
end
வரி 581 ⟶ 585:
elseif k == 'ISBN' then
local ISBN = internallinkid( handler );
if not checkisbn( v ) and ( options.IgnoreISBN == nil or options.IgnoreISBN == "" ) then
ISBN = ISBN .. seterror( 'bad_isbn', {}, false, " ", "" );
end
table.insert( new_list, {handler.label, ISBN } );
| |||