Module:CIB: Difference between revisions

From The Satanic Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 14: Line 14:
headerStyle = headerStyle,  
headerStyle = headerStyle,  
} )
} )
:addHeader( args.title )
if (args.title ~= '') then
:addImage( args.image, args.caption )
infobox:addHeader( args.title );
:addRow( 'Born', args.born )
end
:addRow( 'Other Names', args.alias )
if (args.image ~= '') then
:addRow( 'Occupation', args.occupation )
infobox:addImage( args.image, args.caption );
:addRow( 'Satanic Affiliation', args.affiliation )
end
if (args.born ~= '') then
infobox:addRow( 'Born', args.born );
end
if (args.alias ~= '') then
infobox:addRow( 'Other Names', args.alias );
end
if (args.occupation ~= '') then
infobox:addRow( 'Occupation', args.occupation );
end
if (args.affiliation ~= '') then
infobox:addRow( 'Satanic Affiliation', args.affiliation );
end
if (args.established ~= '') then
infobox:addRow( 'Established', args.established );
end
if (args.entity_type ~= '') then
infobox:addRow( 'Entity Type', args.entity_type );
end
if (args.incorporated_state ~= '') then
infobox:addRow( 'Incorporated State', args.incorporated_state );
end
if (args.state_id ~= '') then
infobox:addRow( 'State ID#', args.state_id );
end
if (args.ein ~= '') then
infobox:addRow( 'EIN', args.ein );
end
if (args.physical_address ~= '') then
infobox:addRow( 'Physical Address', args.physical_address );
end
if (args.mail_address ~= '') then
infobox:addRow( 'Mail Address', args.mail_address );
end
if (args.registered_agent ~= '') then
infobox:addRow( 'Registered Agent', args.registered_agent );
end
if (args.doing_business_as ~= '') then
infobox:addRow( 'Doing Business As', args.doing_business_as );
end
if (args.past_names ~= '') then
infobox:addRow( 'Past Names', args.past_names );
end
if (args.website ~= '')then
infobox:addRow( 'Website', args.website );
end
return retval
return retval
end
 
end
return p
return p

Revision as of 02:36, 24 June 2021

Documentation for this module may be created at Module:CIB/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, 
	} )
	if (args.title ~= '') then
		infobox:addHeader( args.title );
	end
	if (args.image ~= '') then
		infobox:addImage( args.image, args.caption );
	end
	if (args.born ~= '') then
		infobox:addRow( 'Born', args.born );
	end
	if (args.alias ~= '') then
		infobox:addRow( 'Other Names', args.alias );
	end
	if (args.occupation ~= '') then
		infobox:addRow( 'Occupation', args.occupation );
	end
	if (args.affiliation ~= '') then
		infobox:addRow( 'Satanic Affiliation', args.affiliation );
	end
	if (args.established ~= '') then
		infobox:addRow( 'Established', args.established );
	end
	if (args.entity_type ~= '') then
		infobox:addRow( 'Entity Type', args.entity_type );
	end
	if (args.incorporated_state ~= '') then
		infobox:addRow( 'Incorporated State', args.incorporated_state );
	end
	if (args.state_id ~= '') then
		infobox:addRow( 'State ID#', args.state_id );
	end
	if (args.ein ~= '') then
		infobox:addRow( 'EIN', args.ein );
	end
	if (args.physical_address ~= '') then
		infobox:addRow( 'Physical Address', args.physical_address );
	end
	if (args.mail_address ~= '') then
		infobox:addRow( 'Mail Address', args.mail_address );
	end
	if (args.registered_agent ~= '') then
		infobox:addRow( 'Registered Agent', args.registered_agent );
	end
	if (args.doing_business_as ~= '') then
		infobox:addRow( 'Doing Business As', args.doing_business_as );
	end
	if (args.past_names ~= '') then
		infobox:addRow( 'Past Names', args.past_names );
	end
	if (args.website ~= '')then
		infobox:addRow( 'Website', args.website );
	end
	
	return retval
	
	end
return p