More actions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
function p.main(frame) | function p.main(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local retval = capiunto.create( { | local retval = capiunto.create( { | ||
title = args.title, | title = args.title, | ||
headerStyle = | headerStyle = 'background-color:#232323;', | ||
bodyStyle = 'border: 10px solid red', | |||
} ) | } ) | ||
:addImage( args.image, args.caption ) | :addImage( args.image, args.caption ) |
Revision as of 03:00, 18 February 2025
Documentation for this module may be created at Module:InfoBoxEntity/doc
local capiunto = require 'capiunto'
local p = {}
function p.main(frame)
local args = frame:getParent().args
local retval = capiunto.create( {
title = args.title,
headerStyle = 'background-color:#232323;',
bodyStyle = 'border: 10px solid red',
} )
:addImage( args.image, args.caption )
:addRow( 'Made in', args.releasedate )
:addRow( 'Platform(s)', args.platform )
:addRow( 'License', args.license )
:addRow( 'Developer', args.platform )
return retval
end
return p