local p = {}
function p.input ( frame )
local delimiter, text, type, strings, noMargin
local ul = mw.html.create("ul")
delimiter = frame.args[1]
text = frame.args[2]
type = frame.args[3]
noMargin = frame.args[4] and true or false
strings = mw.text.split(text, delimiter, true)
for _,v in pairs(strings) do
ul:node( mw.html.create("li"):wikitext( mw.text.trim(v) ):done() )
end
if type == "unbulleted" then
ul:css("list-style","none")
end
if noMargin then
ul:css("margin",0)
end
return tostring(ul:allDone())
end
return p