Phalanxes are everywhere! So many factions have them. Thing is I've always felt like I'm not using them right.

For instance, should guard mode be on or off? Why do they always seem to lose formation when I have them attack?

I think I grasp the basic concepts: being flanked= death. Hold formation, no gaps in the line, strongest on the right, pin the enemy infantry and hit them with cavalry or other flankers. But I'd appreciate an idiot-proof guide to deploying them.