Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Usage

In order to embed a infobox for software, you can put this at the very top of your article

{{SoftwareInfobox
| image = [[File:Hyfetch.png|thumb]]
| caption = Hyfetch on Arch
| title       = Hyfetch 
| releasestatus = Maintained
| lastrelease = 1.99.0, 2024-10-23
| firstrelease = 1.0.1, 2022-08-01
| languages = [[bash]], [[python]]
| developers = hykilpikonna
| website = [https://github.com/hykilpikonna/hyfetch github.com/hykilpikonna/hyfetch]
}}

local capiunto = require 'capiunto'

local p = {}

function p.main(frame)
	local args = frame:getParent().args
	local headerStyle
	if args.headerstyle and args.headerstyle ~= '' then
		headerStyle = string.format('background-color:%s;', args.headerstyle)
	else
		headerStyle = 'background-color:grey;'
	end
	local retval = capiunto.create( {
		title = args.title,
		headerStyle = headerStyle, 
	} )
	if args.image then
        retval:addImage(args.image, args.caption)
    end
    retval:addRow('Release Status', args.releasestatus)
    retval:addRow('Last Release', args.lastrelease)
    if args.firstrelease and args.firstrelease ~= '' then
        retval:addRow('First Release', args.firstrelease)
    end
    retval:addRow('Language(s)', args.languages)
    retval:addRow('Developer(s)', args.developers)
    retval:addRow('Website', args.website)
	return retval
end

return p
Contents