Module:Citation/CS1: Difference between revisions

    m>Wikid77
    (substring: string.sub(tcommon,-1,1) == ".")
    m>Wikid77
    (for CitationClass "journal" shows Publisher after Periodical / Series)
    Line 674: Line 674:
         -- Piece all bits together at last.  At this point, all should be non-nil.
         -- Piece all bits together at last.  At this point, all should be non-nil.
         -- We build things this way because it is more efficient in LUA not to keep reassigning to the same string variable over and over.
         -- We build things this way because it is more efficient in LUA not to keep reassigning to the same string variable over and over.
         local tcommon = Title .. TitleType .. TitleNote .. Format .. Edition .. Language .. Conference .. Periodical .. Series .. Volume .. Issue .. Publisher .. Agency .. Position
         local tcommon
        if ( config.CitationClass == "journal" )
        then tcommon = Title .. TitleType .. TitleNote .. Format .. Edition .. Language .. Conference .. Periodical .. Series .. Publisher .. Agency .. Volume .. Issue .. Position
        else tcommon = Title .. TitleType .. TitleNote .. Format .. Edition .. Language .. Conference .. Periodical .. Series .. Volume .. Issue .. Publisher .. Agency .. Position end
         -- 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
         -- 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 enddot = "."
         local enddot = "."