Module:Side box: Difference between revisions
m
role="presentation" for layout table
m (Protected Module:Side box: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
m (role="presentation" for layout table) |
||
Line 71: | Line 71: | ||
-- Table root | -- Table root | ||
local root = mw.html.create('table') | local root = mw.html.create('table') | ||
root:attr('role', 'presentation') | |||
for i, class in ipairs(data.classes or {}) do | for i, class in ipairs(data.classes or {}) do | ||
root:addClass(class) | root:addClass(class) |