Module:Incorporated Entities: Difference between revisions

From The Satanic Wiki
Jump to navigation Jump to search
(Creating module)
 
No edit summary
Line 24: Line 24:
:addRow( 'Mail Address', args.mail_address )
:addRow( 'Mail Address', args.mail_address )
:addRow( 'Registered Agent', args.registered_agent )
:addRow( 'Registered Agent', args.registered_agent )
:addRow( 'Doing Business As', args.doning_business_as )
:addRow( 'Doing Business As', args.doing_business_as )
:addRow( 'Past Names', args.past_names )
:addRow( 'Past Names', args.past_names )
:addRow( 'Website', args.website )
:addRow( 'Website', args.website )

Revision as of 03:52, 23 June 2021

Documentation for this module may be created at Module:Incorporated Entities/doc

local capiunto = require 'capiunto'

local p = {}

function p.main(frame)
	local args = frame:getParent().args
	local headerStyle
	if args.headerstyle and args.headerstyle ~= '' then
		headerStyle = string.format('background-color:%s;', args.headerstyle)
	else
		headerStyle = 'background-color:grey;'
	end
	local retval = capiunto.create( {
		headerStyle = headerStyle, 
	} )
	:addHeader( args.title )
	:addImage( args.image, args.caption )
	:addRow( 'Established', args.established )
	:addRow( 'Entity Type', args.entity_type )
	:addRow( 'Occupation', args.incorporated_state )
	:addRow( 'State ID#', args.state_id )
	:addRow( 'EIN', args.ein )
	:addRow( 'Physical Address', args.physical_address )
	:addRow( 'Mail Address', args.mail_address )
	:addRow( 'Registered Agent', args.registered_agent )
	:addRow( 'Doing Business As', args.doing_business_as )
	:addRow( 'Past Names', args.past_names )
	:addRow( 'Website', args.website )
	return retval
end

return p