所有公开日志
跳转到导航
跳转到搜索
所有NeuroWiki公开日志的联合展示。您可以通过选择日志类型、输入用户名(区分大小写)或相关页面(区分大小写)筛选日志条目。
- 2025年3月1日 (六) 21:07 Selfice 留言 贡献创建了页面Module:Tabs (创建页面,内容为“local p = {} function p.main(frame) local args = frame:getParent().args local tabs = {} local indices = {} -- 收集所有存在的标签索引 for k, _ in pairs(args) do local num = k:match('^bt(%d+)$') or k:match('^tab(%d+)$') if num then num = tonumber(num) indices[num] = true end end -- 转换并排序索引 local sorted = {} for k in pairs(indices) do tab…”)
- 2025年3月1日 (六) 20:53 Selfice 留言 贡献删除页面Module:Tabs (内容为:“local p = {} function p.main(frame) local args = frame.args local getArgs = require('Module:Arguments').getArgs args = getArgs(frame, {parentFirst = true}) -- 生成唯一ID前缀 local tabID = 'tab-' .. tostring(math.random(10000,99999)) -- 确定默认标签 local defaultTab = tonumber(args.DefaultTab) or 1 -- 收集标签数…”,唯一贡献者是“Selfice”(讨论))
- 2025年3月1日 (六) 20:19 Selfice 留言 贡献创建了页面Module:Tabs (创建页面,内容为“local p = {} function p.main(frame) local args = frame.args local getArgs = require('Module:Arguments').getArgs args = getArgs(frame, {parentFirst = true}) -- 处理容器属性 local containerAttrs = { ['class'] = 'Tabs ' .. (args.color or 'black'), ['data-label-side'] = ({left=1, right=1, bottom=1, top=1})[args.LabelSide] and args.LabelSide or 'top', ['data-label-color-side-reverse'] = args.LabelColorSideRevers…”)
- 2025年3月1日 (六) 19:59 Selfice 留言 贡献删除页面Module:Tabs (内容为:“local p = {} function p._main(args) local root = mw.html.create() local id = args.id or '0' local color = args.color or 'Lila' local sel = tonumber(args.sel) or 0 -- 生成容器 local container = root :tag('div') :addClass('mc' .. color) :attr('id', 'mc' .. id) -- 生成按钮容器 local buttonConta…”,唯一贡献者是“Selfice”(讨论))
- 2025年3月1日 (六) 18:59 Selfice 留言 贡献创建了页面Module:Tabs (创建页面,内容为“local p = {} -- Helper function to generate a single button local function generateButton(id, index, label, icon, link, isSelected) local class = isSelected and "mcBotoSel" or "mcBoto" local iconHtml = icon and (icon .. " ") or "" return string.format( '<div id="mc%sbt%d" class="%s">%s%s</div>', id, index, class, iconHtml, link, label ) end -- Helper function to generate a single tab content local function generateT…”)