Scrip id (or name) from within template

For troubleshooting purposes, I would like to include in a template the id (or name) of the scrip currently using the template. This is for a template used by multile scrips. Can anybody point me in the right direction for code to do that?

Thanks!