MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

模块:Navbox:修订间差异

来自MCBBS Wiki
跳到导航 跳到搜索
(// Edit via Wikiplus)
(// Edit via Wikiplus)
第19行: 第19行:
function p.navbox(frame)
function p.navbox(frame)
mw.logObject(mw.dumpObject(frame.args))
mw.logObject(mw.dumpObject(frame.args))
return frame.args.nonono .. mw.dumpObject(frame.args)
return wif(frame.args.nonono,"none") .. mw.dumpObject(frame.args)
end
end
return p
return p

2022年8月5日 (五) 21:49的版本

可在模块:Navbox/doc创建此模块的帮助文档

local p = {}
local function wif(arg,def)
  if(arg) then
    return arg
  else
    return def
  end
end
local function border(arg)
  if(arg=="subgroup" or arg=="child") then
    return "</div>"
  elseif(arg=="none") then
    return ""
  else
    local table = mw.html.create( 'table' )
    return tostring(table)
  end
end
function p.navbox(frame)
mw.logObject(mw.dumpObject(frame.args))
return wif(frame.args.nonono,"none") .. mw.dumpObject(frame.args)
end
return p