Module:Navbox: Difference between revisions

ArrowHead294 (talk | contribs)
m Okay, I understand now why the functions should be separate. Also note that you don't need the "dummy" «span» element if the nested navbox isn't collapsible as the «div» should centre itself.
ArrowHead294 (talk | contribs)
mNo edit summary
Line 64: Line 64:
.. (has_navbar and navbar(name, "mini", "") or "") .. '</span>'
.. (has_navbar and navbar(name, "mini", "") or "") .. '</span>'
.. '<span style="font-size: 1.05em;">' .. title .. "</span>"
.. '<span style="font-size: 1.05em;">' .. title .. "</span>"
.. ((not is_collapsible) and '<span style="display: inline-block; float: right; text-align: right; font-size: 0.8em; width: 5em;">&nbsp;</span>' or "")
.. (is_collapsible and '' or '<span style="display: inline-block; float: right; text-align: right; font-size: 0.8em; width: 5em;">&nbsp;</span>')
.. '\n'
.. '\n'
end
end