From Dota 2 Wiki
Jump to: navigation, search

Documentation for Module:Tooltip Jump to code ↴ [ edit | purge ]

Reality Rift icon.png
Play “Planeshift.”
The documentation for this template or module can be found at Template:Tooltip.
You may be forwarded to another wiki language, in case a translation is not available.


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

function p.main(frame)
  local args = getArgs(frame, {
    wrappers = {
  return p._main(args)

function p._main(args)
  libraryUtil.checkType('_main', 1, args, 'table')
  assert(args[1] and args[2], 'Missing argument')

  return mw.html.create('span'):attr('class', 'tooltip')
                               :attr('title', args[2])
                               :css('cursor', 'help')
                               :css('border-bottom', '1px dotted')

return p
Promotional Content