Module:Character Infobox

From NOISZ Wiki
Revision as of 06:39, 3 June 2025 by RiceEmpress (talk | contribs)

This module is intended to create infoboxes on character pages, using Capiunto's infobox capabilities.


local capiunto = require 'capiunto'
local p = {}
function p.main(frame) 
	local args = frame:getParent().args
	local infobox = capiunto.create( {
		title1 = args.title1
    	} )
	:addImage( args.image1, args.caption )
	:addRow( 'Voice', args.voice )
	:addRow( 'JP Name', args.jp_name )
    :addHeader( 'Physical' )
	:addRow( 'Also known as', args.also_known_as )

    return infobox
end

return p