Templates operate on calibre metadata, not the opf in the ebook. There is no way for a template or a custom function to see into any book format file. If the information is not visible in the edit metadata dialog, a template cannot see it.
It is also worth noting that calibre will replace the embedded opf if the book is sent to a device or saved to a disk.
|