Module:TeamTotoSandbox

From Caves of Qud Wiki
Revision as of 20:26, 11 June 2025 by Teamtoto (talk | contribs)
Jump to navigation Jump to search

local cargo = mw.ext.cargo
local util_cargo = require('Module:Cargo Utility')
local infobox = require('Module:Infobox')


local p = {}
local h = {}


function p.Declare(frame)
	-- [ Declare ItemsTable ]
	local tablename = 'ItemsTable'
	local args = {
		['BasePV']='Integer',
		['MaxPV']='Integer',
		['Vibro']='Boolean',
		['PoweredPV']='Boolean',
		['Damage']='String',
		['UnpoweredDamage']='String',
		['PrimaryDamageElement']='String',
		['HP']='Integer',
		['AV']='Integer',
		['DV']='Integer',
		['MA']='Integer',
		['ToHit']='Integer',
		['Skill']='String',
		['ObjectID']='String',
		['AgilityBonus']='Integer',
		['StrengthBonus']='Integer',
		['WillpowerBonus']='Integer',
		['ToughnessBonus']='Integer',
		['IntelligenceBonus']='Integer',
		['EgoBonus']='Integer',
		['Description']='Wikitext',
		['WornOn']='String',
		['UsesSlots']='List (,) of String',
		['Healing']='String',
		['HarvestedInto']='String',
		['PreservedInto']='Page',
		['PreservedQuantity']='Integer',
		['ElementalDamage']='String',
		['ElementalType']='String',
		['JoinKey']='String'
	}
	local results = cargo.declare(table, args)
end

function p.main(frame)
	local args = require( 'Module:ProcessArgs' ).merge( true )
	local infoboxargs = {
		['class'] = 'qud-item-infobox',
		['rows'] = args['rows']
	}
	return infobox.infobox(args) 	
end

function h.infoboxrow()
end
return p