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

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync to sandbox. Fixes publication-date issues, repeated "." in wikilink, and format on chapterurl.
sync to sandbox, fixes problem with broken span in association with double "..", also publisher layout for pressrelease mode
வரிசை 182:
local comp = '';
local end_chr = '';
local trim;
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
வரி 196 ⟶ 197:
if comp:sub(1,1) == duplicate_char then
trim = elsefalse;
end_chr = str:sub(-1,-1);
-- str = str .. "<HERE(enchr=" .. end_chr.. ")"
if end_chr == duplicate_char then
str = str:sub(1,-2) .. value;
elseif end_chr == "'" then
if str:sub(-3,-1) == duplicate_char .. "''" then
str = str:sub(1, -4) .. "''" .. value;
elseif str:sub(-5,-1) == duplicate_char .. "]]''" then
strtrim = str .. value:sub(2,-1)true;
elseif str:sub(-4,-1) == duplicate_char .. "]''" then
strtrim = str .. value:sub(2,-1)true;
else
str = str .. value;
end
elseif end_chr == "]" then
if str:sub(-3,-1) == duplicate_char .. "]]" then
strtrim = str .. value:sub(2,-1)true;
elseif str:sub(-2,-1) == duplicate_char .. "]" then
strtrim = str .. value:sub(2,-1)true;
else
str = str .. value;
end
elseif end_chr == " " then
if str:sub(-2,-1) == duplicate_char .. " " then
str = str:sub(1,-3) .. value;
elseend
elseend
 
strif =trim str .. value;then
strif value ~= strcomp ..then value;
local dup2 = duplicate_char;
if dup2:match( "%A" ) then dup2 = "%" .. dup2; end
str = str .. value;
value = value:gsub( "(%b<>)" .. dup2, "%1", 1 )
else
strvalue = strvalue:sub( ..2, value-1 );
end
else
str = str .. value;
end
else
str = str .. value;
end
str = str .. value;
end
end
வரி 1,001 ⟶ 1,005:
then local retrv_text = " retrieved "
if (sepc == ".") then retrv_text = " Retrieved " end
AccessDate = '<span class="reference-accessdate">' .. sepc
.. sepc .. retrv_text .. AccessDate .. '</span>'
else AccessDate = "" end
if ( SubscriptionRequired ~= nil and
வரி 1,147 ⟶ 1,151:
if ( Periodical and Periodical ~= "" and
config.CitationClass ~= "encyclopaedia" and
config.CitationClass ~= "web" ) thenand
config.CitationClass ~= "pressrelease" ) then
if ( PublisherName ~= nil and PublisherName ~="" ) then
if (PublicationPlace ~= nil and PublicationPlace ~= '') then
வரி 1,480 ⟶ 1,485:
--03Apr2013 Changed safejoin() to omit "." at italic wikilink ".]]" end.
--03Apr2013 Changed safejoin() to omit "." at italic external ".]" end.
--04Apr2013 Moved sepc before <span class="reference-accessdate"> for "..".
--
--End
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது