Difference between revisions of "Module:List"

Jump to navigation Jump to search
310 bytes added ,  04:18, 26 May 2021
use templatestyles in module:list
>Pppery
(Tracking categories don't exist on this wiki)
>Izno
(use templatestyles in module:list)
Line 22: Line 22:
-- Classes
-- Classes
data.classes = {}
data.classes = {}
data.templatestyles = ''
if listType == 'horizontal' or listType == 'horizontal_ordered' then
if listType == 'horizontal' or listType == 'horizontal_ordered' then
table.insert(data.classes, 'hlist')
table.insert(data.classes, 'hlist')
data.templatestyles = mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = 'Flatlist/styles.css' }
}
elseif listType == 'unbulleted' then
elseif listType == 'unbulleted' then
table.insert(data.classes, 'plainlist')
table.insert(data.classes, 'plainlist')
data.templatestyles = mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = 'Plainlist/styles.css' }
}
end
end
table.insert(data.classes, args.class)
table.insert(data.classes, args.class)
Line 144: Line 151:
end
end


return tostring(root)
return data.templatestyles .. tostring(root)
end
end


Anonymous user

Navigation menu