The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Usage
{{#invoke:contains|value|haystack={{{1|needle in a haystack}}}|needle={{{2|needle}}}}}
local p = {} --p stands for package
function p.value(frame)
if string.find(frame.args.haystack, frame.args.needle) then
return 1
end
return 0
end
return p