Difference between revisions of "Module:Car infobox"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
top = args.name, | top = args.name, | ||
headerStyle = 'background-color: blue; color: white;', | headerStyle = 'background-color: blue; color: white;', | ||
+ | topStyle = 'background-color: blue; color: white;' | ||
}) | }) | ||
if args.image and args.image ~= '' then retval:addImage( args.image or '', args.caption or nil ) end | if args.image and args.image ~= '' then retval:addImage( args.image or '', args.caption or nil ) end |
Revision as of 12:38, 1 August 2025
Documentation for this module may be created at Module:Car infobox/doc
local capiunto = require 'capiunto'
local p = {}
function p.main(frame)
local args = frame:getParent().args
local retval = capiunto.create({
top = args.name,
headerStyle = 'background-color: blue; color: white;',
topStyle = 'background-color: blue; color: white;'
})
if args.image and args.image ~= '' then retval:addImage( args.image or '', args.caption or nil ) end
retval:addRow( 'Manufacturer', '[['..args.manufacturer..']]' )
:addRow( 'Featured in', args.featured )
--:addHeader( 'A header between the data rows' )
:addRow( 'BHP {{#info: Brake horsepower|note}}', tonumber(args.bhp or 0)..' BHP' )
return retval
end
return p