{{! usage: link to="namepath" html=true/false caption="optional caption"~}} {{~#if html~}} {{~#link to~}} {{#if url~}} {{#if ../../caption}}{{../../../caption}}{{else}}{{name}}{{/if}} {{~else~}} {{#if ../../caption}}{{../../../caption}}{{else}}{{name}}{{/if~}} {{/if~}} {{/link~}} {{~else~}} {{#link to~}} {{#if url~}} [{{#if ../../caption}}{{escape ../../../caption}}{{else}}{{escape name}}{{/if}}]({{{url}}}) {{~else~}} {{#if ../../caption}}{{escape ../../../caption}}{{else}}{{escape name}}{{/if~}} {{~/if~}} {{/link~}} {{/if~}}