Changes

Jump to navigation Jump to search

Module:Citation

145 bytes added, 19:21, 25 August 2012
Added support for when ref is not harv.
if ( DOI ~= nil ) then text = text .. " " .. doi(frame, DOI) end
if ( Ref ~= nil ) then
local id = Ref if ( "harv" ~= Ref ) then local P1 = Surname1 local P2 = Surname2 local P3 = Surname3 local P4 = Surname4 local P5 if ( Surname2 == nil ) then P2 = Year elseif ( Surname3 == nil ) then P3 = Year elseif ( Surname4 == nil ) then P4 = Year else P5 = Year end id = anchorid({P1,P2,P3,P4,P5})
end
local args = { class="citation " .. config.CitationClass, id=anchorid({P1,P2,P3,P4,P5}) id }
text = tag(frame, {name="span", contents=text, params=args})
end
Anonymous user

Navigation menu