Open main menu

Changes

Module:Citation

178 bytes added, 19:31, 25 August 2012
Reduced the number of string reassignments.
local DOI= args.doi or args.DOI
local Authors = args.authors
local Editors = args.editors
local Ref = args.ref or args.Ref
if ( Chapter ~= nil ) then Chapter = " \"" .. Chapter .. "\"." else Chapter = "" end
if ( Title ~= nil ) then Title = " ''" .. Title .. "''." else Title = "" end
if ( Publisher ~= nil ) then Publisher = " " .. Publisher .. "." else Publisher = "" end
if ( Language ~= nil ) then Language = " (in " .. Language .. ")" end if ( ISBN ~= nil ) then ISBN = " ISBN " .. ISBN end if ( DOI ~= nil ) then DOI = " " .. doi(frame, DOI) end if ( Authors == nil ) then
Authors = authorprefix(Surname1, Given1, Authorlink1, "")
Authors = Authors .. authorprefix(Surname2, Given2, Authorlink2, "&#59; ")
Authors = Authors .. authorprefix(Surname7, Given7, Authorlink7, "&#59; ")
Authors = Authors .. authorprefix(Surname8, Given8, Authorlink8, "&#59; ")
Authors = Authors .. authorprefix(Surname9, Given9, Authorlink9, "&#59; ") .. " "
end
if ( Editors == nil ) then Editors = "" else Editors = " in " .. Editors .. "." end local text = Authors .. "(" .. Date .. ")." .. Title Chapter .. Publisher if ( Language ~= nil ) then text = text Editors .. " (in " Title .. Language .. ")" end if ( ISBN ~= nil ) then text = text Publisher .. " ISBN " .. ISBN end if ( DOI ~= nil ) then text = text .. " " .. doi(frame, DOI) end
if ( Ref ~= nil ) then
local id = Ref
Anonymous user