Return a variable from field template
Use template_preprocess_field in your template.php and add your variable there. 

Then in your tpl.php you can easily access that variable and render that variable along with your markup.