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

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
formatting and comments
convert extractauthor to extractauthors, etc., less coping of parameters back and forth. Possibly better for performance.
வரிசை 301:
return LB .. "[[" .. pagename .. "#" .. anchor .. "|" .. text .. "]]" .. loc .. RB .. ps
end
end
 
function extractauthorextractauthors(args, i)
local authors = {};
local last = args["author" .. i .. "-last"] or args["author-last" .. i] or args["last" .. i] or args["surname" .. i] or args["Author" .. i] or args["author" .. i]
local i = 1;
if ( last and "" < last ) then -- just in case someone passed in an empty parameter
local return {last;
end
last = last,
while true do
first = args["author" .. i .. "-first"] or args["author-first" .. i] or args["first" .. i] or args["given" .. i],
linklast = args["author" .. i .. "-linklast"] or args["author-linklast" .. i] or args["authorlast" .. i] or args["surname" .. i] or args["linkAuthor" .. i] or args["authorlinkauthor" .. i],
if ( last and "" < last ) then -- just in case someone passed in an empty parameter
mask = args["author" .. i .. "-mask"] or args["author-mask" .. i] or args["author" .. i .. "mask"] or args["authormask" .. i]
} authors[i] = {
last = last,
else
first = args["author" .. i .. "-first"] or args["author-first" .. i] or args["first" .. i] or args["given" .. i],
return nil
mask link = args["author" .. i .. "-masklink"] or args["author-masklink" .. i] or args["author" .. i .. "masklink"] or args["authormaskauthorlink" .. i],
local last mask = args["author" .. i .. "-lastmask"] or args["author-lastmask" .. i] or args["lastauthor" .. i] or args["surname" .. i] or args["Authormask" .. i] or args["authorauthormask" .. i]
i = i + 1}
else
i = i + 1break;
i = 1 end
i = i + last = last,1;
end
return nilauthors;
end
 
function extracteditorextracteditors(args, i)
local editors;
local last = args["editor" .. i .. "-last"] or args["editor-last" .. i] or args["EditorSurname" .. i] or args["Editor" .. i] or args["editor" .. i]
local i = 1;
if ( last and "" < last ) then -- just in case someone passed in an empty parameter
local return {last;
else
last = last,
while true do
first = args["editor" .. i .. "-first"] or args["editor-first" .. i] or args["EditorGiven" .. i],
local linklast = args["editor" .. i .. "-linklast"] or args["editor-linklast" .. i] or args["editorEditorSurname" .. i] ..or args["linkEditor" .. i] or args["editorlinkeditor" .. i],
if ( last and "" < last ) then -- just in case someone passed in an empty parameter
mask = args["editor" .. i .. "-mask"] or args["editor-mask" .. i] or args["editor" .. i .. "mask"] or args["editormask" .. i]
} editors[i] = {
last = last,
else
first = args["editor" .. i .. "-first"] or args["editor-first" .. i] or args["EditorGiven" .. i],
return nil
mask link = args["editor" .. i .. "-masklink"] or args["editor-masklink" .. i] or args["editor" .. i .. "masklink"] or args["editormaskeditorlink" .. i],
local last mask = args["editor" .. i .. "-lastmask"] or args["editor-lastmask" .. i] or args["EditorSurnameeditor" .. i] or args["Editor" .. i"mask"] or args["editoreditormask" .. i]
}
else
if ( nil == a[i]) then break end;
end
i = i + 1;
end
return nileditors;
end
 
வரி 359 ⟶ 375:
local Authors = args.authors
local i
local a = {}extractauthors( args );
 
i = 1
while true do
a[i] = extractauthor(args, i)
if ( nil == a[i]) then break end
i = i + 1
end
local Coauthors = args.coauthors or args.coauthor
local Others = args.others
வரி 371 ⟶ 382:
local EditorFormat = args["editor-format"] or args.editorformat
local Editors = args.editors
local e = {}extracteditors( args );
 
i = 1
while true do
e[i] = extracteditor(args, i)
if ( nil == e[i]) then break end
i = i + 1
end
local Year = args.year
local PublicationDate = args.publicationdate or args["publication-date"]
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது