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
function
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
last = last,▼
while true do▼
first = args["author" .. i .. "-first"] or args["author-first" .. i] or args["first" .. i] or args["given" .. 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]▼
▲ last = last,
else▼
▲ first = args["author" .. i .. "-first"] or args["author-first" .. i] or args["first" .. i] or args["given" .. i],
return nil▼
▲
▲
▲ else
end
end
function
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
▲ last = last,
while true do▼
first = args["editor" .. i .. "-first"] or args["editor-first" .. i] or args["EditorGiven" .. i],▼
local
▲ 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]▼
last = last,
▲ else
▲ first = args["editor" .. i .. "-first"] or args["editor-first" .. i] or args["EditorGiven" .. i],
return nil▼
▲
▲
}
else
end
i = i + 1;
end
end
வரி 359 ⟶ 375:
local Authors = args.authors
local i
local a =
▲ i = 1
▲ while true do
▲ 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 =
▲ i = 1
▲ while true do
▲ i = i + 1
▲ end
local Year = args.year
local PublicationDate = args.publicationdate or args["publication-date"]
| |||