Module:Bar box/sandbox explained

require('Module:Lua class')require('strict')

local BarBox = class('BarBox',)

local getArgs = require('Module:Arguments').getArgs

local p =

function p.box(frame) local args = getArgs(frame) local box = BarBox.create(args) return tostring(box)end

function p.percent(frame) local args = getArgs(frame) return BarBox.percent(args)end

function p.pixel(frame) local args = getArgs(frame) return BarBox.pixel(args)end

function p.stacked(frame) local yesno = require('Module:Yesno') local args = getArgs(frame,) return BarBox.stacked(args)end

function p.gap(frame) local args = getArgs(frame) return BarBox.gap(args)end

return p