What values can be used in templates?

I am working on setting up a few templates and am wondering if there is
a list of variables which can be used, or if there is a HOWTO document.

I have had a look at the default templates and picked up a good few bits
from there, but was just wondering if there was anything else out there.