Module:Navbox: Difference between revisions
No edit summary |
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' | ||
end | end | ||