Module:PrettyList

From Bonkipedia

{{#invoke:PrettyList|prettify|mediawiki/core,mediawiki/extensions/FooBar}} produces:

mediawiki/core, mediawiki/extensions/FooBar


local p = {}

p.prettify = function( frame )
	local ugly = frame.args[1]
	local splitted = mw.text.split( ugly, ',', true )
	return '<code>' .. table.concat( splitted, "</code>, <code>" ) .. "</code>"
end

return p