Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
m fixed reversed logic for navbox title
Line 38: Line 38:
local navbox_title = ''
local navbox_title = ''
if is_child_navbox then
if is_child_navbox then
navbox_title = '<table style="width:100%; border-spacing:0px">\n'
else
navbox_title = navbox_title
navbox_title = navbox_title
.. '<div class="wikitable">'
.. '<div class="wikitable">'
Line 44: Line 46:
.. '<th style="width:5%; text-align:center; background-color:#eaecf0; white-space:nowrap; padding:0.25em 0.5em; border:1px solid white" colspan="2"><b>' .. title .. '</b></th>\n'
.. '<th style="width:5%; text-align:center; background-color:#eaecf0; white-space:nowrap; padding:0.25em 0.5em; border:1px solid white" colspan="2"><b>' .. title .. '</b></th>\n'
.. '</tr>\n'
.. '</tr>\n'
else
navbox_title = '<table style="width:100%; border-spacing:0px">\n'
end
end