More detail on templates in the manual.