Documentation for this module may be created at Module:Foot/doc

local p = {}
local getArgs = require("Dev:Arguments").getArgs

function p.render(frame)
    local args = getArgs(frame)

    return mw.html.create("span")
        :addClass("advanced-tooltip")
        :tag("span")
            :wikitext(args.text or (args[2] and args[1] or nil) or "*")
            :cssText(args.style)
            :done()
        :tag("span")
            :addClass("tooltip-contents")
            :addClass("hidden")
            :wikitext(args.tip or args[2] or args[1])
            :allDone()
end

return p
Community content is available under CC-BY-SA unless otherwise noted.