Module:Tooltip

local libraryUtil = require( 'libraryUtil' ) local getArgs = require( 'Module:Arguments' ).getArgs local p = {}

function p.main( frame ) local args = getArgs( frame, {   wrappers = {      'Template:Tooltip'    }  }) return p._main( args ) end

function p._main( args ) assert( args[1] and args[2], 'Missing argument' ) local text = args[1] local title = mw.text.encode( args[2] )

return string.format( ' %s ', title, text ) end

return p