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

Module:InfoBoxEntity

From SWEE.codes wiki

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 = 'background-color:#232323; color: white;',
	} )
	:addImage( args.image, args.caption )
	:addRow( 'Released', args.releasedate )
	:addRow( 'Language', args.lang)
	:addRow( 'Platform(s)', args.platform )
	:addRow( 'License', args.license )
	:addRow( 'Created by', args.dev )
	
	if args.contrib ~= nil then
		retval:addRow( "Contributors", args.contrib)	
	end
	
	retval:addRow( 'Website', args.site )
	
	return retval
end

return p