Changes
navigation div instead of single-cell table wrapper
titleCell
end
local res = mw.html.create()
if border == 'none' then
local nav = res:tag('div') :attr('role', 'navigation') :node(tbl) if args.title then nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title)) else nav:attr('aria-label', 'Navbox') end
elseif border == 'subgroup' or border == 'child' then
-- We assume that this navbox is being rendered in a list cell of a parent navbox, and is
:wikitext('<div>') -- XXX: hack due to lack of unclosed support in mw.html.
else
local nav = res :tag('tablediv') :addClassattr('navboxrole', 'navigation') :cssaddClass('border-spacingnavbox', 0) :cssText(args.bodystyle) :cssText(args.style) :tagcss('trpadding', '3px') :tagnode(tbl) if args.title then nav:attr('tdaria-labelledby', mw.uri.anchorEncode(args.title)) else nav:cssattr('paddingaria-label', '2pxNavbox') :node(tbl) end
end