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
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;
else
str = str .. space_char .. value;
end
end
end
return str;
end
function selectyear( str )
வரி 910 ⟶ 937:
end
text = Authors .. Date .. Chapter .. Editors .. tcommon
▲ pgtext:sub(1,1) == "." )
elseif ( "" ~= Editors) then
if ( "" ~= Date ) then
வரி 930 ⟶ 954:
end
text = Editors .. Date .. Chapter .. tcommon
▲ pgtext:sub(1,1) == "." )
else
if ( "" ~= Date ) then
வரி 942 ⟶ 963:
end -- endif ""~=Date
text = Chapter .. tcommon .. Date
▲ pgtext:sub(1,1) == "." )
end
| |||