From Work (Physics) - Wikipedia:
In physics, a force is said to do work if, when acting, there is a displacement of the point of application in the direction of the force.
According to the mathematical formula of work: $$W = F . S = FS Cos \theta$$, even if the displacement is not along the direction of force (except in the perpendicular direction), work will not be zero.
Then, a force can do work even if, when acting, there is a displacement of the point of application in any direction w.r.t force except 90 degree. But Wikipedia seems to claim (in the above statement) work to be done only in the case of $\theta$ equal to zero.
I have got confused. Where am I wrong? Or is there a problem in wikipedia statement?
Edit: According to above Wikipedia statement, is force not said to do work, if the displacement is not in the direction of force?