Module:Tooltip: Difference between revisionsGive feedback
osrsw>The scribe Yesno |
m 4 revisions imported |
||
| (One intermediate revision by one other user not shown) | |||
| Line 16: | Line 16: | ||
local arrowsize = tonumber(args.arrowsize) or 10 | local arrowsize = tonumber(args.arrowsize) or 10 | ||
local limitwidthbool = yn(args.limitwidth or 'yes', true) | local limitwidthbool = yn(args.limitwidth or 'yes', true) | ||
local style = args.style | local style = hc(args.style) and args.style or nil | ||
local div = mw.html.create('div') | local div = mw.html.create('div') | ||
| Line 36: | Line 36: | ||
['data-tooltip-limit-width'] = limitwidth, | ['data-tooltip-limit-width'] = limitwidth, | ||
} | } | ||
div :addClass('hidden js-tooltip-wrapper') | div :addClass('hidden js-tooltip-wrapper') | ||
:cssText(style) | |||
:css('display', 'none') | :css('display', 'none') | ||
:attr(attrs) | :attr(attrs) | ||