Module:IBox

local p = {} local yn = require('Module:Yesno')

-- Start the table function p.start(frame) local args = frame:getParent.args local mode = args.mode == 'infotable' and 'infotable' or 'infobox' --CSS computations local css = mode..' box colored bordered innerbordered fill-td type-' if yn(args.type, true) then css = css..mw.text.split(args.type, " ")[1] else css = css..'basic' end if not (args.bullets == 'on') then css = css..' list-noicon' end if args.float == 'left' then css = css..' float-left-clear' else css = css..' float-right-clear' end css = css..' '..(args.class or '') --Start the box local page = mw.title.getCurrentTitle.text local text = ' ' else return ' ' end end

-- Collapsible boxes function p.box(frame) local args = frame:getParent.args if args.condition ==  then return  end local text = '  ' return text end return p