Open main menu

Changes

Module:Citation

80 bytes added, 13:01, 17 October 2012
added if "end"
if ( Format ~= nil ) then Format = " (" .. Format .. ")" else Format = "" end
if ( OrigYear ~= nil ) then OrigYear = " " .. OrigYear else OrigYear = "" end
if ( Date ~= nil ) then Date = " (" .. Date .. ")" else Date = "" end
if ( Via ~= nil ) then Via = " — via " .. Via else Via = "" end
if ( AccessDate ~= nil ) then AccessDate = " Retrieved " .. AccessDate .. "." else AccessDate = "" end
local idcommon = ARXIV .. ASIN .. BIBCODE .. DOI .. ID .. ISBN .. JFM .. JSTOR .. LCCN .. MR .. OCLC .. OL .. OSTI .. PMC .. PMID .. RFC .. SSRN .. URL .. ZBL .. AccessDate .. Archived .. Via .. SubscriptionRequired .. Lay .. Quote .. PostScript
local tcommon = Title .. TitleType .. TitleNote .. Format .. Edition .. Language .. Conference .. Periodical .. Series .. Volume .. Issue .. Position .. Page .. Pages .. At .. "."
Date = Date .. OrigYear
local text
if ( "" ~= Authors ) then
if ( "" ~= Date ) then Date = " ("..Date .. ")." else Authors = Authors .. "." end
if ( "" ~= Editors ) then Editors = " in " .. Editors .. "." end
text = Authors .. Coauthors .. " ".. Date .. Chapter .. Others .. Editors .. tcommon .. Publisher .. idcommon
elseif ( "" ~= Editors) then
Editors = Editors .. " (eds.)"
if ( "" ~= Date ) then Date = " (" .. Date .. ")." else Editors = Editors .. "." end
text = Editors .. Date .. Chapter .. tcommon .. Publisher .. idcommon
else
if ( "" ~= Date ) then Date = " " .. Date .. "." end
text = Chapter .. tcommon .. Publisher .. Date .. idcommon
end
Anonymous user