Module:Citation/CS1: Difference between revisions

    m>Wikid77
    (fixed to show optional Format before endtitle "."; fixed to not show duplicate Publisher/Agency.)
    m>Wikid77
    (moved page number to after date for CitationClass "web"; put period after Format or Edition.)
    Line 580: Line 580:
         else Coauthors = "" end
         else Coauthors = "" end
         if ( Others ~= nil ) then Others = " " .. Others .. "." else Others = "" end
         if ( Others ~= nil ) then Others = " " .. Others .. "." else Others = "" end
         if ( TitleType ~= nil ) then TitleType = " (" .. TitleType .. ")." else TitleType = "" end
         if ( TitleType ~= nil ) then TitleType = " (" .. TitleType .. ")" else TitleType = "" end
         if ( TitleNote ~= nil ) then TitleNote = " (" .. TitleNote .. ")." else TitleNote = "" end
         if ( TitleNote ~= nil ) then TitleNote = " (" .. TitleNote .. ")" else TitleNote = "" end
         if ( PublicationPlace ~= nil ) then PublicationPlace = PublicationPlace .. ": " else PublicationPlace = "" end
         if ( PublicationPlace ~= nil ) then PublicationPlace = PublicationPlace .. ": " else PublicationPlace = "" end
         if ( Language ~= nil ) then Language = " (in " .. Language .. ")" else Language = "" end
         if ( Language ~= nil ) then Language = " (in " .. Language .. ")" else Language = "" end
    Line 673: Line 673:
         local idcommon = ARXIV .. ASIN .. BIBCODE .. DOI .. ID .. ISBN .. JFM .. JSTOR .. LCCN .. MR .. OCLC .. OL .. OSTI .. PMC .. PMID .. RFC .. SSRN .. URL .. ZBL .. Archived .. AccessDate .. Via .. SubscriptionRequired .. Lay .. Quote .. PostScript
         local idcommon = ARXIV .. ASIN .. BIBCODE .. DOI .. ID .. ISBN .. JFM .. JSTOR .. LCCN .. MR .. OCLC .. OL .. OSTI .. PMC .. PMID .. RFC .. SSRN .. URL .. ZBL .. Archived .. AccessDate .. Via .. SubscriptionRequired .. Lay .. Quote .. PostScript
         local endtitle = "."
         local endtitle = "."
         if (TitleType ~= "" or TitleNote ~= "" or Format ~= "")
         if (Title == "")
         then endtitle = "" end
         then endtitle = "" end
         local tcommon = Title .. TitleType .. TitleNote .. Format .. endtitle .. Edition .. Language .. Conference .. Periodical .. Series .. Volume .. Issue .. Publisher .. Agency .. Position .. Page .. Pages .. At
         local tcommon = Title .. TitleType .. TitleNote .. Format .. Edition .. Language .. endtitle .. Conference .. Periodical .. Series .. Volume .. Issue .. Publisher .. Agency .. Position
         -- DEBUG: tcommon = "/Title="..Title .. "/TitleType="..TitleType .. "/TitleNote="..TitleNote .. "/Format="..Format .. "/Edition="..Edition .. "/Language="..Language .. "/Conference="..Conference .. "/Periodical="..Periodical .. "/Series="..Series .. "/Volume="..Volume .. "/Issue="..Issue .. "/Position="..Position .. Page .. Pages .. At
         -- DEBUG: tcommon = "/Title="..Title .. "/TitleType="..TitleType .. "/TitleNote="..TitleNote .. "/Format="..Format .. "/Edition="..Edition .. "/Language="..Language .. "/Conference="..Conference .. "/Periodical="..Periodical .. "/Series="..Series .. "/Volume="..Volume .. "/Issue="..Issue .. "/Position="..Position


         local text
         local text
    Line 683: Line 683:
             else Authors = Authors .. ". " end
             else Authors = Authors .. ". " end
             if ( "" ~= Editors ) then Editors = " in " .. Editors .. "." end
             if ( "" ~= Editors ) then Editors = " in " .. Editors .. "." end
             text = Authors .. Coauthors .. " "..Date .. Chapter .. Others .. Editors .. tcommon .. idcommon
             text = Authors .. Coauthors .. " "..Date .. Chapter .. Others .. Editors .. tcommon .. Page .. Pages .. At .. idcommon
         elseif ( "" ~= Editors) then
         elseif ( "" ~= Editors) then
             Editors = Editors .. " (eds.)"
             Editors = Editors .. " (eds.)"
             if ( "" ~= Date ) then Date = " (" .. Date ..")" .. OrigYear .. ". "
             if ( "" ~= Date ) then Date = " (" .. Date ..")" .. OrigYear .. ". "
             else Editors = Editors .. ". " end
             else Editors = Editors .. ". " end
             text = Editors .. Date .. Chapter .. tcommon .. idcommon
             text = Editors .. Date .. Chapter .. tcommon .. Page .. Pages .. At .. idcommon
         else
         else
             if ( "" ~= Date ) then Date = " " .. Date .. "." end
             if ( "" ~= Date ) then Date = " " .. Date .. "." end
             text = Chapter .. tcommon .. Date .. idcommon
             text = Chapter .. tcommon .. Date .. Page .. Pages .. At .. idcommon
         end
         end