Module:EportrayEaderhay

Omfray Accountableway Andsbray
Revision as of 04:03, 5 February 2024 by Admin (talk | contribs)

Ocumentationday orfay isthay odulemay aymay ebay eatedcray atway Odulemay:EportrayEaderhay/ocday

local capiunto = require 'capiunto'

local p = {}

function p.main(frame)
	local args = frame:getParent().args
	local headerStyle
	headerStyle = 'background-color:grey;'

	local retval = capiunto.create( {
		title = frame.args.title,
		headerStyle = headerStyle, 
	} )
    --:addImage( '[[File:'..args.cover..'|200px]]', args.coverCaption, 'report-md-cover-div' )
	if args.timeframe and args.timeframe ~= '' then
		retval:addRow( 'Type', args.type, 'report-md-type-div' )
	else
		retval:addRow( 'Click on this box, then \'Edit\' to categorize this report.' ) end
	if args.timeframe and args.timeframe ~= '' then
    	retval:addRow( 'Date(s)', args.timeframe, 'brand-md-timeframe-div' )
    end
	return retval
end

return p