Module:String2/sandbox: Difference between revisions

Content deleted Content added
display html
break it at first <li>
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
local s2, nlipos = string.gsubfind(s, "^(.*<li>)(.*)", "<pre>first part = %1 >> second part >> %2</pre>" )
if n > 0lipos then
return s2string.sub(s, 1, lipos) .. " =// " .. nstring.sub(s, lipos) .. "<br>"
end
if string.find(s, "^%[%[[^|]+|[^%]]+%]%]") then