Changes

Jump to navigation Jump to search

Module:Citation

155 bytes added, 18:47, 25 August 2012
Improved author processing.
local config = frame.args
local AuthorMask = args.authormask or args.authormask
local Surname1 = args.last or args.surname or args.author or args.last1 or args.surname1 or args.author1 or args.authors or args.author
local Surname2 = args.last2 or args.surname2 or args.author2
local Surname3 = args.last3 or args.surname3 or args.author3
local ISBN= args.isbn or args.ISBN
local DOI= args.doi or args.DOI
local Authors = args.authors
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
local text if ( Authors == "(" .. Date .. "nil )." .. Title .. Publisherthen text Authors = authorprefix(Surname1, Given1, Authorlink1, "") Authors = Authors .. text text = authorprefix(Surname2, Given2, Authorlink2, "&#59; ") Authors = Authors .. text text = authorprefix(Surname3, Given3, Authorlink3, "&#59; ") Authors = Authors .. text text = authorprefix(Surname4, Given4, Authorlink4, "&#59; ") Authors = Authors .. text text = authorprefix(Surname5, Given5, Authorlink5, "&#59; ") Authors = Authors .. text text = authorprefix(Surname6, Given6, Authorlink6, "&#59; ") Authors = Authors .. text text = authorprefix(Surname7, Given7, Authorlink7, "&#59; ") Authors = Authors .. text text = authorprefix(Surname8, Given8, Authorlink8, "&#59; ") Authors = Authors .. text text = authorprefix(Surname9, Given9, Authorlink9, "&#59; ") end local text = Authors .. "(" .. Date .. ") ." . text. Title .. Publisher
if ( Language ~= nil ) then text = text .. " (in " .. Language .. ")" end
if ( ISBN ~= nil ) then text = text .. " ISBN " .. ISBN end
Anonymous user

Navigation menu