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
else
return str;
end
end
வரி 598 ⟶ 608:
and config.CitationClass ~= "encyclopaedia"
) then
else
Chapter = "\"" .. Chapter .. "\""
வரி 627 ⟶ 635:
Title = "\"" .. Title .. "\""
else
▲ if Title:sub(-1,-1) == "'" then Title = Title .. "<span />"; end
end
Title = Title .. TransTitle
வரி 810 ⟶ 815:
if ( LayDate ~= nil ) then LayDate = " (" .. LayDate .. ")" else LayDate = "" end
if ( LaySource ~= nil ) then
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 ( Title and Title ~= "") then
Periodical = sepc .. " ''" .. safeforitalics(Periodical) .. "''"
else
Periodical = "''" .. safeforitalics(Periodical) .. "''"
end
else Periodical = "" end
| |||