Module:Infobox: Difference between revisions

Ganaram inukshuk (talk | contribs)
m cleanup comments
Ganaram inukshuk (talk | contribs)
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]