Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:InfoBoxCharacter

From SWEE.codes wiki
Revision as of 22:16, 18 February 2025 by Swee (talk | contribs) (Created page with "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 = 'background-color:#232323; color: white;', } ) :addImage( args.image, args.caption ) :addRow( 'Type', args.chartype) :addRow( 'Relativity', args.relatives ) :addRow( 'Referenced in', args.ref ) :addRow( 'Created at', args.dates ) :addRow( 'C...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:InfoBoxCharacter/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 = 'background-color:#232323; color: white;',
	} )
	:addImage( args.image, args.caption )
	:addRow( 'Type', args.chartype)
	:addRow( 'Relativity', args.relatives )
	:addRow( 'Referenced in', args.ref )
	:addRow( 'Created at', args.dates )
	:addRow( 'Created by', args.dev )
	
	return retval
end

return p