Module:Citation/CS1: Difference between revisions
reset editor suffix as ", ed." when date exists
m>Wikid77 (for coauthors, omitted extra separator after authors; for date, allowed empty date to use month/day/year.) |
m>Wikid77 (reset editor suffix as ", ed." when date exists) |
||
Line 790: | Line 790: | ||
if ( "" ~= Date ) | if ( "" ~= Date ) | ||
then Date = " ("..Date..")" .. OrigYear .. sepc .. " " | then Date = " ("..Date..")" .. OrigYear .. sepc .. " " | ||
else Authors = Authors .. sepc .. " " | else | ||
if ( string.sub(Authors,-1,1) == sepc) | |||
then Authors = Authors .. " " | |||
else Authors = Authors .. sepc .. " " | |||
end | |||
end | end | ||
if ( "" ~= Editors) then | if ( "" ~= Editors) then | ||
Line 802: | Line 806: | ||
text = Authors .. Date .. Chapter .. Editors .. tcommon .. Issue .. Page .. Pages .. At .. idcommon | text = Authors .. Date .. Chapter .. Editors .. tcommon .. Issue .. Page .. Pages .. At .. idcommon | ||
elseif ( "" ~= Editors) then | elseif ( "" ~= Editors) then | ||
Editors = Editors .. " | if ( "" ~= Date ) then | ||
Editors = Editors .. ", ed." | |||
else Editors = Editors .. sepc .. " " end | Date = " (" .. Date ..")" .. OrigYear .. sepc .. " " | ||
else | |||
Editors = Editors .. " (ed.)" .. sepc .. " " | |||
end | |||
text = Editors .. Date .. Chapter .. tcommon .. Issue .. Page .. Pages .. At .. idcommon | text = Editors .. Date .. Chapter .. tcommon .. Issue .. Page .. Pages .. At .. idcommon | ||
else | else | ||
Line 1,155: | Line 1,162: | ||
--27Feb2013 For coauthors, omitted extra separator after authors. | --27Feb2013 For coauthors, omitted extra separator after authors. | ||
--27Feb2013 For date, allowed empty date to use month/day/year. | --27Feb2013 For date, allowed empty date to use month/day/year. | ||
--27Feb2013 Fixed double-dot ".." at end of authors/coauthors list. | |||
--27Feb2013 Reset editor suffix as ", ed." when date exists. | |||
-- | -- | ||
--End | --End |