Module:Conflict

From roblox chads wiki
Revision as of 20:56, 2 November 2026 by Swobodap (talk | contribs)
Jump to navigationJump to search

Documentation for this module may be created at Module:Conflict/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 )
    :addWikitext([[
		<div style="margin:auto;">
		<table style="width:20%">
		<tr>
		<th>Side 1</th>
		<th>Side 2</th>
		</tr>
		<tr>
		<td>1p1s</td>
		<td>H.T.B</td>
		</tr>
		<tr>
		<td>S.O.S</td>
		<td>Leftists</td>
		</tr>
		</table>
		</div>
	]])
	return retval
end

return p