No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
Line 14: | Line 14: | ||
} ) | } ) | ||
:addImage( '[[File:'..args.logo..'|200px]]', tostring(args.title)..tostring(' logo'), 'brand-md-logo-div' ) | :addImage( '[[File:'..args.logo..'|200px]]', tostring(args.title)..tostring(' logo'), 'brand-md-logo-div' ) | ||
:addImage( '[[File:'..args.cover..'| | :addImage( '[[File:'..args.cover..'|200px]]', args.coverCaption, 'brand-md-cover-div' ) | ||
:addRow( 'Industry', args.industry, 'brand-md-industry-div' ) | :addRow( 'Industry', args.industry, 'brand-md-industry-div' ) | ||
:addRow( 'Owner(s)', args.parent, 'brand-md-parent-div' ) | :addRow( 'Owner(s)', args.parent, 'brand-md-parent-div' ) |
Revision as of 23:58, 17 January 2024
Documentation for this module may be created at Module:BrandHeader/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.logo..'|200px]]', tostring(args.title)..tostring(' logo'), 'brand-md-logo-div' )
:addImage( '[[File:'..args.cover..'|200px]]', args.coverCaption, 'brand-md-cover-div' )
:addRow( 'Industry', args.industry, 'brand-md-industry-div' )
:addRow( 'Owner(s)', args.parent, 'brand-md-parent-div' )
:addRow( 'Sub-Brands', args.brands, 'brand-md-brands-div' )
:addRow( 'Products/Services', args.products, 'brand-md-products-div' )
return retval
end
return p