Module:Sandbox

local slot = require( Module:Inventory slot ).slot local addSlot = function( args, item, prefix, class, default ) prefix = prefix or item return slot{ args[item], mod = args.Mod, link = args[prefix .. 'link'], title = args[prefix .. 'title'], class = class, default = default, parsed = args.parsed } end

local p = {}

-- Stonecutter function p.stonecutter( f ) local args = f	if f == mw.getCurrentFrame then args = f:getParent.args else f = mw.getCurrentFrame end local body = mw.html.create( 'span' ):addClass( 'mcui mcui-Stonecutter pixel-image' ) local input = body:tag( 'span' ):addClass( 'mcui-input' ) input:wikitext( addSlot( args, 'Input', 'I' ) ) local arrow = body:tag( 'span' ):addClass( 'mcui-stonecutterArrow' ):tag( 'br' ):done if args.arrow or  ~=  then arrow:css(			'background-image',			''		) end local sprite = arrow:tag( 'span' ):addClass( 'mcui-stonecutterSprite' ) sprite:wikitext( addSlot( args, ( 'Input' ):gsub( '[,\d]', '' ), 'none', 'invslot-plain' ) ) body :tag( 'span' ) :addClass( 'mcui-output' ) :wikitext( addSlot( args, 'Output', 'O', 'invslot-large' ) ) return tostring( mw.html.create( 'div' ):node( body ) ) end

return p