Editing Module:Navbox
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 134: | Line 134: | ||
titleCell | titleCell | ||
:tag('div') | :tag('div') | ||
:attr('id', mw.uri.anchorEncode(args.title)) | :attr('id', mw.uri.anchorEncode(args.title)) | ||
:addClass(args.titleclass) | :addClass(args.titleclass) | ||
Line 164: | Line 163: | ||
:attr('colspan', getAboveBelowColspan()) | :attr('colspan', getAboveBelowColspan()) | ||
:tag('div') | :tag('div') | ||
:wikitext(processItem(args.above, args.nowrapitems)) | :wikitext(processItem(args.above, args.nowrapitems)) | ||
end | end | ||
Line 205: | Line 202: | ||
if args['group' .. listnum] then | if args['group' .. listnum] then | ||
local groupCell = row:tag('th') | local groupCell = row:tag('th') | ||
groupCell | groupCell | ||
Line 412: | Line 403: | ||
:attr('role', 'navigation') | :attr('role', 'navigation') | ||
:node(tbl) | :node(tbl) | ||
if args.title then | |||
if args.title | nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title)) | ||
nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title | |||
else | else | ||
nav:attr('aria-label', 'Navbox') | nav:attr('aria-label', 'Navbox') | ||
Line 435: | Line 425: | ||
:css('padding', '3px') | :css('padding', '3px') | ||
:node(tbl) | :node(tbl) | ||
if args.title then | |||
if args.title | nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title)) | ||
nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title | |||
else | else | ||
nav:attr('aria-label', 'Navbox') | nav:attr('aria-label', 'Navbox') |