Module:Citation/CS1: Difference between revisions
No edit summary |
No edit summary |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1,661: | Line 1,661: | ||
local function get_display_names (max, count, list_name, etal) | local function get_display_names (max, count, list_name, etal) | ||
if is_set (max) then | if is_set (max) then | ||
if 'etal' == max:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings | if 'etal' == max:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings | ||
| Line 1,676: | Line 1,675: | ||
end | end | ||
end | end | ||
if count > 1 then | |||
return | etal = true; | ||
else | |||
etal = false; | |||
end | |||
return 1, etal; | |||
end | end | ||