Module:Bar 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.log(frame) local args = getArgs(frame) local outArgs = outArgs[3] = math.log((tonumber(args[4]) ~= nil) and (args[4] + 1) or 100)/ math.log((tonumber(args[1]) ~= nil) and args[1] or 2)*30 outArgs[5] = ((args[6] or ) ~= ) and args[6] or ((args[4] or ) .. (args[5] or )) return BarBox.pixel(outArgs)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