Module:InfoBoxEntity: Difference between revisions
From SWEE.codes wiki
More actions
| No edit summary | No edit summary | ||
| Line 16: | Line 16: | ||
| 	:addRow( 'License', args.license ) | 	:addRow( 'License', args.license ) | ||
| 	:addRow( 'Created by', args.dev ) | 	:addRow( 'Created by', args.dev ) | ||
| 	:addRow( 'Website', args.site ) | |||
| 	if args.contrib ~= nil then | |||
| 		retval:addRow( "Contributors", args.contrib)	 | |||
| 	end | |||
| 	retval:addRow( 'Website', args.site ) | |||
| 	return retval | 	return retval | ||
Latest revision as of 23:24, 11 March 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 = '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
