The Aether Project Wiki has officially launched! With your help, this wiki can be made a comprehensive source of information about the Aether Project.

Module:Combining-DA

From Aether Project Wiki
Jump to navigation Jump to search
This is the documentation page. It will be transcluded into the main module page. See Template:Documentation for more information

This module implements {{Combining-DA}}.

Parent arguments are automatically merged with directly passed arguments (the latter overwriting the former).

Dependencies


local p = {}

local i18n = {
	moduleArgs = [[Module:ProcessArgs]],
	moduleRecipe = [[Module:Recipe table]],
	type = 'Combining'
}
p.i18n = i18n

local recipeTable = require( i18n.moduleRecipe ).table

function p.table( f )
	local args = f
	if f == mw.getCurrentFrame() then
		args = require( i18n.moduleArgs ).merge( true )
	else
		f = mw.getCurrentFrame()
	end
	
	args.Input1 = args[1]
	args.Input2 = args[2]
	args.Input3 = args[3]
	args.Output = args.Output
	args.Time = args.time
	
	local title = mw.title.getCurrentTitle()
	
	local out, ingredientSets = recipeTable( args, {
		uiFunc = 'combining_da',
		type = 'Deep_Aether/Combiner|Combining',
		ingredientArgs = { 'Input1', 'Input2', 'Input3'},
		outputArgs = { 'Output' },
	} )
	
	return out, category
end

return p