模块:Navbox:修订间差异

添加267字节 、​ 2023年2月17日 (星期五)
已保护“模块:Navbox”:​高流量页面([编辑=允许巡查员和管理员](无限期)[移动=允许巡查员和管理员](无限期))
(搬运自Wikipedia)
(已保护“模块:Navbox”:​高流量页面([编辑=允许巡查员和管理员](无限期)[移动=允许巡查员和管理员](无限期)))
 
(未显示2个用户的3个中间版本)
-- 此模块引用自维基百科同名页面,引用行为依据 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.
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,462

个编辑