10,916
editsMore actions
Improve output of htmlList style.
No edit summary |
(Improve output of htmlList style.) |
||
(3 intermediate revisions by 2 users not shown) | |||
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 | |||
result = result .. "<li>" .. str .. "</li>\n" | |||
end | |||
return result .. "</ul>" | |||
end, | |||
tableList = function (elements) | |||
local result = "<div class=\"bg3wiki-tablelist\">" | |||
for i, str in ipairs(elements) do | for i, str in ipairs(elements) do | ||
result = result | result = result .. str .. "\n" | ||
end | end | ||
return result | return result .. "</div>" | ||
end, | end, | ||
htmlListNoBullets = function (elements) | htmlListNoBullets = function (elements) | ||
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>" | ||
Line 234: | Line 241: | ||
else | else | ||
textDelim = ', ' | textDelim = ', ' | ||
textLastDelim = args['textLastDelim'] or ' and ' | textLastDelim = args['textLastDelim'] or ', and ' | ||
end | end | ||