Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
This if statement isn't needed as p._navbox does the same test.
No edit summary
Line 751:
or 'width:auto; margin-left:auto; margin-right:auto'
coltable:attrcssText('style', concatstyles({
'border-spacing: 0px; text-align:left',
tablestyle,
Line 762:
for k, n in ipairs(colheadernums) do
col = row:tag('td'):attr('class', 'navbox-abovebelow')
col:attrcssText('style', concatstyles({
(k > 1) and 'border-left:2px solid #fdfdfd' or '',
'font-weight:bold',
Line 774:
--- Main columns ---
row = coltable:tag('tr'):attrcss('stylevertical-align', 'vertical-align:top')
for k, n in ipairs(colnums) do
if k == 1 and isblank(pargs[andnum('colheader', 1)])
Line 784:
if not nopad then
row:tag('td'):wikitext('   ')
:attrcss('stylewidth', 'width:'..(pargs[cfg.arg.padding] or '5em')..';')
end
end
col = row:tag('td'):attr('class', 'navbox-list')
col:attrcssText('style', concatstyles({
(k > 1) and 'border-left:2px solid #fdfdfd' or '',
'padding:0px',
Line 808:
for k, n in ipairs(colfooternums) do
col = row:tag('td'):attr('class', 'navbox-abovebelow')
col:attrcssText('style', concatstyles({
(k > 1) and 'border-left:2px solid #fdfdfd' or '',
'font-weight:bold',