Module:Crafting: Difference between revisions

Merge Dynamic into Grid
(Change cauldron grid to dynamic grid)
(Merge Dynamic into Grid)
Line 12: Line 12:
end
end


return Grid(args, 3, 3)
return Grid(args, args['width'] or args['Width'] or 3, args['height'] or args['Height'] or 3)
end
end


Line 33: Line 33:


return Grid(args, 5, 1)
return Grid(args, 5, 1)
end
-- Make a dynamic crafting grid
function p.Dynamic( f )
local args = f.args
if #args == 0 then
args = f:getParent().args
end
return Grid(args, args['width'] or args['Width'], args['height'] or args['Height'])
end
end


Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564

edits