10,977
editsAd placeholder
Module:ParseList: Difference between revisions
Jump to navigation
Jump to search
m
Reorder styles.
(Add 'none' style.) |
m (Reorder styles.) |
||
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 191: | Line 204: | ||
end | end | ||
return result .. "</ul>" | return result .. "</ul>" | ||
end, | end, | ||
htmlListNoBullets = function (elements) | htmlListNoBullets = function (elements) | ||
Line 206: | Line 212: | ||
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) |