Module:Infobox: Difference between revisions
No edit summary |
No edit summary |
||
| Line 32: | Line 32: | ||
local has_adjacent = (prev_link and #prev_link > 0) or (next_link and #next_link > 0) | local has_adjacent = (prev_link and #prev_link > 0) or (next_link and #next_link > 0) | ||
if has_adjacent then | if has_adjacent then | ||
put_adjacent_x_links(title, s, prev_link, next_link) | s = put_adjacent_x_links(title, s, prev_link, next_link) | ||
else | else | ||
s = s .. title | s = s .. title | ||
| Line 77: | Line 77: | ||
end | end | ||
if has_adjacent_x then | if has_adjacent_x then | ||
put_adjacent_x_links(title, s, prev_x, next_x) | s = put_adjacent_x_links(title, s, prev_x, next_x) | ||
else | else | ||
s = s .. title | s = s .. title | ||