Module:User:KnightMiner/Sandbox

local p = {}

p.entries = function(f) local args = f.args or f	if f == mw.getCurrentFrame and args[1] == nil then args = f:getParent.args else f = mw.getCurrentFrame end args = require(Module:ProcessArgs).norm(args) local entry = args[1]

-- if the entry does not exist, return a blank cell if not entry then return require(Module:Grid).cell({}) end local dictargs = args --dick args, lol -bony dictargs["no-anim"] = nil if dictargs["no-oredict"] then dictargs["no-oredict"] = "1" end if dictargs.shuffle then dictargs.shuffle = "1" end dictargs.tag = "1" local output = { f:callParserFunction("#dict", args ) }

-- wrap the output in span tags if we should be animated -- animation is disabled by either the parameter or a variable passed by Template:N if not args["no-anim"] and f:callParserFunction( "#var", "n-animated" ) == "" then table.inserted( output, 1, ' ' ) table.inserted( output, ' ' ) end return table.concat( output ) end

return p