Module:Navbox: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
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.
Line 77: Line 77:
.. '! style="text-align: center; background-color: #eaecf0; white-space: nowrap; margin: 0em 4em 0em 4em;'
.. '! style="text-align: center; background-color: #eaecf0; white-space: nowrap; margin: 0em 4em 0em 4em;'
.. 'padding: 0.25em 0.5em; border: 1px solid white;" colspan="2" | '  
.. 'padding: 0.25em 0.5em; border: 1px solid white;" colspan="2" | '  
.. '<span style="display: inline-block; float: left; text-align: left; font-weight: normal; font-style: normal; min-width: 4em; padding: 0px; margin: 0px;"></span>'
.. (is_collapsible and '<span style="display: inline-block; float: left; text-align: left; font-weight: normal; font-style: normal; min-width: 4em; padding: 0px; margin: 0px;">&nbsp;</span>' or '')
.. '<span style="font-size: 0.9em;">' .. title .. "</span>"
.. '<span style="font-size: 0.9em;">' .. 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 "")
.. '\n'
.. '\n'
end
end