Module:Conflict: Difference between revisions
From roblox chads wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
local retval = capiunto.create( { | local retval = capiunto.create( { | ||
title = args.title, | title = args.title, | ||
headerStyle = headerStyle, | headerStyle = headerStyle, | ||
} ) | } ) | ||
:addImage( args.image, args.caption ) | :addImage( args.image, args.caption ) | ||
:addWikitext([[< | :addWikitext([[ | ||
<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> | |||
]]) | |||
return retval | return retval | ||
end | end | ||
return p | return p | ||
Revision as of 20:53, 2 November 2026
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([[
<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>
]])
return retval
end
return p