How to Create and Apply a Template