{if="empty($batch_mode)"} <html{if="$language !== 'auto'"} lang="{$language}"{/if}> {$pageName="editlink"} {include="includes"}
{include="page.header"} {else} {ignore}Lil hack: when included in a loop in batch mode, `$value` is assigned by RainTPL with template vars.{/ignore} {function="extract($value) ? '' : ''"} {/if} {$asyncLoadClass=$link_is_new && $async_metadata && empty($link.title) ? 'loading-wrapper' : ''} {if="!isset($index)"} {$index=""} {/if}
{if="isset($link.id)"} {/if} {if="$http_referer"} {/if}
{if="!$link_is_new"}Edit a link{else}Add a new link{/if} {if="!$link_is_new"} - {'created on'|t} {$link.created|format_date}{/if}
{'URL'|t}
{'Title'|t}
{'Description'|t}
{$link.description}
{'Tags'|t}
{if="isset($edit_link_plugin)"} {loop="$edit_link_plugin"}
{$value}
{/loop} {/if}
{'Private'|t}
{if="$formatter==='markdown'"}
{'Description will be rendered with'|t} {'Markdown syntax'|t} .
{/if}
{if="empty($batch_mode)"} {include="page.footer"} {/if}