(Created page with "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 = args.title, headerStyle = headerStyle, } ) --:addImage( '200px', args.coverCaption, 'report-md-cover-div' ) :addRow( 'Type', args.type, 'report-md-type-div' ) :addRow( 'Date(s)', args.timeframe, 'brand-md-timeframe-div'...") |
m (1 revision imported) |
||
(No difference)
|
Revision as of 00:45, 13 January 2024
Documentation for this module may be created at Module:ReportHeader/doc
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 = args.title,
headerStyle = headerStyle,
} )
--:addImage( '[[File:'..args.cover..'|200px]]', args.coverCaption, 'report-md-cover-div' )
:addRow( 'Type', args.type, 'report-md-type-div' )
:addRow( 'Date(s)', args.timeframe, 'brand-md-timeframe-div' )
return retval
end
return p