Modul:Navbox: Unterschied zwischen den Versionen
Reverted 1 edit by Alakzi (talk): Sigh, I meant to do that in the sandbox. (TW)
(Sync and fix styleratio invocation) |
|||
Zeile 271: | Zeile 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 | ||
Zeile 290: | Zeile 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 |