Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
code cleanup
testing
வரிசை 94:
end
end
 
function safejoin( tbl, duplicate_char, space_char )
local str = '';
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
-- Trim spaces
value = value:match( '^%s*(.-)%s*$' );
if str == '' then
str = value;
elseif value ~= '' then
if pgtextvalue:sub(1,1) == "."duplicate_char )then
pgtext if str:sub(-1,-1) == "."duplicate_char )then
str = str .. space_char .. value:sub(2);
elseif str:sub(-3,-1) == duplicate_char .. "''" then
str = str .. space_char .. value:sub(2);
else
str = str .. space_char .. value;
pgtext:sub(1,1) == "." )end
else
str = str .. space_char .. value;
end
end
end
return str;
end
 
function selectyear( str )
வரி 910 ⟶ 937:
end
text = Authors .. Date .. Chapter .. Editors .. tcommon
if safejoin( {text:sub(-1,-1) ==pgtext, "."idcommon}, andsepc, --prior' text' ends as ".");
pgtext:sub(1,1) == "." )
then pgtext = pgtext:sub(2,-1) end --truncate by 1
text = text .. pgtext .. idcommon
elseif ( "" ~= Editors) then
if ( "" ~= Date ) then
வரி 930 ⟶ 954:
end
text = Editors .. Date .. Chapter .. tcommon
iftext = safejoin( {text:sub(-1,-1) ==pgtext, "."idcommon}, andsepc, --prior' text' ends as ".");
pgtext:sub(1,1) == "." )
then pgtext = pgtext:sub(2,-1) end --truncate by 1
text = text .. pgtext .. idcommon
else
if ( "" ~= Date ) then
வரி 942 ⟶ 963:
end -- endif ""~=Date
text = Chapter .. tcommon .. Date
iftext = safejoin( {text:sub(-1,-1) ==pgtext, "."idcommon}, andsepc, --prior' text' ends as ".");
pgtext:sub(1,1) == "." )
then pgtext = pgtext:sub(2,-1) end --truncate by 1
text = text .. pgtext .. idcommon
end
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது