Module:Navbox: Difference between revisions
ArrowHead294 (talk | contribs) m Try this |
ArrowHead294 (talk | contribs) m Try adding in navbar |
||
Line 71: | Line 71: | ||
if title ~= nil then | if title ~= nil then | ||
navbox_title = "|-\n" | navbox_title = "|-\n" | ||
.. '! style="' .. (is_root_navbox and '' or 'font-size: 0.9em; ') | .. '! <div style="font-weight: normal; font-style: normal; float: left; text-align: left;">' .. frame:preprocess("{{navbar|" .. frame.args["name"] .. "|mini}}") .. '</div>' | ||
.. 'text-align: center; background-color: #eaecf0; white-space: nowrap; | .. '<div 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 .. "</div>\n" | |||
end | end | ||
return navbox_title | return navbox_title |