Difference between revisions of "Module:List"

Jump to navigation Jump to search
m
51 revisions imported
en>Izno
(use templatestyles in module:list)
m (51 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 116: Line 116:
-- Render the main div tag.
-- Render the main div tag.
local root = mw.html.create('div')
local root = mw.html.create((
#data.classes > 0
or data.marginLeft
or data.style
) and 'div' or nil)
 
for i, class in ipairs(data.classes or {}) do
for i, class in ipairs(data.classes or {}) do
root:addClass(class)
root:addClass(class)

Navigation menu