Module:Sandbox/BrandonXLF/4: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 14:
-- The blank item is used by CSS to make the list item block leel
for i, item in pairs(items) do
-- Added by {{Keep inline}}
if i < #items and #items[i + 1][1] > #item[1] then
local inlineNextkeepInline = item[2]:match('INLINEKEEP%-ULINLINE$') ~= ninil
-- Add {{Inline sublist}} after the bold and italics
local inlineNext = item[2]:match('INLINE%-UL$') ~= ni
if inlineNextkeepInline then
item[2] = item[2]:gsub(' *KEEP%-INLINE$', '') .. '<span class="content-inlinelist-ulinline"></span>'
if inlineNext then
end
item[2] = item[2]:gsub(' *INLINE%-UL$', '')
end
if not keepInline and i < #items and #items[i + 1][1] > #item[1] then
-- local post = inlineNext and '&#58;' or ''
local post = '&#58;'
item[2] = '\n' .. item[1] .. "'''''" .. item[2] .. post .. "'''''"
if inlineNext then
item[2] = item[2] .. '<span class="content-inline-ul"></span>'
end
end
end