Documentation for the template macros