Module:String2/sandbox: Difference between revisions

Content deleted Content added
let's see the html
display html
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
local s2, n = string.gsub(s, "^(.*<li>)(.*)", "<nowikipre>first part = %1 >> second part >> %2</nowikipre>" )
if n > 0 then
return s2 .. " = " .. n .. "<br>"