Link to legend in template