Module:Infobox: Difference between revisions
bugfix infobox title |
m simplify code |
||
| Line 213: | Line 213: | ||
local is_upper_lower_links_present = | local is_upper_lower_links_present = | ||
any_keys_present(args, upper_links) or any_keys_present(args, lower_links) | any_keys_present(args, upper_links) or any_keys_present(args, lower_links) | ||
local is_side_links_present = any_keys_present(args, side_links) | |||
-- Build adjacent_links | -- Build adjacent_links | ||
| Line 233: | Line 234: | ||
args[key] = nil | args[key] = nil | ||
end | end | ||
elseif is_side_links_present then | |||
-- Left and right links only | -- Left and right links only | ||
for _, key in ipairs(side_links) do | for _, key in ipairs(side_links) do | ||
| Line 240: | Line 241: | ||
end | end | ||
end | end | ||
args["Adjacent Links"] = adjacent_links | |||
-- Preprocess rows | -- Preprocess rows | ||