How to access the links variable from a template?
I have found the solution to this problem. You need to do the following in your template:

&lt;?php $node = node_load($fields['nid']-&gt;raw);
global $language;
node_build_content($node, 'full', $language-&gt;language);
if (!empty($node-&gt;content['links'])): ?&gt;
    &lt;div class="links"&gt;
      &lt;?php print render($node-&gt;content['links']); ?&gt;
    &lt;/div&gt; &lt;!-- /links --&gt;
&lt;?php endif; ?&gt;