Module:Citation/CS1: Difference between revisions

    m>Wikid77
    (created, as a submodule of Module:Citation, to alter to match Citation Style 1 cite format.)
     
    m>Wikid77
    (changed OrigYear to use [__] for CS1 style.)
    Line 590: Line 590:
         if ( Series ~= nil ) then Series = " " .. Series .. "." else Series = "" end
         if ( Series ~= nil ) then Series = " " .. Series .. "." else Series = "" end
         if ( Format ~= nil ) then Format = " (" .. Format .. ")" else Format = "" end
         if ( Format ~= nil ) then Format = " (" .. Format .. ")" else Format = "" end
         if ( OrigYear ~= nil ) then OrigYear = " " .. OrigYear else OrigYear = "" end
         if ( OrigYear ~= nil ) then OrigYear = " [" .. OrigYear .. "]" else OrigYear = "" end
         if ( Agency ~= nil ) then Agency = " " .. Agency .. "." else Agency = "" end
         if ( Agency ~= nil ) then Agency = " " .. Agency .. "." else Agency = "" end
         if ( Date ~= nil ) then Date = Date else Date = "" end
         if ( Date ~= nil ) then Date = Date else Date = "" end
    Line 676: Line 676:
         -- 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 .. Page .. Pages .. At


        Date = Date .. OrigYear
         local text
         local text
         if ( "" ~= Authors ) then
         if ( "" ~= Authors ) then
             if ( "" ~= Date ) then Date = " ("..Date.."). "
             if ( "" ~= Date ) then Date = " ("..Date..")" .. OrigYear .. ". "
             else Authors = Authors .. ". " end
             else Authors = Authors .. ". " end
             if ( "" ~= Editors ) then Editors = " in " .. Editors .. "." end
             if ( "" ~= Editors ) then Editors = " in " .. Editors .. "." end
    Line 685: Line 684:
         elseif ( "" ~= Editors) then
         elseif ( "" ~= Editors) then
             Editors = Editors .. " (eds.)"
             Editors = Editors .. " (eds.)"
             if ( "" ~= Date ) then Date = " (" .. Date .. "). "
             if ( "" ~= Date ) then Date = " (" .. Date ..")" .. OrigYear .. ". "
             else Editors = Editors .. ". " end
             else Editors = Editors .. ". " end
             text = Editors .. Date .. Chapter .. tcommon .. Publisher .. Agency .. idcommon
             text = Editors .. Date .. Chapter .. tcommon .. Publisher .. Agency .. idcommon
    Line 967: Line 966:
    --15Feb2013 Added Agency for "agency=xx".
    --15Feb2013 Added Agency for "agency=xx".
    --19Feb2013 Copied as Module:Citation/CS1 to alter to match wp:CS1 form.
    --19Feb2013 Copied as Module:Citation/CS1 to alter to match wp:CS1 form.
    --19Feb2013 Changed OrigYear to use [__] for CS1 style.
    --
    --
    --End
    --End