Module:List/modes

return { main = function(str) return str .. " "   end, nolist = function(str) -- Used for when all formatting operations should be in /custom. return str end, with_links = function(str, raw) local link, excess = str:match("^%[%[([^%]]-)%]%](.*)") if raw then return link, excess else return link and ("" .. link .. "" .. excess .. ' ') or ("" .. str .. "" .. ' ') end end, with_bulleted_links = function(str) local link,excess = str:match("^%[%[([^%]]+)%]%](.*)") return link and ("\n* " .. link .. "" .. excess) or ("\n* " .. str .. "") end, with_bullets = function(str) return "\n* " .. str end }