模块:Navbox:修订间差异

删除9字节 、​ 2022年8月5日 (星期五)
// Edit via Wikiplus
无编辑摘要
(// Edit via Wikiplus)
local p = {}
local function wvar(frame,arg,def)
if(frame.args[arg]) then
return frame.args[arg]
else
return def
end
end
local function border(argframe)
if(arg=="subgroup" or arg=="child")
then
else
local table = mw.html.create( 'table' )
return '<table class="navbox {{{' .. wvar(frame,'class|}}}','') .. '" cellspacing="0" style="{{{' .. wvar(frame,'bodystyle|}}}','')..';{{{'..wvar(frame,'style|}}}','') .. '"><tr><td style="padding:2px;">'
end
end
function p.navbox(frame)
mw.logObject(mw.dumpObject(frame.args))
return wvarborder(frame,'nonono',"none") .. mw.dumpObject(frame.args)
end
return p
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,462

个编辑