Module:Citation/CS1: Difference between revisions
fixed dot "." when Publisher & omit parentheses "(publisher)" if CitationClass "web" etc.
m>Wikid77 (moved page number to after date for CitationClass "web"; put period after Format or Edition.) |
m>Wikid77 (fixed dot "." when Publisher & omit parentheses "(publisher)" if CitationClass "web" etc.) |
||
Line 651: | Line 651: | ||
Transcript = "" | Transcript = "" | ||
end | end | ||
local Publisher | local Publisher = "" | ||
if ( Periodical ~= nil ) then | if ( Periodical ~= nil and | ||
config.CitationClass ~= "web" ) then | |||
if ( PublicationDate ~= nil ) then PublicationDate = " " .. PublicationDate else PublicationDate = "" end | if ( PublicationDate ~= nil ) then PublicationDate = " " .. PublicationDate else PublicationDate = "" end | ||
if ( PublisherName ~= nil ) then | if ( PublisherName ~= nil ) then | ||
Line 663: | Line 664: | ||
else | else | ||
if ( PublicationDate ~= nil ) then PublicationDate = " (published " .. PublicationDate .. ")" else PublicationDate = "" end | if ( PublicationDate ~= nil ) then PublicationDate = " (published " .. PublicationDate .. ")" else PublicationDate = "" end | ||
if ( PublisherName ~= nil ) then Publisher = " " .. PublicationPlace .. PublisherName .. PublicationDate .. "." else Publisher = "" end | if ( PublisherName ~= nil ) then Publisher = ". " .. PublicationPlace .. PublisherName .. PublicationDate .. "." else Publisher = "" end | ||
end | end | ||
-- Several of the above rely upon detecting this as nil, so do it last. | -- Several of the above rely upon detecting this as nil, so do it last. | ||
if ( Periodical ~= nil ) then Periodical = " <i>" .. Periodical .. "</i>." | local enddot = "" | ||
if ( Periodical ~= nil ) then | |||
Periodical = " <i>" .. Periodical .. "</i>" | |||
if ( Publisher == "" ) then Publisher = "." end | |||
else Periodical = "" end | else Periodical = "" end | ||