Module:Incorporated Entities: Difference between revisions

From The Satanic Wiki
Jump to navigation Jump to search
(Creating module)
 
(fixed incorporated state)
 
(One intermediate revision by one other user not shown)
Line 18: Line 18:
:addRow( 'Established', args.established )
:addRow( 'Established', args.established )
:addRow( 'Entity Type', args.entity_type )
:addRow( 'Entity Type', args.entity_type )
:addRow( 'Occupation', args.incorporated_state )
:addRow( 'Incorporated State', args.incorporated_state )
:addRow( 'State ID#', args.state_id )
:addRow( 'State ID#', args.state_id )
:addRow( 'EIN', args.ein )
:addRow( 'EIN', args.ein )
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 )

Latest revision as of 00:37, 24 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( 'Incorporated State', 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