Module:InfoBoxCharacter: Difference between revisions
From SWEE.codes wiki
More actions
| No edit summary | No edit summary | ||
| Line 13: | Line 13: | ||
| 	:addRow( 'Type', args.chartype) | 	:addRow( 'Type', args.chartype) | ||
| 	:addRow( 'Relativity', args.relatives ) | 	:addRow( 'Relativity', args.relatives ) | ||
| 	:addRow( 'Referenced in', args.ref ) | 	:addRow( 'Referenced in/as', args.ref ) | ||
| 	:addRow( 'Created at', args.dates ) | 	:addRow( 'Created at', args.dates ) | ||
| 	:addRow( 'Created by', args.dev ) | 	:addRow( 'Created by', args.dev ) | ||
Revision as of 23:44, 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/as', args.ref )
	:addRow( 'Created at', args.dates )
	:addRow( 'Created by', args.dev )
	:addRow( 'Gender', args.gender )
	:addRow( 'Sexuality', args.sexuality )
	:addRow( 'Status', args.stats )
	
	return retval
end
return p
