Module:Search

From Exiled Kingdoms Wiki

p = {}

Arg1 = mw.getCurrentFrame().args[1] Arg2 = mw.getCurrentFrame().args[2]

function searchList()

   toret = 0
   itemspl = mw.text.split(Arg2,';',true)
   for i, item in pairs(itemspl) do
       tstr = string.find(Arg1, item,1,true)
       if tstr == true then
           toret = 1
           break
       end
   end
   return toret

end

return p