Module:Test: Difference between revisions
From roblox chads wiki
Jump to navigationJump to search
No edit summary |
No edit summary Tag: Reverted |
||
| Line 22: | Line 22: | ||
retval:addRow( 'Account Made', v) | retval:addRow( 'Account Made', v) | ||
end | end | ||
retval:addHeader(tostring(i)) | |||
end | end | ||
return retval | return retval | ||
Revision as of 13:54, 2 November 2026
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:grey;'
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(tostring(i),#tostring(i)-6,#tostring(i)-6) == "header" then
retval:addHeader(v)
elseif string.sub(tostring(i),#tostring(i)-3,#tostring(i)-3) == "row" then
retval:addRow( 'Account Made', v)
end
retval:addHeader(tostring(i))
end
return retval
end
return p