Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync to sandbox, addresses archiveurl= error handling |
sync to sandbox, addresses handling of trans-title with no title. Also fixes to COinS for encyclopedia mode. |
||
வரிசை 440:
Chapter = args.article
TransChapter = TransTitle
Title =
elseif ( Chapter == nil or Chapter == '' ) then
if Title ~= args.encyclopedia then
Chapter = Title
TransChapter = TransTitle
Title =
TransTitle = nil
end
end
if ( Periodical and Periodical ~= "") then
if Periodical == Title or Periodical == Chapter then Periodical =
end
end
வரி 775 ⟶ 777:
( Title == nil or Title == "" ) and
( Periodical == nil or Periodical == "" ) and
( Conference == nil or Conference == "" )
( TransTitle == nil or TransTitle == "" ) and
( TransChapter == nil or TransChapter == "" ) then
table.insert( z.error_categories, 'Pages with citations lacking titles' );
table.insert( MessageTail, 'Citation has no title' );
வரி 790 ⟶ 794:
end
end
if ( TransTitle and "" < TransTitle ) then TransTitle = " [" .. TransTitle .. "]" else TransTitle = "" end
if ( TransChapter and "" < TransChapter ) then TransChapter = " [" .. TransChapter .. "]" else TransChapter = "" end
if ( Chapter and "" < Chapter ) then▼
-- Format chapter / article title
if ( ChapterLink and "" < ChapterLink ) then Chapter = "[[" .. ChapterLink .. "|" .. Chapter .. "]]" end
if ( Periodical and "" < Periodical ) and (Title ~= nil and Title ~= "" )
வரி 800 ⟶ 807:
Chapter = "\"" .. Chapter .. "\""
end
Chapter = Chapter .. TransChapter▼
end
if TransChapter ~= "" and Chapter == "" then
table.insert( z.error_categories, 'Pages with citations using translated terms without the original' );
TransChapter = TransChapter .. hiddencomment( "Translated title included without the original" );
end
if Chapter ~= "" then
if ( ChapterLink == nil ) then
if ( ChapterURL and "" < ChapterURL ) then
வரி 811 ⟶ 826:
end
Chapter = Chapter .. sepc .. " " -- with end-space
▲ else
▲ Chapter = ""
end
-- Format main title.
if ( Title and "" < Title ) then
if ( TitleLink and "" < TitleLink ) then
வரி 826 ⟶ 841:
Title = "''" .. safeforitalics(Title) .. "''"
end
else
▲ Title = Title .. TransTitle
end
if TransTitle ~= "" and Title == "" then
table.insert( z.error_categories, 'Pages with citations using translated terms without the original' );
TransTitle = TransTitle .. hiddencomment( "Translated title included without the original" );
end
Title = Title .. TransTitle
if Title ~= "" then
if ( TitleLink == nil and URL and "" < URL ) then
Title = "[" .. URL .. " " .. safeforurl( Title ) .. "]" .. Format
வரி 832 ⟶ 855:
Format = ''
end
▲ else
▲ Title = ""
end
if ( Conference ~= nil and Conference ~="" ) then
if ( ConferenceURL ~= nil ) then
| |||