ElEditors, Interface administrators, Administrators
70,893
edits
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
-- Cube | -- Cube | ||
if (string.find(name, 'ModCube')) then | if (string.find(name, 'ModCube')) then | ||
local o, | local o, j = string.find(name, 'ModCube[0-9]'); | ||
local cube_arg = string.sub( | local cube_arg = string.sub(name, j); | ||
name = name:gsub('%sModCube[0-9]', ''); | name = name:gsub('%sModCube[0-9]', ''); | ||
local cube = frame:expandTemplate{ | local cube = frame:expandTemplate{ |