Module:String2/sandbox: Difference between revisions

Content deleted Content added
check
break up first part
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
iflocal s2, n = string.findgsub(s, "^(.*)<li>"), then"%1 >> first part" )
if n > 0 then
return ss2 .. " >> list"
end
if string.find(s, "^%[%[[^|]+|[^%]]+%]%]") then