Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync fix to LaySummary |
sync with sandbox. Address lastauthoramp, postscript, and separator issues |
||
வரிசை 265:
local format = control.format
local maximum = control.maximum
local lastauthoramp = control.lastauthoramp;
local text = {}
local etal = false;
வரி 294 ⟶ 295:
end
local count = #text;
if count > 1 and lastauthoramp ~= nil and lastauthoramp ~= "" and not etal then
text[count-1] = text[count-1] .. " & " .. text[count];
text[count] = nil;
end ▼
local result = table.concat(text, sep) -- construct list
if etal then
வரி 494 ⟶ 499:
local ZBL = args.zbl or args.ZBL
local Quote = args.quote or args.quotation
local PostScript = args.postscript or "."
local LaySummary = args.laysummary
local LaySource = args.laysource
வரி 500 ⟶ 505:
local TranscriptURL = args["transcript-url"] or args.transcripturl
local sepc = args.separator or "."
local LastAuthorAmp = args.lastauthoramp
local no_tracking_cats = args["template doc demo"] or args.nocat or args.notracking or args["no-tracking"] or "";
வரி 636 ⟶ 642:
-- We also add leading spaces and surrounding markup and punctuation to the various parts of the citation, but only when they are non-nil.
if ( Authors == nil ) then
local AuthorNameSep = args["author-name-separator"] or args["name-separator"] or "
AuthorNameSep = AuthorNameSep .. " "
local AuthorSep = args["author-separator"] or
AuthorSep = AuthorSep .. " "
local AuthorFormat = args["author-format"] or args.authorformat
local AuthorMaximum = tonumber(args["display-authors"] or args.displayauthors) or 8
local control = { sep = AuthorSep, namesep = AuthorNameSep, format = AuthorFormat, maximum = AuthorMaximum, lastauthoramp = LastAuthorAmp }
Authors = listpeople(control, a)
end
local EditorCount
if ( Editors == nil ) then
local EditorNameSep = args["editor-name-separator"] or args["name-separator"] or "
EditorNameSep = EditorNameSep .. " "
local EditorSep = args["editor-separator"] or
EditorSep = EditorSep .. " "
local EditorFormat = args["editor-format"] or args.editorformat
local EditorMaximum = tonumber(args["display-editors"] or args.displayeditors) or 3
local control = { sep = EditorSep, namesep = EditorNameSep, format = EditorFormat, maximum = EditorMaximum, lastauthoramp = LastAuthorAmp }
Editors, EditorCount = listpeople(control, e)
else
வரி 1,021 ⟶ 1,029:
tcommon = safejoin( {Title, TitleNote, Series, Format, TitleType, Conference, Periodical, Language, Volume, Issue, Others, Edition, Publisher, Agency, Position}, sepc );
end
local idcommon = safejoin( { ARXIV, ASIN, BIBCODE, DOI, ISBN, ISSN, JFM, JSTOR, LCCN, MR, OCLC, OL, OSTI, PMC, PMID, RFC, SSRN, URL, ZBL, ID, Archived, AccessDate, Via, SubscriptionRequired, Lay, Quote
if (args.postscript == "") then enddot = "" end▼
idcommon = safejoin( { idcommon, enddot }, sepc )▼
▲ end
local text
வரி 1,095 ⟶ 1,094:
end
if PostScript ~= '' and PostScript ~= nil and PostScript ~= sepc then
text = safejoin( {text, sepc}, sepc ); --Deals with italics, spaces, etc.
text = text:sub(1,-2); --Remove final seperator
end
-- Now enclose the whole thing in a <span/> element
if ( Year == nil ) then
| |||