Module:Navbox: Difference between revisions
Reverted 1 edit by Alakzi (talk): Sigh, I meant to do that in the sandbox. (TW)
m>Izkala (Sync and fix styleratio invocation) |
m>Izkala |
||
Line 271: | Line 271: | ||
local function hasBackgroundColors() | local function hasBackgroundColors() | ||
return mw.ustring.match(args.titlestyle or '','background') or mw.ustring.match(args.groupstyle or '','background') or mw.ustring.match(args.basestyle or '','background') | return mw.ustring.match(args.titlestyle or '','background') or mw.ustring.match(args.groupstyle or '','background') or mw.ustring.match(args.basestyle or '','background') | ||
end | end | ||
Line 290: | Line 277: | ||
if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end | if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end | ||
if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end | if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end | ||
return cats | return cats | ||
end | end |