Module:Infobox: Difference between revisions
m cleanup comments |
mNo edit summary |
||
| Line 11: | Line 11: | ||
function p.infobox_header(title, adjacent_links) | function p.infobox_header(title, adjacent_links) | ||
local header = '' | local header = '' | ||
if #adjacent_links == 2 then | if adjacent_links == nil then | ||
header = title | |||
elseif #adjacent_links == 2 then | |||
local prev_link = adjacent_links[1] | local prev_link = adjacent_links[1] | ||
local next_link = adjacent_links[2] | local next_link = adjacent_links[2] | ||