65,679
editsMore actions
Added no margin version of htmlListNoBullets
(Add 'none' style.) |
HiddenDragon (talk | contribs) (Added no margin version of htmlListNoBullets) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 181: | Line 181: | ||
else | else | ||
result = result .. textLastDelim .. str | result = result .. textLastDelim .. str | ||
end | |||
end | |||
return result | |||
end, | |||
simpleList = function (elements) | |||
local result = "" | |||
local first = true | |||
for i, str in ipairs(elements) do | |||
if first then | |||
result = str | |||
first = false | |||
else | |||
result = result .. ", " .. str | |||
end | end | ||
end | end | ||
Line 192: | Line 205: | ||
return result .. "</ul>" | return result .. "</ul>" | ||
end, | end, | ||
htmlListNoBullets = function (elements) | |||
local result = "< | local result = "<ul style='list-style: none;'>\n" | ||
for i, str in ipairs(elements) do | for i, str in ipairs(elements) do | ||
result = result .. str .. "\n" | result = result .. "<li>" .. str .. "</li>\n" | ||
end | end | ||
return result .. "</ | return result .. "</ul>" | ||
end, | end, | ||
htmlListNoBulletsOrMargin = function (elements) | |||
local result = "<ul style='list-style: none; margin: 0 | 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" | ||
Line 206: | Line 219: | ||
return result .. "</ul>" | return result .. "</ul>" | ||
end, | end, | ||
tableList = function (elements) | |||
local result = "" | local result = "<div class=\"bg3wiki-tablelist\">" | ||
for i, str in ipairs(elements) do | for i, str in ipairs(elements) do | ||
result = result .. str .. "\n" | |||
end | end | ||
return result | return result .. "</div>" | ||
end, | end, | ||
none = function (elements) | none = function (elements) |