Templates are cryptic enough as it is. Spending frustrated weeks trying to learn complicated programming does not rank high on my priority list. Just delete the template that I made, and consider making a module.