Ad placeholder

Module:ParseList: Difference between revisions

Jump to navigation Jump to search
Added no margin version of htmlListNoBullets
m (htmlListNoBullets should still keep margin)
(Added no margin version of htmlListNoBullets)
 
Line 207: Line 207:
htmlListNoBullets = function (elements)
htmlListNoBullets = function (elements)
local result = "<ul style='list-style: none;'>\n"
local result = "<ul style='list-style: none;'>\n"
for i, str in ipairs(elements) do
result = result .. "<li>" .. str .. "</li>\n"
end
return result .. "</ul>"
end,
htmlListNoBulletsOrMargin = function (elements)
local result = "<ul style='list-style: none; margin: 0'>\n"
for i, str in ipairs(elements) do
for i, str in ipairs(elements) do
result = result .. "<li>" .. str .. "</li>\n"
result = result .. "<li>" .. str .. "</li>\n"

Navigation menu