Dota 2 Wiki
Advertisement
Dota 2 Wiki
20,267
pages

Documentation for Module:ValueColor/tooltext Jump to code ↴ [ edit | purge ]

Reality Rift icon.png
▶️ Planeshift.
The documentation for this module can be found at Template:ValueColor/tooltext.
You may be forwarded to another wiki language, in case a translation is not available.


Lua error in Module:Dependencies at line 14: The module appears to be empty.

local p = {}
local get_args = require('Module:Arguments').getArgs
local data = mw.loadData('Module:ValueColor/tooltextdata')

local i18n = {
  error = {
    no_input = 'Input missing',
  },
}

function p.main(frame)
  local args = get_args(frame, {
    wrappers = {
      'Template:ValueColor/tooltext'
    }
  })
  return p._main(args)
end

function p._main(args)
  assert(args[1], i18n.error.no_input)
  
  local bonus_name = mw.ustring.lower(args[1])
  return data[bonus_name]
end

return p
Advertisement