Module:UtilsLayout/Tabs: Difference between revisions
From Zelda Wiki, the Zelda encyclopedia
no edit summary
PhantomCaleb (talk | contribs) No edit summary |
PhantomCaleb (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local h = {} | local h = {} | ||
local CLASS_TOOLTIP = require("Module:Constants/class/tooltip") | |||
function p.tabs(data, options) | function p.tabs(data, options) | ||
Line 49: | Line 51: | ||
local tab = mw.html.create("span") | local tab = mw.html.create("span") | ||
:addClass("tab") | :addClass("tab") | ||
:addClass( | :addClass(CLASS_TOOLTIP) | ||
:addClass("tab--label-align-y-"..labelAlignVertical) | :addClass("tab--label-align-y-"..labelAlignVertical) | ||
:attr("title", tabData.tooltip) | :attr("title", tabData.tooltip) |