模块:Navbox:修订间差异

添加249字节 、​ 2022年8月5日 (星期五)
// Edit via Wikiplus
无编辑摘要
(// Edit via Wikiplus)
第19行: 第19行:
   else
   else
     return b
     return b
  end
end
local function switchstate(frame)
  local state=wvar(frame,'state','')
  if (state==plain or state==off) then
    return ''
  else
    return 'mw-collapsible '
          .. wif(wvar(frame,'state',''),state,'autocollapse')
   end
   end
end
end
第42行: 第51行:
local function tablestart(frame)
local function tablestart(frame)
   return '<table cellspacing="0" class="nowraplinks '
   return '<table cellspacing="0" class="nowraplinks '
         .. wif(wvar(frame,'title',''),'','')
         .. wif(wvar(frame,'title',''),switchstate(frame),'')
end
end
function p.navbox(frame)
function p.navbox(frame)
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,469

个编辑