Changes
Factored out common code.
local ps = args.Postscript or ""
return LB .. "[[#" .. anchor .. "|" .. text .. "]]" .. loc .. RB .. ps
end
function extractauthor(args, i)
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]
if ( nil == last ) then return nil end
return {
last = last,
first = args["author" .. i .. "-first"] or args["author-first" .. i] or args["first" .. i] or args["given" .. i],
link = args["author" .. i .. "link"] or args["authorlink" .. i]
}
end
function extracteditor(args, i)
local last = args["editor" .. i .. "-last"] or args["editor-last" .. i] or args["EditorSurname" .. i] or args["Editor" .. i] or args["editor" .. i]
if ( nil == last ) then return nil end
return {
last = last,
first = args["editor" .. i .. "-first"] or args["editor-first" .. i] or args["EditorGiven" .. i],
link = args["editor" .. i .. "link"] or args["editorlink" .. i]
}
end
i = 1
while true do
i = i + 1
end
if ( a[1] == nil ) then
local i = ""
end
local Coauthors = args.coauthors or args.coauthor
i = 1
while true do
i = i + 1
end
if ( e[1] == nil ) then
local i = ""
end
local Year = args.year