Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
m comments
Line 27: Line 27:
local header_style = '! 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;" |'
local header_style = '! 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;" |'
local data_style = is_content_navbox
local data_style = is_content_navbox
and '| style="padding: 0;" |\n' -- For nested navboxes
and '| style="padding: 0;" |\n' -- For nested navboxes; endline required for nested navboxes to work properly
or  '| style="font-size: 0.9em; padding: 0.25em 0.5em;" |' -- For normal content
or  '| style="font-size: 0.9em; padding: 0.25em 0.5em;" |' -- For normal content; endline not needed as adding it makes rows too thick


table.insert(row, "|-")
table.insert(row, "|-")