▶️
Planeshift.
A documentação deste módulo pode ser encontrada em Predefinição:Tooltip.
Você pode ser redirecionado para uma wiki em outro idioma, se de não houver tradução disponível.
Dependencies
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( '<span class="tooltip" title="%s" style="cursor: help; border-bottom: 1px dotted;">%s</span>', title, text )
end
return p