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

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync to sandbox, addressing hyphen links, authormask, bolding, etc.
sync with sandbox. Addresses format / type positioning, CITEREF encoding, and error categorization
வரிசை 320:
local P4 = args[4] or ""
local P5 = args[5] or ""
return "CITEREF" .. P1 .. P2 .. P3 .. P4 .. P5
-- Bugzilla 46608
local encoded = mw.uri.anchorEncode( P1 .. P2 .. P3 .. P4 .. P5 );
if encoded == false then
encoded = "";
end
return "CITEREF" .. P1 .. P2 .. P3 .. P4 .. P5encoded;
end
 
வரி 708 ⟶ 715:
local DateIn = Date
-- Test if cite web is called without giving a URL
if ( URL == nil or URL == '' ) and
( ChapterURL == nil or ChapterURL == '' ) and
வரி 714 ⟶ 720:
( ConferenceURL == nil or ConferenceURL == '' ) and
( TranscriptURL == nil or TranscriptURL == '' ) then
 
-- Test if cite web is called without giving a URL
if ( config.CitationClass == "web" ) then
table.insert( z.error_categories, 'Pages using web citations with no URL' );
வரி 722 ⟶ 730:
end
end
 
-- Test if accessdate is given without giving a URL
if ( AccessDate ~= nil and AccessDate ~= '' ) then
table.insert( z.error_categories, 'Pages using citations with accessdate and no URL' );
வரி 730 ⟶ 740:
MessageTail = MessageTail .. "Accessdate used without URL";
end
else end
-- Test if format is given without giving a URL
if ( ZBLFormat ~= nil and ZBLFormat ~="" '' ) then
table.insert( z.error_categories, 'Pages using citations with format and no URL' );
URL Format = URLFormat .. hiddencomment( "BareFile URLformat herespecified without giving a URL" );
end
end
வரி 934 ⟶ 950:
if ( SSRN ~= nil and SSRN ~="") then
SSRN = sepc .." " .. externallinkid({label="SSRN",link="Social Science Research Network",prefix="http://ssrn.com/abstract=",id=SSRN}) else SSRN = "" end
if ( ZBL ~= nil and ZBL ~="") then
ZBL = sepc .." " .. externallinkid({label="Zbl",link="Zentralblatt MATH",prefix="http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:",id=ZBL}) else ZBL = "" end
 
if ( URL ~= nil and URL ~="") then
URL = " " .. "[" .. URL .. " " .. nowiki(URL) .. "]";
table.insert( z.error_categories, "Pages with citations having bare URLs" );
if config.CitationClass == "web" then
table.insert( z.error_categories, "Pages using web citations with no title" );
URL = URL .. " <span class='error'>No <code>title=</code> specified</span>"
else
else
URL = URL .. hiddencomment("Bare URL here");
end URL = URL .. hiddencomment("Bare URL needs a title");
end
else
URL = ""
end
 
if ( ZBL ~= nil and ZBL ~="") then
ZBL = sepc .." " .. externallinkid({label="Zbl",link="Zentralblatt MATH",prefix="http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:",id=ZBL}) else ZBL = "" end
if ( Quote and Quote ~="" ) then
if Quote:sub(1,1) == '"' and Quote:sub(-1,-1) == '"' then
வரி 958 ⟶ 977:
Quote = ""
end
local Archived
if ( nil ~= ArchiveURL and "" ~= ArchiveURL ) then
வரி 1,025 ⟶ 1,045:
-- Several of the above rely upon detecting this as nil, so do it last.
if ( Periodical ~= nil and Periodical ~="" ) then
if ( Title and Title ~= "" ) or ( TitleNote and TitleNote ~= "" ) then
Periodical = sepc .. " ''" .. safeforitalics(Periodical) .. "''"
else
வரி 1,040 ⟶ 1,060:
Periodical ~= "" ) then
if (Others ~= "") then Others = Others .. sepc .. " " end
tcommon = safejoin( {Others, Title, TitleNote, Format, Conference, Periodical, Format, TitleType, Series, Language, Edition, Publisher, Agency, Volume, Issue, Position}, sepc );
elseif ( config.CitationClass == "citation" ) or (config.CitationClass == "encyclopaedia" ) then
tcommon = safejoin( {Title, TitleNote, Format, Conference, Periodical, Format, TitleType, Series, Language, Volume, Issue, Edition, Publisher, Agency, Others, Position}, sepc );
else
tcommon = safejoin( {Title, TitleNote, Series, FormatConference, TitleTypePeriodical, ConferenceFormat, PeriodicalTitleType, Language, Volume, Issue, Others, Edition, Publisher, Agency, Position}, sepc );
end
வரி 1,159 ⟶ 1,179:
if string.len(text:gsub("<span[^>/]*>.-</span>", ""):gsub("%b<>","")) <= 2 then
table.insert( z.error_categories, = { 'Pages with empty citations' )};
text = '<span class="error">Citation is empty</span>';
MessageTail = '';
end
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது