10,916
editsAd placeholder
Module:ParseList: Difference between revisions
Jump to navigation
Jump to search
Improve output of htmlList style.
HiddenDragon (talk | contribs) mNo edit summary |
(Improve output of htmlList style.) |
||
Line 186: | Line 186: | ||
end, | end, | ||
htmlList = function (elements) | htmlList = function (elements) | ||
local result = "" | local result = "<ul>\n" | ||
for i, str in ipairs(elements) do | for i, str in ipairs(elements) do | ||
result = result .. " | result = result .. "<li>" .. str .. "</li>\n" | ||
end | end | ||
return result | return result .. "</ul>" | ||
end, | end, | ||
tableList = function (elements) | tableList = function (elements) | ||
Line 202: | Line 202: | ||
local result = "<ul style='list-style: none; margin: 0;'>\n" | 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 .. "\n" | result = result .. "<li>" .. str .. "</li>\n" | ||
end | end | ||
return result .. "</ul>" | return result .. "</ul>" |