Changes

Jump to navigation Jump to search

Module:Citation

395 bytes added, 19:18, 25 August 2012
Adjusted generation of span element.
if ( "span" == name or "div" == name or "blockquote" == name ) then
for n,v in pairs(t.params) do
params = params .. " " .. n .. "=\"" .. v.. "\""
end
return "<" .. name .. " " .. params .. ">" .. content .. "</" .. name .. ">"
else
for n,v in pairs(t.params) do
local Authorlink9 = args.author9link or args.authorlink9
local Coauthors = args.coauthor or args.coauthors
local Year = args.year or args.publicationdate or "" local Date = args.date or ((args.day or "") .. (args.month or "") .. (args.year or args.publicationdate or "")Year)
local Title = args.title or args.encyclopedia
local Chapter = args.chapter or args.article
if ( DOI ~= nil ) then text = text .. " " .. doi(frame, DOI) end
if ( Ref ~= nil ) 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 local args = { class="citation " .. config.CitationClass, id=anchorid(args{P1,P2,P3,P4,P5}) }
text = tag(frame, {name="span", contents=text, params=args})
end
Anonymous user

Navigation menu