Module:Infobox: Difference between revisions
Undo last 2 edits, mw.html doesn't seem to support select tags
No edit summary Tag: Reverted |
(Undo last 2 edits, mw.html doesn't seem to support select tags) Tag: Manual revert |
||
Line 423:
:addClass('infobox-buttons')
:attr('data-default-version', self.default_version)
if self.versions > self.max_buttons then
▲ -- Dropdown list instead of buttons if too many versions
local select = buttons:tag('select')▼
-- Create all the buttons
▲ :addClass('infobox-buttons-select')
▲ for version=1, self.versions do
▲ :attr('data-switch-anchor', '#'..self.version_names[version])
▲ end
▲ :attr('data-switch-index', version)
end
end
|