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
end_chr = str:sub(-1,-1);
-- str = str .. "<HERE(enchr=" .. end_chr.. ")"
if end_chr == duplicate_char then
str = str:sub(1,-2)
elseif end_chr == "'" then
if str:sub(-3,-1) == duplicate_char .. "''" then
str = str:sub(1, -4) .. "''"
elseif str:sub(-5,-1) == duplicate_char .. "]]''" then
elseif str:sub(-4,-1) == duplicate_char .. "]''" then
▲ else
str = str .. value;▼
end
elseif end_chr == "]" then
if str:sub(-3,-1) == duplicate_char .. "]]" then
elseif str:sub(-2,-1) == duplicate_char .. "]" then
else▼
str = str .. value;▼
end
elseif end_chr == " " then
if str:sub(-2,-1) == duplicate_char .. " " then
str = str:sub(1,-3)
local dup2 = duplicate_char;
if dup2:match( "%A" ) then dup2 = "%" .. dup2; end
value = value:gsub( "(%b<>)" .. dup2, "%1", 1 )
else
end
▲ else
▲ str = str .. value;
end
▲ str = str .. value;
end
end
end
வரி 1,001 ⟶ 1,005:
then local retrv_text = " retrieved "
if (sepc == ".") then retrv_text = " Retrieved " end
AccessDate = '<span class="reference-accessdate">' .. sepc
else AccessDate = "" end
if ( SubscriptionRequired ~= nil and
வரி 1,147 ⟶ 1,151:
if ( Periodical and Periodical ~= "" and
config.CitationClass ~= "encyclopaedia" and
config.CitationClass ~= "web"
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
| |||