Module:Navbox: Difference between revisions
switch over to wikitable for readability and to mimic infobox; address spacing issues on mobile; fix up comments |
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" | ' .. | .. '! 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 |