Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
check navbar sandbox
aria-labelledby fallbacks: if no title, then above; if no above, and only one group, then group
Line 398:
:attr('role', 'navigation')
:node(tbl)
if args.title or args.above or (args.group1 and not args.group2) then
nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title or args.above or args.group1))
else
nav:attr('aria-label', 'Navbox')
Line 419:
:css('padding', '3px')
:node(tbl)
if args.title or args.above or (args.group1 and not args.group2) then
nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title or args.above or args.group1))
else
nav:attr('aria-label', 'Navbox')