Module:Crafting: Difference between revisions

imagine calling a non existant function... couldn't be me
I give up trying to make gifs work here for right now, I'll try again later once I understand Lua better
Tag: Manual revert
 
(6 intermediate revisions by the same user not shown)
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