Or any other reasonable way for a template to know its own id. For superadmins I use “Edit this template” at the bottom of each template:
<a href="... index.php?S=0&C=templates&M=edit_template&id=64&tgpref=8">
... works, but requires hardcoding the template id.
