m (1 revision imported) |
No edit summary |
||
Line 9: | Line 9: | ||
local retval = capiunto.create( { | local retval = capiunto.create( { | ||
title = args.title, | title = frame.args.title, | ||
headerStyle = headerStyle, | headerStyle = headerStyle, | ||
} ) | } ) | ||
--:addImage( '[[File:'..args.cover..'|200px]]', args.coverCaption, 'report-md-cover-div' ) | --:addImage( '[[File:'..args.cover..'|200px]]', args.coverCaption, 'report-md-cover-div' ) | ||
:addRow( 'Type', args.type, 'report-md-type-div' ) | :addRow( 'Type', args.type, 'report-md-type-div' ) | ||
if args.timeframe and args.timeframe ~= '' then | |||
retval:addRow( 'Date(s)', args.timeframe, 'brand-md-timeframe-div' ) | |||
end | |||
return retval | return retval | ||
end | end | ||
return p | return p |
Revision as of 03:50, 5 February 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 = frame.args.title,
headerStyle = headerStyle,
} )
--:addImage( '[[File:'..args.cover..'|200px]]', args.coverCaption, 'report-md-cover-div' )
:addRow( 'Type', args.type, 'report-md-type-div' )
if args.timeframe and args.timeframe ~= '' then
retval:addRow( 'Date(s)', args.timeframe, 'brand-md-timeframe-div' )
end
return retval
end
return p