Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
switch over to wikitable for readability and to mimic infobox; address spacing issues on mobile; fix up comments
Ganaram inukshuk (talk | contribs)
No edit summary
Line 57: Line 57:
if title ~= nil then
if title ~= nil then
navbox_title = "|-\n"
navbox_title = "|-\n"
.. '! style="' .. (is_root_navbox and '' or 'font-size: 0.9em; ') .. 'text-align: center; background-color: #eaecf0; white-space: nowrap; padding: 0.25em 0.5em; border: 1px solid white;" colspan="2" | ' .. navbox_title .. "\n"
.. '! style="' .. (is_root_navbox and '' or 'font-size: 0.9em; ') .. 'text-align: center; background-color: #eaecf0; white-space: nowrap; padding: 0.25em 0.5em; border: 1px solid white;" colspan="2" | ' .. title .. "\n"
end
end
return navbox_title
return navbox_title