Creating, using, and sharing templates