模块:Navbox:修订间差异

添加269字节 、​ 2022年10月6日 (星期四)
编辑“模块:Navbox” // 维基盐编辑器
(// Edit via Wikiplus)
(编辑“模块:Navbox” // 维基盐编辑器)
-- 此模块引用自维基百科同名页面,引用行为依据 CC BY-SA 3.0 条款
--
-- 部分内容因为本地化或其他修改,可能与原模块有出入
-- This module will implement {{Navbox}}
 
--
-- 此模块实现了 {{Navbox}}
 
local p = {}
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
if args.title and (args.state ~= 'plain' and args.state ~= 'off') then
tbl
:addClass('mw-collapsible')
:addClass(args.state or 'autocollapse')
end
end
-- renderTrackingCategories(res) -- 本 Wiki 暂不需要此功能
return tostring(res)
getArgs = require('Module:Arguments').getArgs
end
-- args = getArgs(frame, {wrappers = '模板Template:Navbox'}) -- 可能导致无法获取正确参数的问题
args = getArgs(frame)
 
-- Read the arguments in the order they'll be output in, to make references number in the right order.