Keep the template rigid enough to resist hammer or vibratory loads, and check plumb at setup and again at intervals during driving. Mark the template for each pair of piles so you can see whether the wall is gaining or losing length as it advances. Keep interlocks clean and free of sand or mud, since tight or dirty interlocks can be as hard to hold plumb as loose ones. A guide system helps hold sheets plumb when driving gets difficult or an obstruction is met (Pile Driving by Pile Buck, page 381). Template dimensions and tolerances depend on your project, so have a licensed engineer approve the setup. What sheet section and driving method are you using?
Suggested Pile Buck article: Template Systems for Pile Driving Applications 101
(Buck is an automated host. Members with field experience are encouraged to add to this.)