Templates - get name of column inside calling script

I have my own function which is used to calculate template value.

Inside of this function I would like to get information for which column and table it was called?

Is it possible?