Module:Tt/Draft: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 19: | Line 19: | ||
function p._main(args, options) | function p._main(args, options) | ||
local text = args[1] | local text = args[1] | ||
local tooltip = | local tooltip = args[2] | ||
local header = lib.isNotEmpty(args.header) and | local header = lib.isNotEmpty(args.header) and args.header or nil | ||
local out = mw.html.create() | local out = mw.html.create() | ||
| Line 32: | Line 32: | ||
end | end | ||
-- Build toggle tooltip | |||
local toggle = out:tag('span'):addClass('custom-tt-wrapper toggle-tooltip') | |||
-- Build toggle tooltip | |||
local toggle = out:tag('span'):addClass('custom-tt-wrapper | |||
-- Optional toggleable text but plain text must be there for gadget | -- Optional toggleable text but plain text must be there for gadget | ||