×
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

No edit summary
No edit summary
Line 1: Line 1:
local capiunto = require 'capiunto'
if args.eye_colour or args.hair_colour or args.height then
local p = {}
infobox:addHeader( 'Physical' )
function p.main(frame)
for _, row in ipairs(physical) do
local args = frame:getParent().args
local label, value = row[1], row[2]
local infobox = capiunto.create( {
if value then
title1 = args.title1
          infobox:addRow(label, value)
    } )
end
    if args.image1 then
    infobox:addImage('[[File:' .. args.image1 .. '|200px]]', args.caption )
    end
local rows =
{
{'Voice', args.voice },
{ 'JP Name', args.jpname },
{ 'Also known as', args.also_known_as },
{ 'Eye Colour', args.eye_colour },
{ 'Hair Colour', args.hair_colour },
{ 'Height', args.height },
{ 'Age', args.age },
{ 'Birthday', args.birthday },
{ 'Likes', args.likes },
{ 'Dislikes', args.dislikes },
{ 'Relationships', args.relationships }
}
for _, row in ipairs(rows) do
local label, value = row[1], row[2]
if value then
            infobox:addRow(label, value)
end
end
end
end
    return infobox
end
return p

Revision as of 12:53, 3 June 2025

Documentation for this module may be created at Module:Character Infobox/doc

if args.eye_colour or args.hair_colour or args.height then
		infobox:addHeader( 'Physical' )
		for _, row in ipairs(physical) do
			local label, value = row[1], row[2]
			if value then
           		infobox:addRow(label, value)
			end
		end
	end