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

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync with sandbox. Mostly prep work for dealing with {citation} (e.g. Place=), also code formatting, and wikilinks in urls
sync to sandbox. Fixes publication-date issues, repeated "." in wikilink, and format on chapterurl.
வரிசை 167:
 
--[[
Joins a sequence of stringstrings together while checking for duplicate separation
characters.
]]
வரிசை 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) .. 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
str = str .. value:sub(2,-1)
elseif str:sub(-4,-1) == duplicate_char .. "]''" then
str = str .. value:sub(2,-1)
else
str = str .. value;
end
elseif end_chr == "]" then
if str:sub(-3,-1) == duplicate_char .. "]]" then
str = str .. value:sub(2,-1)
elseif str:sub(-2,-1) == duplicate_char .. "]" then
str = str .. value:sub(2,-1)
else
str = str .. value;
வரி 508 ⟶ 521:
if PublicationPlace == Place then Place = nil; end
local Location = PublicationPlace
local PublisherName = args.publisher
local SubscriptionRequired = args.subscription
வரி 848 ⟶ 860:
if ( ChapterURL and "" < ChapterURL ) then
Chapter = "[" .. ChapterURL .. " " .. safeforurl( Chapter ) .. "]"
if URL == nil or URL == "" then
Chapter = Chapter .. Format;
Format = "";
end
elseif ( URL and "" < URL ) then
Chapter = "[" .. URL .. " " .. safeforurl( Chapter ) .. "]" .. Format
வரி 959 ⟶ 975:
if ( TitleNote ~= nil and TitleNote ~="" ) then
TitleNote = sepc .. " " .. TitleNote else TitleNote = "" end
if ( PublicationPlace ~= nil and PublicationPlace ~="" ) then
PublicationPlace = PublicationPlace .. ": "
else PublicationPlace = "" end
if ( Language ~= nil and Language ~="" ) then
Language = " (in " .. Language .. ")" else Language = "" end
வரி 1,135 ⟶ 1,148:
config.CitationClass ~= "encyclopaedia" and
config.CitationClass ~= "web" ) then
if ( PublicationDatePublisherName ~= nil and PublicationDatePublisherName ~="" ) then
thenif PublicationDate(PublicationPlace ~= "nil "and ..PublicationPlace PublicationDate~= '') then
else PublicationDate Publisher = PublicationPlace .. ": " end.. PublisherName;
if ( PublisherName and PublisherName ~="" ) thenelse
Publisher = " (" ..Publisher PublicationPlace ..= PublisherName; .. PublicationDate .. ")"
else end
ifelseif (LocationPublicationPlace ~= nil and LocationPublicationPlace ~= '') then Publisher= " (" .. Location .. ")"
else Publisher = "" endPublicationPlace;
else
Publisher = "";
end
if ( PublicationDate and PublicationDate ~="" ) then
if Publisher ~= '' then
Publisher = sepcPublisher .. ", published " .. PublicationPlace .. PublisherName .. PublicationDate;
else
Publisher = PublicationDate;
end
end
if Publisher ~= "" then
Publisher = " (" .. Publisher .. ")";
end
else
if ( PublicationDate and PublicationDate ~="" ) then
PublicationDate = " (published " .. PublicationDate .. ")"
else PublicationDate = "" end
if ( PublisherName and PublisherNamePublicationDate ~= "" ) then
end
Publisher = sepc .. " " .. PublicationPlace .. PublisherName .. PublicationDate
if ( PublisherName ~= nil and PublisherName ~="" ) then
else
if (LocationPublicationPlace ~= nil and LocationPublicationPlace ~= '') then Publisher= sepc .. " " .. Location
else Publisher = sepc .. " " end.. PublicationPlace .. ": " .. PublisherName .. PublicationDate;
else
Publisher = sepc .. " " .. PublisherName .. PublicationDate;
end
if ( elseif (PublicationPlace ~= nil and PublicationPlace ~="" '') then
Publisher= sepc .. " " .. PublicationPlace .. PublicationDate;
else
Publisher = PublicationDate;
end
end
வரி 1,444 ⟶ 1,476:
--20Mar2013 If CitationClass is journal, adjust "others=" to have sepc.
--20Mar2013 For class "journal", use book format unless Periodical set.
--03Apr2013 Changed safejoin() to omit "." after wikilink ".]]" end dot.
--03Apr2013 Changed safejoin() to omit "." after external ".]" end dot.
--03Apr2013 Changed safejoin() to omit "." at italic wikilink ".]]" end.
--03Apr2013 Changed safejoin() to omit "." at italic external ".]" end.
--
--End
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது