Module:Citation/CS1: Difference between revisions

checked 22 more empty parameters; unitalicized "et al."
m>Wikid77
(checked for more blank codes; cut dots after page-numbers.)
m>Wikid77
(checked 22 more empty parameters; unitalicized "et al.")
Line 106: Line 106:
             local one
             local one
             if ( maximum ~= nil and i == maximum + 1 ) then
             if ( maximum ~= nil and i == maximum + 1 ) then
                 one = "<i>et al.</i>"
                 one = "et al"
             elseif ( maximum ~= nil and i > maximum + 1 ) then
             elseif ( maximum ~= nil and i > maximum + 1 ) then
                 break
                 break
Line 485: Line 485:
]] -- so let's use the original version for now
]] -- so let's use the original version for now
         Date = Year
         Date = Year
         if ( Date ~= nil ) then
         if ( Date ~= nil and Date ~="") then
             local Month = args.month
             local Month = args.month
             if ( Month ~= nil ) then  
             if ( Month ~= nil ) then  
Line 542: Line 542:
         Title = ""  
         Title = ""  
     end
     end
     if ( Conference ~= nil ) then
     if ( Conference ~= nil and Conference ~="" ) then
         if ( ConferenceURL ~= nil ) then
         if ( ConferenceURL ~= nil ) then
             Conference = "[" .. ConferenceURL .. " " .. Conference .. "]"
             Conference = "[" .. ConferenceURL .. " " .. Conference .. "]"
Line 567: Line 567:
         Position = " " .. Position
         Position = " " .. Position
     end
     end
     if ( nil == Page ) then  
     if ( nil == Page or "" == Page ) then  
         Page = ""  
         Page = ""  
     elseif ( Periodical ~= nil ) then
     elseif ( Periodical ~= nil and Periodical ~= "") then
         Page = ": " .. Page
         Page = ": " .. Page
     else
     else
         Page = sepc .." " .. PPrefix .. Page
         Page = sepc .." " .. PPrefix .. Page
     end
     end
     if ( nil == Pages ) then  
     if ( nil == Pages or "" == Pages) then  
         Pages = ""  
         Pages = ""  
     elseif ( Periodical ~= nil ) then
     elseif ( Periodical ~= nil and Periodical ~= "" ) then
         Pages = ": " .. Pages
         Pages = ": " .. Pages
     else
     else
Line 584: Line 584:
         end
         end
     end
     end
     if ( At ~= nil ) then At = sepc .. " " .. At
     if ( At ~= nil and At ~="") then At = sepc .. " " .. At
     else At = "" end
     else At = "" end
     if ( Coauthors ~= nil ) then
     if ( Coauthors ~= nil and Coauthors ~="" ) then
       if ( Authors ~= nil ) then Coauthors = "; " .. Coauthors end
       if ( Authors ~= nil ) then Coauthors = "; " .. Coauthors end
       if ( Date == nil ) then Coauthors = Coauthors .. sepc end
       if ( Date == nil ) then Coauthors = Coauthors .. sepc end
     else Coauthors = "" end
     else Coauthors = "" end
     if ( Others ~= nil ) then Others = " " .. Others .. sepc else Others = "" end
     if ( Others ~= nil and Others ~="" ) then
     if ( TitleType ~= nil ) then TitleType = " (" .. TitleType .. ")" else TitleType = "" end
        Others = " " .. Others .. sepc else Others = "" end
     if ( TitleNote ~= nil ) then TitleNote = " (" .. TitleNote .. ")" else TitleNote = "" end
     if ( TitleType ~= nil and TitleType ~="" ) then
     if ( PublicationPlace ~= nil ) then PublicationPlace = PublicationPlace .. ": " else PublicationPlace = "" end
        TitleType = " (" .. TitleType .. ")" else TitleType = "" end
     if ( Language ~= nil ) then Language = " (in " .. Language .. ")" else Language = "" end
     if ( TitleNote ~= nil and TitleNote ~="" ) then
     if ( Edition ~= nil ) then Edition = " (" .. Edition .. " edition)" else Edition = "" end
        TitleNote = " (" .. TitleNote .. ")" else TitleNote = "" end
     if ( Volume ~= nil ) then Volume = " <b>" .. Volume .. "</b>" else Volume = "" end
     if ( PublicationPlace ~= nil and PublicationPlace ~="" ) then
     if ( Issue ~= nil ) then Issue = " (" .. Issue .. ")" else Issue = "" end
        PublicationPlace = PublicationPlace .. ": "
     if ( Series ~= nil ) then Series = sepc .. " " .. Series else Series = "" end
        else PublicationPlace = "" end
     if ( Format ~= nil ) then Format = " (" .. Format .. ")" else Format = "" end
     if ( Language ~= nil and Language ~="" ) then
     if ( OrigYear ~= nil ) then OrigYear = " [" .. OrigYear .. "]" else OrigYear = "" end
        Language = " (in " .. Language .. ")" else Language = "" end
     if ( Agency ~= nil ) then Agency = sepc .. " " .. Agency else Agency = "" end
     if ( Edition ~= nil and Edition ~="" ) then
        Edition = " (" .. Edition .. " edition)" else Edition = "" end
     if ( Volume ~= nil and Volume ~="" ) then
        Volume = " <b>" .. Volume .. "</b>" else Volume = "" end
     if ( Issue ~= nil and Issue ~="" ) then
        Issue = " (" .. Issue .. ")" else Issue = "" end
     if ( Series ~= nil and Series ~="" ) then
        Series = sepc .. " " .. Series else Series = "" end
     if ( Format ~= nil and Format ~="" ) then
        Format = " (" .. Format .. ")" else Format = "" end
     if ( OrigYear ~= nil and OrigYear ~="" ) then
        OrigYear = " [" .. OrigYear .. "]" else OrigYear = "" end
     if ( Agency ~= nil and Agency ~="" ) then
        Agency = sepc .. " " .. Agency else Agency = "" end
     ------------------------------------ totally unrelated data
     ------------------------------------ totally unrelated data
     if ( Date ~= nil ) then Date = Date else Date = "" end
     if ( Date ~= nil ) then Date = Date else Date = "" end
     if ( Via ~= nil ) then Via = " &mdash; via " .. Via else Via = "" end
     if ( Via ~= nil and Via ~="" ) then
     if ( AccessDate ~= nil )
        Via = " &mdash; via " .. Via else Via = "" end
     if ( AccessDate ~= nil and AccessDate ~="" )
     then AccessDate = '<span class="reference-accessdate">' .. sepc .. ' Retrieved ' .. AccessDate .. '</span>'
     then AccessDate = '<span class="reference-accessdate">' .. sepc .. ' Retrieved ' .. AccessDate .. '</span>'
     else AccessDate = "" end
     else AccessDate = "" end
Anonymous user