Module:Navbox: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m Formatting best practices |
||
Line 64: | Line 64: | ||
local navbox_title = '' | local navbox_title = '' | ||
if title ~= nil then | if title ~= nil then | ||
navbox_title = '<th style="width:6em; 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' | navbox_title = '<th style="width: 6em; 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' | ||
end | end | ||
return navbox_title | return navbox_title | ||
Line 85: | Line 85: | ||
-- white border matches with that of the header cells. | -- white border matches with that of the header cells. | ||
-- This navbox is meant to be a sub-navbox, placed on a headerless row. | -- This navbox is meant to be a sub-navbox, placed on a headerless row. | ||
navbox = '<div class="wikitable" style="margin:0; height:100%; border:1px solid white">\n' | navbox = '<div class="wikitable" style="margin: 0; height: 100%; border: 1px solid white;">\n' | ||
.. '<table class="mw-collapsible' .. (is_collapsed and ' mw-collapsed ' or '') .. 'nowraplinks" style="width: 100%; border-spacing:0px">\n' | .. '<table class="mw-collapsible' .. (is_collapsed and ' mw-collapsed ' or '') .. 'nowraplinks" style="width: 100%; border-spacing: 0px;">\n' | ||
.. p.navbox_title(title) | .. p.navbox_title(title) | ||