Module:Crafting: Difference between revisions

No edit summary
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
 
(7 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 normalizeGif(k) end
convertGifs('Output')
-- Automatic shapeless positioning
-- Automatic shapeless positioning