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

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
test whether that is unnecessary
code cleanup
வரிசை 83:
function hyphentodash( str )
return str:gsub( '-', '–' );
end
 
function safeforitalics( str )
if str == nil or str == '' then
return str;
else
if Periodicalstr:sub(1,1) == "'" then Periodicalstr = "<span />" .. Periodicalstr; end
if Titlestr:sub(-1,-1) == "'" then Titlestr = Titlestr .. "<span />"; end
return str;
end
end
 
வரி 598 ⟶ 608:
and config.CitationClass ~= "encyclopaedia"
) then
if Chapter:sub(1,1) == "''" then.. safeforitalics(Chapter) =.. "<span />''" .. Chapter; end
if Chapter:sub(-1,-1) == "'" then Chapter = Chapter .. "<span />"; end
Chapter = "''" .. Chapter .. "''"
else
Chapter = "\"" .. Chapter .. "\""
வரி 627 ⟶ 635:
Title = "\"" .. Title .. "\""
else
if Title:sub(1,1) == "''" then.. safeforitalics(Title) =.. "<span />''" .. Title; end
if Title:sub(-1,-1) == "'" then Title = Title .. "<span />"; end
Title = "''" .. Title .. "''"
end
Title = Title .. TransTitle
வரி 810 ⟶ 815:
if ( LayDate ~= nil ) then LayDate = " (" .. LayDate .. ")" else LayDate = "" end
if ( LaySource ~= nil ) then
if LaySource:sub(1,1) == " &ndash; ''" then.. safeforitalics(LaySource = "<span />") .. LaySource;"''" end
if LaySource:sub(-1,-1) == "'" then LaySource = LaySource .. "<span />"; end
 
LaySource = " &ndash; ''" .. LaySource .. "''"
else
LaySource = ""
வரி 852 ⟶ 854:
-- Several of the above rely upon detecting this as nil, so do it last.
if ( Periodical ~= nil and Periodical ~="" ) then
if Periodical:sub(1,1) == "'" then Periodical = "<span />" .. Periodical; end
if Periodical:sub(-1,-1) == "'" then Periodical = Periodical .. "<span />"; end
 
if ( Title and Title ~= "") then
Periodical = sepc .. " ''" .. safeforitalics(Periodical) .. "''"
else
Periodical = "''" .. safeforitalics(Periodical) .. "''"
end
else Periodical = "" end
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது