Jump to content

Module:Citation/CS1: Difference between revisions

changed to omit dot in "et al." when sepc is "." separator; quickened other sepc text by moving inside gated-if structures
m>Wikid77
(fixed author's editor for "in" or "In" and put space after sepc.)
m>Wikid77
(changed to omit dot in "et al." when sepc is "." separator; quickened other sepc text by moving inside gated-if structures)
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 = "et al"
                 local etal_text = "et al."
                if (sepc == ".") then etal_text = "et al" end
                one = etal_text
             elseif ( maximum ~= nil and i > maximum + 1 ) then
             elseif ( maximum ~= nil and i > maximum + 1 ) then
                 break
                 break
Line 637: Line 639:
     if ( Via ~= nil and Via ~="" ) then
     if ( Via ~= nil and Via ~="" ) then
         Via = " — via " .. Via else Via = "" end
         Via = " — via " .. Via else Via = "" end
    local retrv_text = ' retrieved '
    if (sepc == ".") then retrv_text = ' Retrieved ' end
     if ( AccessDate ~= nil and AccessDate ~="" )
     if ( AccessDate ~= nil and AccessDate ~="" )
     then AccessDate = '<span class="reference-accessdate">'
     then local retrv_text = " retrieved "
        if (sepc == ".") then retrv_text = " Retrieved " end
        AccessDate = '<span class="reference-accessdate">'
         .. sepc .. retrv_text .. AccessDate .. '</span>'
         .. sepc .. retrv_text .. AccessDate .. '</span>'
     else AccessDate = "" end
     else AccessDate = "" end
Line 1,126: Line 1,128:
--22Feb2013 Capitalized "Archived/Retrieved" only when sepc is dot ".".
--22Feb2013 Capitalized "Archived/Retrieved" only when sepc is dot ".".
--23Feb2013 Fixed author editor for "in" or "In" and put space after sepc.
--23Feb2013 Fixed author editor for "in" or "In" and put space after sepc.
--23Feb2013 Changed to omit dot in "et al." when sepc is "." separator.
--
--
--End
--End
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.