Module:Navbox: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 29: Line 29:
else
else
-- Row data is normal data
-- Row data is normal data
row = row .. '| style="font-size: 0.9em; padding: 0.25em 0.5em;" colspan="2" | ' .. row_content[1] .. "\n"
row = row .. '| style="font-size: 0.9em; padding: 0.5em 0.5em;" colspan="2" | ' .. row_content[1] .. "\n"
     end
     end
else
else
Line 36: Line 36:
-- Row data is a child navbox; data cell has no padding
-- Row data is a child navbox; data cell has no padding
row = row
row = row
.. '! style="white-space: nowrap; font-size: 0.9em; width: 5%; text-align: right; background-color: #eaecf0; padding: 0.25em 0.5em; border: 1px solid white;" |'
.. '! style="white-space: nowrap; font-size: 0.9em; width: 5%; text-align: right; background-color: #eaecf0; padding: 0.5em 0.5em; border: 1px solid white;" |'
..  row_content[1] .. "\n"
..  row_content[1] .. "\n"
.. '| style="padding: 0;" |\n'  
.. '| style="padding: 0;" |\n'  
Line 43: Line 43:
-- Row data is normal data
-- Row data is normal data
row = row
row = row
.. '! style="white-space: nowrap; font-size: 0.9em; width: 5%; text-align: right; background-color: #eaecf0; padding: 0.25em 0.5em; border: 1px solid white;" |'
.. '! style="white-space: nowrap; font-size: 0.9em; width: 5%; text-align: right; background-color: #eaecf0; padding: 0.5em 0.5em; border: 1px solid white;" |'
..  row_content[1] .. "\n"
..  row_content[1] .. "\n"
.. '| style="font-size: 0.9em; padding: 0.25em 0.5em;" | ' .. row_content[2] .. "\n"
.. '| style="font-size: 0.9em; padding: 0.5em 0.5em;" | ' .. row_content[2] .. "\n"
end
end
end
end
Line 60: Line 60:
navbox_title = "|-\n"
navbox_title = "|-\n"
.. '! 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.5em 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 style="display: inline-block; float: left; text-align: left; font-weight: normal; font-style: normal; min-width: 4em; padding: 0px; margin: 0px;">'
.. (has_navbar and navbar(name, "mini", "") or "") .. '</span>'
.. (has_navbar and navbar(name, "mini", "") or "") .. '</span>'
Line 76: Line 76:
navbox_title = "|-\n"
navbox_title = "|-\n"
.. '! 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.5em 0.5em; border: 1px solid white;" colspan="2" | '  
.. (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 '')
.. (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>"