Module:Side box/TEW

local Box = {} local SB = require('Module:Side box') local HF = require('Module:HF') local L = require('Module:List') local getArgs = require('Module:Arguments').getArgs

local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame) return Box[funcName](args) end end

local function collapsiblediv( content, label ) local labeltext = label or '' local outerDiv = mw.html.create( 'div' ) :attr('data-expandtext','+'):attr('data-collapsetext','-') :addClass('toccolours mw-collapsible mw-collapsed') :tag('div'):addClass('metadata-section-label'):wikitext(labeltext):done :tag('div'):addClass('mw-collapsible-content mhlist hwrap'):wikitext(content):allDone return tostring(outerDiv) end

-- Implements Box.abilities = makeInvokeFunc('_abilities')

function Box._abilities( args ) local abilitieslist = HF.explode( ";", args[2] or '' ) local boxargs = { text = args[1], class = 'hlist hwrap plainlinks infobox', style = 'text-align: center' }	boxargs.below = L.makeList('horizontal',abilitieslist) local box = SB._main(boxargs) return box end

return Box