Many thanks to Olipcs for his help with this feature
Copies a chunk of text in a script with macro substitutions.
Syntax
<ApplyTemplate name macro [macro [macro...]]>
Parameters
Name identifies a template.
Macro is a piece of text that gets substituted into the template.. You can specify as many macros as you want. If a macro contains spaces, enclose it in quotation marks.