Module:Navbox: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported |
remove titlegroup per templatestyles section on talk page |
||
Line 98: | Line 98: | ||
local titleRow = tbl:tag('tr') | local titleRow = tbl:tag('tr') | ||
local titleCell = titleRow:tag('th'):attr('scope', 'col') | local titleCell = titleRow:tag('th'):attr('scope', 'col') | ||
local titleColspan = 2 | local titleColspan = 2 | ||
if args[cfg.arg.imageleft] then titleColspan = titleColspan + 1 end | if args[cfg.arg.imageleft] then titleColspan = titleColspan + 1 end | ||
if args[cfg.arg.image] then titleColspan = titleColspan + 1 end | if args[cfg.arg.image] then titleColspan = titleColspan + 1 end | ||
titleCell | titleCell | ||
Line 287: | Line 268: | ||
cfg.arg.bodyclass, cfg.arg.listclass, cfg.arg.aboveclass, | cfg.arg.bodyclass, cfg.arg.listclass, cfg.arg.aboveclass, | ||
cfg.arg.belowclass, cfg.arg.titleclass, cfg.arg.navboxclass, | cfg.arg.belowclass, cfg.arg.titleclass, cfg.arg.navboxclass, | ||
cfg.arg.groupclass | cfg.arg.groupclass, cfg.arg.imageclass | ||
} | } | ||
local patterns = { | local patterns = { | ||
Line 319: | Line 300: | ||
return true | return true | ||
end | end | ||
end | end | ||
return false | return false | ||
Line 358: | Line 332: | ||
if isIllegible() then table.insert(cats, cfg.category.illegible) end | if isIllegible() then table.insert(cats, cfg.category.illegible) end | ||
if hasBorders() then table.insert(cats, cfg.category.borders) end | if hasBorders() then table.insert(cats, cfg.category.borders) end | ||
return cats | return cats | ||
end | end |