Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
bugfix thicker-than-normal content lines
Ganaram inukshuk (talk | contribs)
more bugfixing
Line 29: Line 29:
-- Headerless row; holds data for simple navboxes or a nested navbox
-- Headerless row; holds data for simple navboxes or a nested navbox
if is_navbox then
if is_navbox then
table.insert(lines, '| style="padding: 0;" colspan="2" |' .. row_content[1])
table.insert(lines, '| style="padding: 0;" colspan="2" | ' .. row_content[1])
else
else
table.insert(lines, '| style="font-size: 0.9em; padding: 0.25em 0.5em;" colspan="2" | ' .. row_content[1])
table.insert(lines, '| style="font-size: 0.9em; padding: 0.25em 0.5em;" colspan="2" | ' .. row_content[1])
Line 35: Line 35:
else
else
-- Header + Data row; typical usecase for a row
-- Header + Data row; typical usecase for a row
table.insert(lines, '! 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;" |' .. row_content[1])
table.insert(lines, '! 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;" | ' .. row_content[1])
if is_navbox then
if is_navbox then
table.insert(lines, '| style="padding: 0;" | ' .. row_content[2])
table.insert(lines, '| style="padding: 0;" | ' .. row_content[2])
Line 45: Line 45:
return table.concat(lines, "\n")
return table.concat(lines, "\n")
end
end


-- Navbox title
-- Navbox title