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: Difference between revisions

From SWEE.codes wiki
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..."
 
mNo edit summary
Line 16: Line 16:
:addRow( 'Created at', args.dates )
:addRow( 'Created at', args.dates )
:addRow( 'Created by', args.dev )
:addRow( 'Created by', args.dev )
:addRow( 'Sexuality', args.sexuality )
:addRow( 'Status', args.stats )
return retval
return retval

Revision as of 23:16, 18 February 2025

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 )
	:addRow( 'Sexuality', args.sexuality )
	:addRow( 'Status', args.stats )
	
	return retval
end

return p