Module:Tt/Draft: Difference between revisions
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
local tooltip = args[2] | local tooltip = args[2] | ||
local header = lib.isNotEmpty(args.header) and args.header or nil | local header = lib.isNotEmpty(args.header) and args.header or nil | ||
local class = lib.isNotEmpty(args.class) and args.class .. ' custom-tt-wrapper toggle-tooltip' or 'custom-tt-wrapper toggle-tooltip' | |||
local out = mw.html.create() | local out = mw.html.create() | ||
| Line 33: | Line 34: | ||
-- Build toggle tooltip | -- Build toggle tooltip | ||
local toggle = out:tag('span'):addClass( | local toggle = out:tag('span'):addClass(class) | ||
-- Optional toggleable text but plain text must be there for gadget | -- Optional toggleable text but plain text must be there for gadget | ||