×
Create a new article
Write your page title here:
We currently have 6 articles on NOISZ Wiki. Type your article name above or click on one of the titles below and start writing!



NOISZ Wiki
6Articles

Module:Character Infobox: Difference between revisions

(Created page with "local capiunto = require 'capiunto' capiunto.create( { title1 = {{PAGENAME}} } ) :addImage( args.image1, args.caption ) :addHeader( 'A header between the data rows' ) :addRow( 'Caption', args.caption1 ) :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( 'Biog...")
 
No edit summary
Line 1: Line 1:
local capiunto = require 'capiunto'
local capiunto = require 'capiunto'
capiunto.create( {
local p = {}
title1 = {{PAGENAME}}
 
} )
function p.main(frame)
:addImage( args.image1, args.caption )
    local args = frame:getParent().args
:addHeader( 'A header between the data rows' )
local infobox = capiunto.create( {
:addRow( 'Caption', args.caption1 )
title1 = {{PAGENAME}}
:addRow( 'Voice', args.voice )
    } )
:addRow( 'JP Name', args.jpname )
:addImage( args.image1, args.caption )
:addHeader( 'Physical' )
:addHeader( 'A header between the data rows' )
:addRow( 'Also known as', args.also_known_as )
:addRow( 'Caption', args.caption1 )
:addRow( 'Eye Colour', args.eye_colour )
:addRow( 'Voice', args.voice )
:addRow( 'Hair Colour', args.hair_colour )
:addRow( 'JP Name', args.jpname )
:addRow( 'Height', args.height )
:addHeader( 'Physical' )
:addHeader( 'Biographical' )
:addRow( 'Also known as', args.also_known_as )
:addRow( 'Age', args.age )
:addRow( 'Eye Colour', args.eye_colour )
:addRow ( 'Birthday', args.birthday )
:addRow( 'Hair Colour', args.hair_colour )
:addRow ( 'Likes', args.likes )
:addRow( 'Height', args.height )
:addRow ( 'Dislikes', args.dislikes )
:addHeader( 'Biographical' )
:addRow ( 'Relationships', args.relationships )
: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

Revision as of 06:41, 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 = {{PAGENAME}}
    } )
	:addImage( args.image1, args.caption )
	:addHeader( 'A header between the data rows' )
	:addRow( 'Caption', args.caption1 )
	: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