Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
typo |
sync to sandbox, deals with hidden comment issue |
||
வரிசை 7:
function onlyinprint(content)
return ""
end
function hiddencomment( content )
return '<span style="display: none;">' .. content .. '</span>';
end
வரி 688 ⟶ 692:
table.insert( error_categories, 'Pages using web citations with no URL' );
if Title == nil or Title == "" then
Authors = Authors .. hiddencomment("
else
Title = Title .. hiddencomment("
end
end
வரி 700 ⟶ 704:
( Conference == nil or Conference == "" ) then
table.insert( error_categories, 'Pages with citations lacking titles' );
Authors = Authors .. hiddencomment("
end
வரி 913 ⟶ 917:
URL = URL .. " <span class='error'>No <code>title=</code> specified</span>"
else
URL = URL .. hiddencomment("
end
else
வரி 1,011 ⟶ 1,015:
local tcommon
if ( config.CitationClass == "journal" ) then
tcommon = safejoin( {Others, Title, TitleNote, Format, TitleType, Conference, Periodical, Series, Language, Edition, Publisher, Agency
elseif ( config.CitationClass == "citation" ) or (config.CitationClass == "encyclopaedia" ) then
tcommon = safejoin( {Title, TitleNote, Format, TitleType, Conference, Periodical, Series, Language, Volume, Issue, Edition, Publisher, Agency, Others, Position}, sepc );
else
tcommon = safejoin( {Title, TitleNote, Series, Format, TitleType, Conference, Periodical, Language, Volume, Issue, Others, Edition, Publisher, Agency
end
-- DEBUG: tcommon = "/Title="..Title .. "/TitleType="..TitleType .. "/TitleNote="..TitleNote .. "/Format="..Format .. "/Edition="..Edition .. "/Language="..Language .. "/Conference="..Conference .. "/Periodical="..Periodical .. "/Series="..Series .. "/Volume="..Volume .. "/Issue="..Issue .. "/Position="..Position
வரி 1,034 ⟶ 1,038:
if page_error then
table.insert( error_categories, 'Pages with citations using conflicting page specifications' );
pgtext = pgtext .. hiddencomment('
end
வரி 1,131 ⟶ 1,135:
end
if string.len(text:gsub("<span[^>/]*>.-</span>", ""):gsub("%b<>",
table.insert( error_categories, 'Pages with empty citations' );
text = '<span class="error">Citation is empty</span>';
வரி 1,270 ⟶ 1,274:
--19Mar2013 Fixed date of class=journal Periodical to show after page.
--19Mar2013 Changed null "postscript=" to suppress end-dot of citation.
--20Mar2013 If CitationClass is journal, show "others=" before title.
--20Mar2013 If CitationClass is book, show "others=" before edition.
--
--End
| |||