Module:Slice cell

--implemented by Template:Slice cell local p = {}

function p.Main( frame ) local parser = frame:callParserFunction ('#slice', {'file='.. frame.args['file'] .., 'x='.. frame.args['x'] .., 'y='.. frame.args['y'] .., 'width='.. frame.args['width'] .., 'height='.. frame.args['height'] ..''}) local resized = frame:callParserFunction ('#slice', {'file='.. frame.args['file'] .., 'x='.. frame.args['x'] .., 'y='.. frame.args['y'] .., 'width='.. frame.args['width'] .., 'height='.. frame.args['height'] .., 'resize='.. frame.args['resize'] ..}) local title = frame.args['title'] local cell = 'class="tooltip-hover" |' .. title .. resized local div = mw.html.create( 'div' ) div :attr( 'class', 'tooltip-content' ) :css( 'width', '500px' ) :css( 'height', '100px' ) :css( 'display', 'none' ) :css( 'position', 'relative') :css( 'z-index', '1000') :wikitext( parser ) return cell .. tostring ( div ) end

return p