The code you are using doesn't support your version of XC
Code:
<a href="popup_info.php?action=templatename" onclick="javascript: return typeof(window.popupOpen) == 'undefined' || !popupOpen('popup_info.php?action=templatename', '{$title|wm_remove|escape:javascript}');" class="popup-link" target="_blank"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_popup_help|escape}" /></a>
So this need to be hard coded or you can consider upgrading your site to 4.4.5 which is the latest version