Module:Infobox: Difference between revisions

Ganaram inukshuk (talk | contribs)
m lowercase name
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 88: Line 88:
table.insert(lines, '|-')
table.insert(lines, '|-')
table.insert(lines, '| colspan="2" style="text-align: center; font-size: 0.8em;" | ' .. row_content)
table.insert(lines, '| colspan="2" style="text-align: center; font-size: 0.8em;" | ' .. row_content)
return table.concat(lines, "\n")
end
-- Nested helper function
-- Produces the navbar, if specified
function navbar()
local lines = {}
table.insert(lines, '|-')
table.insert(lines, '| colspan="2" style="text-align: center;" | ' .. navbar(navbar(name, "mini", "")))
return table.concat(lines, "\n")
return table.concat(lines, "\n")
Line 131: Line 141:
-- Template navbar
-- Template navbar
if name then
if name then
table.insert(lines, header_footer_row(navbar(name, "mini", "")))
table.insert(lines, navbar())
end
end