Module:Crafting: Difference between revisions

attempt at replacement in arguments #3
(revert attempt at replacement)
(attempt at replacement in arguments #3)
Line 194: Line 194:


return spriteDiv
return spriteDiv
end
-- replace "gm4:" with "gm4RP:" then pass to Grid
function p.GridRP( f )
local args = f.args
if #args == 0 then
args = f:getParent().args
end
for i = 1, #args do
args[i] = string.gsub(args[i], "gm4:", "gm4RP:")
end
return Grid(args, args['width'] or args['Width'] or 3, args['height'] or args['Height'] or 3)
end
end




return p
return p
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,563

edits