Module:Character Infobox: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) mNo edit summary |
RiceEmpress (talk | contribs) No edit summary Tag: Manual revert |
||
| Line 5: | Line 5: | ||
local infobox = capiunto.create( { | local infobox = capiunto.create( { | ||
title1 = args.title1 | title1 = args.title1 | ||
} ) | |||
:addImage(' | :addImage( args.image1, args.caption ) | ||
:addRow( 'Voice', args.voice ) | |||
:addRow( 'JP Name', args.jpname ) | |||
:addHeader( 'Physical' ) | |||
:addRow( 'Also known as', args.also_known_as ) | |||
:addRow( 'Eye Colour', args.eye_colour ) | |||
:addRow( 'Hair Colour', args.hair_colour ) | |||
:addRow( 'Height', args.height ) | |||
:addHeader( 'Biographical' ) | |||
:addRow( 'Age', args.age ) | |||
:addRow ( 'Birthday', args.birthday ) | |||
:addRow ( 'Likes', args.likes ) | |||
:addRow ( 'Dislikes', args.dislikes ) | |||
:addRow ( 'Relationships', args.relationships ) | |||
return infobox | return infobox | ||
end | end | ||
return p | return p | ||
Revision as of 06:16, 3 June 2025
Documentation for this module may be created at Module:Character Infobox/doc
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.jpname )
:addHeader( 'Physical' )
:addRow( 'Also known as', args.also_known_as )
:addRow( 'Eye Colour', args.eye_colour )
:addRow( 'Hair Colour', args.hair_colour )
:addRow( 'Height', args.height )
:addHeader( 'Biographical' )
:addRow( 'Age', args.age )
:addRow ( 'Birthday', args.birthday )
:addRow ( 'Likes', args.likes )
:addRow ( 'Dislikes', args.dislikes )
:addRow ( 'Relationships', args.relationships )
return infobox
end
return p