BuildTemplateID
Returns the ID of the template (index, archive or system template) currently being built.
Examples
Publish “edit” links in index templates:
<a href="<$mt:AdminCGIPath$><$mt:AdminScript$>?__mode=view&_type=template&id=<$mt:BuildTemplateID$>&blog_id=<$mt:BlogID$>">Edit</a>