Module:Test

From roblox chads wiki
Revision as of 13:49, 2 November 2026 by Fuhrer (talk | contribs)
Jump to navigationJump to search

Documentation for this module may be created at Module:Test/doc

local capiunto = require 'capiunto'

local p = {}

function p.main(frame)
	local args = frame:getParent().args
	local headerStyle
	if args.headerstyle and args.headerstyle ~= '' then
		headerStyle = string.format('background-color:%s;', args.headerstyle)
	else
		headerStyle = 'background-color:blue;'
	end
	local retval = capiunto.create( {
		title = args.title,
		headerStyle = headerStyle,
	} )
	:addImage( args.image, args.caption )
    for i,v in pairs(args) do
        if string.sub(v,#v-6,#v-6) == "header" then
            retval:addHeader(v)
        elseif string.sub(v,#v-3,#v-3) == "row" then
            retval:addRow( 'Account Made', v)
        end
    end
	return retval
end

return p