求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

模块:Navbox

增加 346 位元組, 5 年前
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
匿名用戶