Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
Integrate {{Navbox with columns}}, add "type=" parameter.
Line 731:
end
elseif (k:match(cfg.pattern.colheadernum) and v ~= '') then
table.insert(colheadernums, tonumber(k:match(cfg.pattern.colheadernum)))
elseif (k:match(cfg.pattern.colnum) and v ~= '') then
table.insert(colnums, tonumber(k:match(cfg.pattern.colnum)))
elseif (k:match(cfg.pattern.colfooternum) and v ~= '') then
table.insert(colfooternums, tonumber(k:match(cfg.pattern.colfooternum)))
end
end
Line 768:
pargs[andnum('colheaderstyle', n)] or ''
}))
if col:attr(k < #colheadernums) and'colspan', tonumber(pargs[andnum('colheadercolspan', n)]) then)
col:attr('colspan', pargs[andnum('colheadercolspan', n)])
end
col:wikitext(pargs[andnum('colheader', n)])
end
Line 817 ⟶ 815:
pargs[andnum('colfooterstyle', n)] or ''
}))
if col:attr(k < #colfooternums) and'colspan', tonumber(pargs[andnum('colfootercolspan', n)]) then)
col:attr('colspan', pargs[andnum('colfootercolspan', n)])
end
col:wikitext(pargs[andnum('colfooter', n)])
end