Module:Crafting: Difference between revisions

No edit summary
No edit summary
Line 23: Line 23:
f = mw.getCurrentFrame()
f = mw.getCurrentFrame()
end
end
-- local function convertGifs(argName)
-- local val = args[argName]
-- if type(val) == 'string' and val:match('%.gif$') then
-- args[argName] = val:gsub('%.gif$', '')
-- args[argName .. 'ext'] = 'gif'
-- end
-- end
-- for _, k in ipairs(cArgVals) do
-- convertGifs(k)
-- end
-- convertGifs('Output')
-- Automatic shapeless positioning
-- Automatic shapeless positioning
Line 173: Line 160:
local output_names, original_output_names = makeNameList(outputSets)
local output_names, original_output_names = makeNameList(outputSets)
local ingredient_names, original_ingredient_names = makeNameList(ingredientSets)
local ingredient_names, original_ingredient_names = makeNameList(ingredientSets):gsub('%.gif$', '')
local group_names = {}
local group_names = {}
if args.group then
if args.group then