The two ways a template fails
Overflow. A pattern like {term} — SEO Glossary | Brand has 22 fixed characters, leaving about 38 for the variable part before Google's ~60-character cut. "CLS" fits comfortably; "Search Engine Results Page" does not, and what gets truncated is the brand, then the qualifier, then the subject itself. This site shipped a 94-character glossary title from exactly this pattern.
Sameness. The opposite failure is a template whose output barely varies — Buy {product} online at the best price across four thousand products produces four thousand titles that differ by one noun. Search engines treat that as the duplication it is, and rewrite them.