Module:Crafting: Difference between revisions

We need to get the args of the first argument
m (maybe single quotes?)
(We need to get the args of the first argument)
Line 199: Line 199:
-- replace "gm4:" with "gm4RP:" then pass to Grid
-- replace "gm4:" with "gm4RP:" then pass to Grid
function p.GridRP( f )
function p.GridRP( f )
local args = f.args
local args = f.args[1].args
if #args == 0 then
if #args == 0 then
args = f:getParent().args
args = f:getParent().args
Line 205: Line 205:


for i = 1, #args do
for i = 1, #args do
args[i] = string.gsub(args[i], 'gm4:', 'gm4RP:')
args[i] = string.gsub(args[i], "gm4:", "gm4RP:")
end
end


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

edits