Module:String2/sandbox: Difference between revisions

Content deleted Content added
test for templated text
no need to escape { }
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
if string.find(s, "^%{%{[^%}]+%}%}") then
return s .. " >> templated"
end