Open main menu

Changes

Module:Citation

244 bytes added, 18:57, 25 August 2012
Added ref processing.
local DOI= args.doi or args.DOI
local Authors = args.authors
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
Authors = Authors .. authorprefix(Surname7, Given7, Authorlink7, "&#59; ")
Authors = Authors .. authorprefix(Surname8, Given8, Authorlink8, "&#59; ")
Authors = Authors .. authorprefix(Surname9, Given9, Authorlink9, "&#59; ").. " "
end
local text = Authors .. "(" .. Date .. ")." .. Title .. Publisher
if ( ISBN ~= nil ) then text = text .. " ISBN " .. ISBN end
if ( DOI ~= nil ) then text = text .. " " .. doi(frame, DOI) end
if ( Ref ~= nil ) then
local args = { class="citation " .. config.CitationClass, id=anchorid(args) }
text = tag(frame, {name="span", contents=text, params=args})
end
return text
end
Anonymous user