Module:Furnace multiblock: Difference between revisions
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
end | end | ||
p.i18n.type = args | p.i18n.type = args.type | ||
args.Input = args | args.Input = args.input | ||
args.Output = args | args.Output = args.output | ||
args.Fuel = args | args.Fuel = args.fuel | ||
local out = recipeTable( args, { | local out = recipeTable( args, { | ||
Latest revision as of 07:35, 14 August 2025
Documentation for this module may be created at Module:Furnace multiblock/doc
local p = {}
local i18n = {
defaultFuel = 'Any fuel',
moduleArgs = [[Module:ProcessArgs]],
moduleRecipe = [[Module:Recipe table]]
}
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
p.i18n.type = args.type
args.Input = args.input
args.Output = args.output
args.Fuel = args.fuel
local out = recipeTable( args, {
uiFunc = 'furnace',
type = i18n.type,
ingredientArgs = { 'Input', 'Fuel' },
outputArgs = { 'Output' },
} )
local title = mw.title.getCurrentTitle()
return out, category
end
return p