變更
per EP
local border
local listnums = {}
local function trim(s)
return (mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1"))
:css('height', '2px')
:tag('td')
:attr('colspan',23)
end
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')
end
local function argNameAndRealTitleAreDifferent()
if border == 'child' or border == 'subgroup' or args.tracking == 'no' then return false end
if args.name ~= mw.title.getCurrentTitle().text then
return true
end
return false
end
if needsHorizontalLists() then table.insert(cats, '没有使用水平列表的导航框') end
if hasBackgroundColors() then table.insert(cats, '使用背景颜色的导航框') end
if argNameAndRealTitleAreDifferent() then table.insert(cats, 'name參數和實際不同的導航框') end
return cats
end