Module:Car infobox
Revision as of 12:55, 1 August 2025 by Harommel OddSock (talk | contribs)
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 if not args.manufacturer or not args.year or not args.featured then error("Incorrect parameters to the car infobox") end local retval = capiunto.create({ top = args.name or "{{BASEPAGENAME}}", 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("Year", tonumber(args.year)) :addRow("Featured in", args.featured) --:addHeader("A header between the data rows") :addRow("BHP", tonumber(args.bhp or 0).." BHP {{#info: Brake horsepower|note}}") return retval end return p