Open main menu

Changes

Module:Citation

142 bytes added, 13:53, 25 August 2012
Modified generation of citations.
end
function citationcitation0(pframe, frame) local AuthorMask = pframe.authormask or pframe.authormask or "" local Surname1 = pframe.last or pframe.surname or pframe.last1 or pframe.surname1 or pframe.author1 or pframe.authors or pframe.author or ""
local Surname2 = pframe.last2 or pframe.surname2 or pframe.author2
local Surname3 = pframe.last3 or pframe.surname3 or pframe.author3
local Place = pframe.place or pframe.location
local PublicationPlace = pframe.publicationplace or pframe.place or pframe.location
local Publisher = pframe.publisher or ""
local Language = pframe.language
local Format = pframe.format or ""
local ISBN= pframe.isbn or pframe.ISBN
local DOI= pframe.doi or pframe.DOI
if ( Title ~= nil ) then Title = " ''" .. Title .. "''." else Title = "" end
if ( Publisher ~= nil ) then Publisher = " " .. Publisher .. "." else Publisher = "" end local text = "(" .. Date .. ")." .. Title .. " " .. Publisher
text = authorprefix(Surname1, Given1, Authorlink1, "") .. text
text = authorprefix(Surname2, Given2, Authorlink2, "; ") .. text
text = authorprefix(Surname8, Given8, Authorlink8, "; ") .. text
text = authorprefix(Surname9, Given9, Authorlink9, "; ") .. text
if ( Language ~= nil ) then text = text .. " (in " .. Language .. ")" end
if ( ISBN ~= nil ) then text = text .. " ISBN " .. ISBN end
if ( DOI ~= nil ) then text = text .. " " .. doi(DOI) end
function p.citation(frame)
local pframe = frame:getParent()
return citationcitation0(pframe, frame)
end
Anonymous user