Module:Sandbox

local p = {}

local sprite = require( Module:Sprite ).sprite function p.animate( f ) local args = f	if f == mw.getCurrentFrame then args = f:getParent.args end local icons = {} for icon in mw.text.gsplit( args[1], '%s*;%s*' ) do		function image( icon ) local ids = mw.loadData( 'Module:SlotSprite' ).ids local idData = ids[icon] local image if idData then image = sprite{ iddata = idData, data = args.sheet }			end

return image end if icon == '' then table.insert( icons, '  ' ) else table.insert( icons, ' ' .. image( icon ) .. ' ' ) end end icons[1] = icons[1]:gsub( '^ ', ' ' ) return ' ' .. table.concat( icons ) .. ' ' end return p